LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-31-2006, 12:38 PM   #1
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
Setting of multipath default routes!!


Hi to all,

I got some problems when typing this command:

ip route add default scope global netxhop via 192.168.10.12 dev eth1 weight 1 netxhop via 192.168.10.13 dev eth2 weight 1

When I check the routing table using the 'route' command, I got this:

Destination Gateway Genmask Flags IFace
Default 192.168.10.12 0.0.0.0 UG eth1

What about the other interface (eth2)..is it not supposed to show up in the routing table?

Warm regards,
Visham
 
Old 05-31-2006, 06:09 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
ip route add default scope global netxhop via 192.168.10.12 dev eth1 weight 1 netxhop via 192.168.10.13 dev eth2 weight 1
And you got no errors at all using a faulty directive like "netxhop"? Weird...
"ip route show" shows both devices here after executing the command properly (reverse "tx").
 
Old 06-01-2006, 01:12 AM   #3
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Hi unSpawn,

This is the topology of the network I'm trying to set up:

Code:
       __________         _____________         _________
      |          |       |             |       |         |
      |      eth1|-------|eth0 FW1 eth1|-------|eth1     |
      |          |       |_____________|       |         |
PC_A--|eth0 PC_B |                             |PC_C eth0|--PC_D
      |          |        _____________        |         |
      |      eth2|-------|eth0 FW2 eth1|-------|eth2     |
      |__________|       |_____________|       |_________|
The configurations on the respective PCs are:
PC_A:
eth0 = 192.168.0.10/24
#ip route add default via 192.168.0.1

PC_B:
eth0 = 192.168.0.1/24
eth1 = 192.168.10.10/24
eth2 = 192.168.10.11/24
#ip route del 192.168.10.0/24 dev eth1
#ip route del 192.168.10.0/24 dev eth2
#ip route add default scope global netxhop via 192.168.10.12 dev eth1 weight 1 netxhop via 192.168.10.13 dev eth2 weight 1

FW1:
eth0 = 192.168.10.12/24
eth1 = 192.168.20.12/24
#ip route add 192.168.0.0/24 dev eth0
#ip route add 192.168.30.0/24 dev eth1

FW2:
eth0 = 192.168.10.13/24
eth1 = 192.168.20.13/24
#ip route add 192.168.0.0/24 dev eth0
#ip route add 192.168.30.0/24 dev eth1

PC_C:
eth0 = 192.168.30.1/24
eth1 = 192.168.20.10/24
eth2 = 192.168.20.11/24
#ip route del 192.168.20.0/24 dev eth1
#ip route del 192.168.20.0/24 dev eth2
#ip route add default scope global netxhop via 192.168.20.12 dev eth1 weight 1 netxhop via 192.168.20.13 dev eth2 weight 1

PC_D:
eth0 = 192.168.30.10/24
#ip route add default via 192.168.30.1

I'm trying to set up the routing so as to make enable PC_A to communicate with PC_D. I have enabled ip forwarding (ip_forward) and disabled reverse path filtering (rp_filter) on PC_B, PC_C, FW1 & FW2 for all NICs. B & C have 2.6.16 kernels with kernel options like advanced routing (CONFIG_IP_ADVANCED_ROUTER) and multipath route support selected.

When I ping from PC_A to PC_D, I'm getting "Destination host Unreachable" msg. What am I doing wrong?


Warm regards,
Visham

Last edited by vishamr2000; 06-01-2006 at 01:16 AM.
 
  


Reply



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
multiple default routes for dual nics alfman Linux - Networking 1 05-26-2006 09:26 AM
rc.inet1, routes, default gateways Woodsman Slackware 1 01-06-2006 12:41 AM
Setting static routes on LAN cranium2004 Linux - Networking 3 01-06-2005 11:57 PM
Default Routes joel112 Linux - Networking 0 12-30-2004 11:13 AM
routes, default gateways, ip's internet connecting - Much Stress mudelf Linux - Networking 2 09-29-2003 06:13 PM

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

All times are GMT -5. The time now is 04:45 PM.

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