Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-24-2001, 10:30 PM
|
#1
|
LQ Newbie
Registered: Jan 2001
Posts: 21
Rep:
|
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_
|
|
|
02-24-2001, 11:01 PM
|
#2
|
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821
Rep: 
|
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
|
|
|
02-25-2001, 09:18 AM
|
#3
|
LQ Newbie
Registered: Jan 2001
Posts: 21
Original Poster
Rep:
|
Thanks alot
Hey Gary,
Thanks alot for the prompt reply. It worked with out a problem.
Scott
|
|
|
02-25-2001, 02:41 PM
|
#4
|
LQ Newbie
Registered: Jan 2001
Posts: 21
Original Poster
Rep:
|
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
|
|
|
03-05-2001, 09:22 AM
|
#5
|
Member
Registered: Feb 2001
Posts: 69
Rep:
|
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 08:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|