Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Linux mutiple default gw routing table
Name: vinay Date: August 2, 2002 at 03:46:45 Pacific
Comment:
i, I am using 7.2 linux OS. I have connected ISDN card to pci slot. PRBLEM: When system boots it recieves IP addr and default gatway addr from the D HCP server. If I run route from the shell, I can see default gateway in kernel r uting table. Now I connect to internet through ISDN line using isdn-config. Afte r connecting to net , I will get one more default gateway entry in the routing t able. Since there are two default entries in routing table, mozilla browser will not w ork due to unable to decide which route to use. Is there an
Name: jan Date: August 2, 2002 at 03:49:42 Pacific
Reply:
try using route command . where u can prioritize the routing I think
0
Response Number 2
Name: junky_toof Date: August 2, 2002 at 05:10:56 Pacific
Reply:
Easiest way is to probably manually alter your routing table via the isdn-up script by route -del default gw and route -add default gw.
More complicated, but maybe advantageous is to look at using linux' adv.routing to weight (admin distance) preferred routes. Do a google search for the linux adv.routing howto.
Another option is to run routed, it should do fine for something as simple as this scenario.
Summary: the command to see your route table is route or route -n (do not resolve name) the command to add a default gateway is (this is the long version without names): route add -net 0.0.0.0 netmask 0.0.0.0 ...
Summary: I have a small probelm with my linux box to get it to act as a gateway between my home network (192.168.0.X) and my isp 12.222.144.x). I can access the internet finw with th elinux box (like now) ...
Summary: I have a Linux box setup with 2 NICs to provide routing over 2 segment of networks using local ip. Segment A : 10.0.0.0 / 255.0.0.0 Segment B : 192.168.0.0 / 255.255.255.0 Linux box : eth0 / Segment A...