[CentOS] Addressing outgoing connections to a specific interface

Ross Walker rswwalker at gmail.com
Mon Nov 8 14:48:48 UTC 2010


On Nov 6, 2010, at 9:04 AM, Dotan Cohen <dotancohen at gmail.com> wrote:

> On a CentOS 5.5 laptop (Dell Inspiron, dual boot with a Debian-based
> distro) I have a cable plugged into eth0 which is on a LAN with no
> internet connection. Additionally, I connect wirelessly on wlan0 to
> the internet. Both connections have router on  the 192.168.0.1
> address.
> 
> Although I need to stay connected to the wireless router, can I still
> access the address 192.168.0.1 on the wired interface?

Only if you change the ip of one of those routers, then set the default route to the Internet router and set route for 192.168.0.0 to the internal router.

All requests for 192.168.0.0 that can't be ARP'd will be routed to the internal router.

-Ross




More information about the CentOS mailing list