funny problem with 2 nics
hi all,
here is the situation a debian box with 2 nics, -------------------------------------- eth0 to internal network ip: 10.0.10.1 subnet: 255.0.0.0 dns: 10.0.10.2(my windows server) eth1 to wan ip: 10.0.0.1 subnet: 255.0.0.0 gateway: 10.0.0.138(adsl model router) dns 10.0.0.138 --------------------------------------- so when i issue these commands ifdown eth0 ifdown eth1 ifup eth0 ifup eth1 then i will be able to ping my internal network computer, but not internet when issue this command ifdown eth0 ifdown eth1 ifup eth1 ifup eth0 now i can ping www.google.com. but not my internal network. (error message "destination host unreachable"). so i'm just wondering what kind of problem is this??? and how do i fix it so that i can ping both my internal network and google.com???? i'm so confuse, trying to think, maybe my 2 nics doesn't route to each other or something, i'm lost. pls help. |
Try typing "route" and viewing your routing table. As you have two nics, it seems like you'll need to manually specify which device to use for a default gateway (Internet) such as "route add default gw 10.0.0.1 netmask 255.0.0.0 dev eth1" in order your system to understand which nic to use for the different traffic (internal + external).
|
Re: funny problem with 2 nics
Quote:
In your case you cannot route add two routes on two ethernet cards which both start from 10.0.*.* . Its ambiguous. If you donot have many nos of machines in your internal network, a seperate route for each & every machine could be a possibility to add. I think so. I sound lil confused... :p |
All times are GMT -5. The time now is 03:56 AM. |