LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2001, 10:30 PM   #1
yank_
LQ Newbie
 
Registered: Jan 2001
Posts: 21

Rep: Reputation: 15

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_
 
Old 02-24-2001, 11:01 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
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
 
Old 02-25-2001, 09:18 AM   #3
yank_
LQ Newbie
 
Registered: Jan 2001
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks alot

Hey Gary,
Thanks alot for the prompt reply. It worked with out a problem.

Scott
 
Old 02-25-2001, 02:41 PM   #4
yank_
LQ Newbie
 
Registered: Jan 2001
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 03-05-2001, 09:22 AM   #5
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The WAN and X WeNdeL Linux - Security 5 08-08-2005 02:46 PM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 02:30 PM
WAN : unable to ping to WAN ckl Linux - Networking 0 11-18-2004 01:56 AM
Postfix / WAN zdavis Linux - Networking 5 04-14-2003 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration