LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-21-2006, 02:26 PM   #1
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
Routing problem!!


Hi to all,

This is the topology of the network I'm trying to set up. I wanted some help regarding the setting of ip route rules. Basically, PC_A wants to communicate with PC_D. Both hosts are directly connected to 2 other multi-homed PCs (B and C), which distribute traffic over Firewalls FW1 & FW2. B and C have three NICs each (eth0,1,2) while FW1 and FW2 have 2 each (eth0,1).

I want to do per-packet firewall load balancing. So I used the following commands:

On PC_B:
ip route add default scope global equalize nexthop via $IPaddr_PC_C_eth1 dev eth1 weight 1 nexthop via $IPaddr_PC_C_eth2 dev eth2 weight 1

On PC_C:
ip route add default scope global equalize nexthop via $IPaddr_PC_B_eth1 dev eth1 weight 1 nexthop via $IPaddr_PC_B_eth2 dev eth2 weight 1

On PC_A:

ip route add 192.168.10.0/24 via $IPaddr_PC_B_eth0

On PC_D:
ip route add 192.168.10.0/24 via $IPaddr_PC_C_eth0

FW1 & FW2:
I used an iptables rule to forward traffic from eth0 to eth1 on the firewall nodes.


I have enabled ip forwarding (ip_forward) and disabled return path filtering (rp_filter) on B, C, FW1 and FW2. PCs B and C have 2.6.16 kernels with kernel

options like advanced routing (CONFIG_IP_ADVANCED_ROUTER) and multipath route support selected.

I'm getting Destination host Unreachable msg. Can anyone tell me what am I doing wrong in the routing and/or what I'm not doing?



| eth1|-------|eth0 FW1 eth1|-------|eth1 |
PC_A--|eth0 PC_B | |PC_C eth0|--PC_D
| eth2|-------|eth0 FW2 eth1|-------|eth2 |



Warm regards,
Visham
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing problem teeno Linux - Networking 6 11-23-2005 06:44 PM
Routing problem? eqxro Linux - Networking 1 03-14-2005 12:23 PM
Routing problem exalik Linux - Networking 1 08-16-2003 04:39 AM
Routing problem Wild-A Linux - Networking 3 01-14-2003 07:15 PM
Routing Problem syxxpac023 Linux - Networking 3 02-20-2002 08:25 AM


All times are GMT -5. The time now is 08:00 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration