LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-28-2007, 11:41 AM   #1
Histamine
LQ Newbie
 
Registered: Jun 2007
Posts: 20

Rep: Reputation: 0
Need help with route


I'm trying to get two network cards to go out the same gateway, but I'm having problems and feel like I'm missing something. I have a static ip on eth0 and another static ip on eth1. I can't get the internet on eth1, but I can on eth0. When I flip the ip addresses of eth0 and eth1, I can't get the internet on eth0. I've tried different things with route, nothing really seems to work. Any suggestions?

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref  Use Iface
xxx.xxx.xxx.112 *               255.255.255.248 U     0      0      0 eth0
xxx.xxx.xxx.112 *               255.255.255.248 U     0      0      0 eth1
192.168.5.0     *               255.255.255.0   U     0      0      0 eth2
localnet        *               255.255.255.0   U     0      0      0 eth3
loopback        *               255.0.0.0       U     0      0      0 lo
default         xxx.xxx.xxx.113 0.0.0.0         UG    1      0      0 eth0
 
Old 11-28-2007, 12:46 PM   #2
Vincent_Vega
Member
 
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
You can try this:
Code:
route add -net xxx.yyy.zzz.0 netmask 255.255.255.0 dev eth0
Fill in your network address for eth1 that you want to route through eth0, which has an active internet connection. Post back results.
 
Old 11-28-2007, 02:00 PM   #3
Histamine
LQ Newbie
 
Registered: Jun 2007
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks, I seem to have got it working. I deleted my default route through eth0, added a new default route through eth1, and and added some new firewall rules, and it worked, but its still not what I'm looking for.
 
  


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
iproute2 (ip route), pppoe and default route lorddoskias Linux - Networking 0 05-09-2007 12:04 PM
Default route took 20s to display with 'route' command Akhran Linux - Newbie 3 11-04-2006 05:59 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 04:17 PM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 01:14 PM

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

All times are GMT -5. The time now is 02:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration