zen0n
02-14-2003, 12:45 PM
I just installed a second nic into my box, all went well until I noticed the routing table. The default gateway was to the secondary nic and now nothing would resolve. I removed the default gateway and this is what I'm left with.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
172.19.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
The 172.19.1 network is on eth0 and is my nat'd internet connection which should be the default route for all packets. I'm not sure how to do this tho :)
I would also like to set a rule that all traffic for the 192.168.0 net goes out on eth1.
what route commands do I need to use? I tried toute add default gw eth0 but that didn't work
zen0n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
172.19.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
The 172.19.1 network is on eth0 and is my nat'd internet connection which should be the default route for all packets. I'm not sure how to do this tho :)
I would also like to set a rule that all traffic for the 192.168.0 net goes out on eth1.
what route commands do I need to use? I tried toute add default gw eth0 but that didn't work
zen0n