I have 2 NICs in my RH7.0 box. Both work, and both find the ip address correctly. One is of my cable modem isp.. the other is of my LAN router (which is not the route to the internet for the linux box because it has its own ip) How do i convinse my box to go through the other network card to get to the internet. It currently goes through the router instead of the other NIC.
Thanks alot, Yank_ |
Add a default route to the interface you want to access the internet.
When you type the 'route' command I'm assuming that you see the incorrect interface for the default route? delete the default route - route delete default Add the correct default - route add default eth1 Hope this helps Gary |
Thanks alot
Hey Gary,
Thanks alot for the prompt reply. It worked with out a problem. Scott |
at least it did
It work fine at first.. but then after restarting, it set it back to the way it was. Now when i type that in.. it doesnt even work. Any ideas on how to make it perm?
Thanks |
Set your Linux bow up with static IPs, unless your cable ISP doesn't always give you the same IP. You can set all this info in:
/etc/sysconfig/network-scripts/ifcfg-eth0 & /etc/sysconfig/network-scripts/ifcfg-eth1 Then set the gateway and gateway device in: /etc/sysconfig/network This will take care of the problem for sure unless you have to pick up a dynamic IP from your provider. I use @home and this is how mine is configured.... Hope it helps.. Maybe if you have to use dhcp to get your IP, maybe you can try setting the gateway device anyway and see if it works like that... -Mark |
All times are GMT -5. The time now is 10:11 AM. |