Hi !

My first post ever on this group but I ran into the same problem lately. 
Your problem is a routing problem I'd bet:

[root@nfs02 ~]# route -n 
Kernel IP routing table 
Destination     Gateway         Genmask         Flags Metric Ref 
Use Iface 
0.0.0.0         163.189.222.33  0.0.0.0         UG    0      0 
0 eth0 
163.189.222.0   0.0.0.0         255.255.255.0   U     0      0 
0 eth0* *
*192.168.42.0    0.0.0.0         255.255.255.0   U     0      0 *
*0 eth2 *
*192.168.42.0    0.0.0.0         255.255.255.0   U     0      0 *
*0 eth3 *
*192.168.42.0    0.0.0.0         255.255.255.0   U     0      0 *
*0 eth5 *
*192.168.42.0    0.0.0.0         255.255.255.0   U     0      0 *
*0 eth6 *

You have multiple ethernet card on the same subnet plugged 2 by  2 on two 
switchs : You NEED multiple routing tables (one for each card in fact).

The way to do this is to use iproute2 to create additionnal routing tables : 
the route -n command show only the "main" table. You can add a rule to 
inspect a specific table for each of your interfaces when they are working.


*How to do this :*

Create the additionnal ip routing tables :
*# Adding the route to table 20 (you can use a number up to 250 I think, I 
took 20 because of eth2)*
ip route add 192.168.42.0/24 dev eth2 proto kernel scope link src 
192.168.42.70 table 20
*# Add the rule saying to use this table for packets émited from 
192.168.42.70*
ip rule add from 192.168.42.70 lookup 20
*# If you want to remove the "wrong" route from the main table*
ip route del 192.168.42.0/24 dev eth2 table main
*# Refresh the route cache*
ip route flush cache

You can check everything is OK with "ip rule ls", should display :

0: from all lookup local 
xxxxx: from 192.168.42.70 lookup 20 
xxxxx: from all lookup main 
xxxxx: from all lookup default 

You can check you table 20 with "ip route show table 20", should display :
192.168.42/24 dev eth2  proto kernel  scope link  src 192.168.42.70 

and do this for each of your interface.

To keep the routes between reboots/ifup/ifdown add a "POST_UP_SCRIPT" option 
to your ifcfg script (check man ifcfg).

I Hope this will help ;)


Regards,

BriK

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/open-iscsi/-/chaw7lXCaoYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to