Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-03-2012
Registered User
 
Join Date: Feb 2006
Posts: 119
Thanks: 41
Thanked 0 Times in 0 Posts
routing multiple IPs

hi guys

This is suse 11 sp1

I have a Server that has 4 NICs, I've created 2 bonds
bond0(eth0-eth1) - 10.10.10.2
bond1(eth2-eth3) - 10.10.10.3

Each bound goes to a Storage Device which is directly connected
so bond0 goes to Storage_Controller_1 and 2 like this

Server_bond0 <--------> Storage_Controller_1 (10.10.10.4)

Server_bond1 <--------> Storage_Controller_2 (10.10.10.5)

The problem is when I ping from server to Storage it looks like only bond0 is active and since bond0 is direclty connected to Storage_Controller_1 it will only ping 10.10.10.4

is there a way to make both bonds independent so
communication between bonds and storage 1 and 2 are separate?

also I attached a computer to this server and that hub (just for testing) and found this is from a windows box an arp command

Code:
C:\Documents and Settings\admin>arp -a
Interface: 10.10.10.100 --- 0x2
  Internet Address      Physical Address      Type
  10.10.10.2            00-0c-29-dc-10-ca     dynamic
  10.10.10.3            00-0c-29-dc-10-ca     dynamic


if fact If I disconnect cables from bond1 ip 10.10.10.3 this IP will be still pingable

any idea how to seperate this so
bond1 will respond to the IP is belongs to and the same for bond0

thanks a lot

---------- Post updated at 10:38 PM ---------- Previous update was at 07:10 PM ----------

Tried this not working


Code:
net.ipv4.conf.all.arp_ignore=1
net.ipv4.conf.all.arp_announce=2

net.ipv4.conf.default.arp_filter=1
net.ipv4.conf.all.arp_filter=1

any other idea?

Last edited by karlochacon; 03-03-2012 at 09:44 PM..
Sponsored Links
    #2  
Old 03-05-2012
Registered User
 
Join Date: Feb 2006
Posts: 119
Thanks: 41
Thanked 0 Times in 0 Posts
looks like I have to use iproute2 just don't know how
any guidance

thanks

---------- Post updated at 11:09 AM ---------- Previous update was at 12:45 AM ----------

guys

I am getting there

this does what I want

iproute2

Code:
echo 200 storage_table >> /etc/iproute2/rt_tables
ip rule add from 10.10.10.3 table storage_table
ip route add 10.10.10.0/24 via 10.10.10.3 dev eth1 table storage_table

sysctl parameters

Code:
net.ipv4.conf.all.arp_ignore=1
net.ipv4.conf.all.arp_announce=2

but I need to make this changes permanent after reboot
where I should add them?
I already tried /etc/init.d/boot.local but no luck


Code:
echo 200 storage_table >> /etc/iproute2/rt_tables
ip rule add from 10.10.10.3 table storage_table
ip route add 10.10.10.0/24 via 10.10.10.3 dev eth1 table storage_table

any idea?
thanks
Sponsored Links
    #3  
Old 03-05-2012
Registered User
 
Join Date: Sep 2011
Posts: 83
Thanks: 2
Thanked 10 Times in 10 Posts
Not sure how this works in SUSE, but could you add the commands in a post-up statement in the interface conf file?
The Following User Says Thank You to spynappels For This Useful Post:
karlochacon (03-05-2012)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
routing help pls vettec3 IP Networking 1 09-10-2010 02:17 AM
routing issues with multiple NIC cards myork HP-UX 2 06-23-2008 02:02 PM
Routing jaibw Linux 2 11-27-2005 10:36 PM
routing big123456 UNIX for Advanced & Expert Users 4 11-22-2005 04:45 AM
routing mrthrt UNIX for Dummies Questions & Answers 5 08-21-2003 02:39 PM



All times are GMT -4. The time now is 12:55 PM.