Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-28-2007, 10:41 AM   #1
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?

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref  Use Iface *      U     0      0      0 eth0 *      U     0      0      0 eth1     *        U     0      0      0 eth2
localnet        *        U     0      0      0 eth3
loopback        *            U     0      0      0 lo
default         UG    1      0      0 eth0
Old 11-28-2007, 11:46 AM   #2
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
You can try this:
route add -net xxx.yyy.zzz.0 netmask 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, 01:00 PM   #3
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.


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 11:04 AM
Default route took 20s to display with 'route' command Akhran Linux - Newbie 3 11-04-2006 04: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 04:34 AM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 03:17 PM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 12:14 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:12 AM.

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