routing multiple IPs


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers routing multiple IPs
# 1  
Old 03-03-2012
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 10:44 PM..
# 2  
Old 03-05-2012
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
# 3  
Old 03-05-2012
Not sure how this works in SUSE, but could you add the commands in a post-up statement in the interface conf file?
This User Gave Thanks to spynappels For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Loop to curl multiple ips to ipinfo.io

I am rather new to shell scripting and currently taking a linux course. Im having some troubles writing a loop to curl multiple ips in mutiple access logs to the site ipinfo.io and push the output to a text file for easy viewing and removing duplicates. So far i have these simple lines cat... (1 Reply)
Discussion started by: kjcraig77
1 Replies

2. IP Networking

Server setup for multiple IP routing?

Hey there, I am a network administrator of a student dorm. Me and my team (we do this in our spare time) have the task to upgrade and rebuild our dorm intern network. But unfortunately we don't have that much experience with server setup and ip-routing and stuff. So here is the topic I want to... (8 Replies)
Discussion started by: mrgruen
8 Replies

3. AIX

Get List of users+IPs

Hello! We have an AIX box (6.3), we are looking for a way to get list of logged in users and their IP. The issue we have is running who -ub shows hostname and we are wanting to get the ip. Any suggestions of ideas? Thanks in advance for any help! (4 Replies)
Discussion started by: entropy1980
4 Replies

4. UNIX for Dummies Questions & Answers

iptables / ip route packet routing with multiple gateways

Hi all. Linux noob here. I was hoping someone could help me with configuring some routing rules on my router, an Asus AC68. The router is connected to two gateways, wan0_gateway and wan1_gateway. I have rules set up in the router gui that will push all traffic from every IP other than my own... (0 Replies)
Discussion started by: Bishi
0 Replies

5. Shell Programming and Scripting

Perl : ping for multiple IPs not working

I have written perl ping program to ping list of IPs one by one and print the status.But each and every time it is showing the status as Pass for all IPs even though the IP is wrong. multipleip.pl use Net::Ping; $p = Net::Ping->new(); $ifile="inventory.txt"; ... (2 Replies)
Discussion started by: scriptscript
2 Replies

6. Ubuntu

Routing trouble between multiple networks

Hi everyone, Hopefully there is someone here that can help me with the problem I got. At my office I have 1 ubuntu firewall/gateway and several networks. On the firewall/gateway I have three network cards, one for internet, one for network 192.168.100.0 and one for network 172.20.1.0 We... (0 Replies)
Discussion started by: thbor83
0 Replies

7. UNIX for Dummies Questions & Answers

How to assign multiple IPs to Aggregated interface in Solaris 10?

I have 2 physical interfaces (bnx0 and bnx1) aggregated into aggr1. I need to assign second IP, and normally I know how to do it to physical interface (i.e. bnx0:1) however same trick (aggr1:1) is not working. Is there any way to do it? (0 Replies)
Discussion started by: bratan
0 Replies

8. Shell Programming and Scripting

To add more than 500 ips

Hi, I have a server, which has more than of 1000 ip address, but only 500 ip address are responding in the Server. Here below the error message received while restarting the named Sep 22 00:25:00 ns2 named: creating IPv4 interface eth0:595 failed; interface ignored Sep 22 00:25:00 ns2... (5 Replies)
Discussion started by: gsiva
5 Replies

9. HP-UX

routing issues with multiple NIC cards

I am running HP_UX 11.23 with 4 NIC cards (this is our TSM server) I have 4 subnets we are backing across. trying to keep traffic on their subnets. I only have one route statment should I add more. route add net 123.99.8.0 netmask 255.255.255.0 123.99.8.254 route add net 123.99.67.0 netmask... (2 Replies)
Discussion started by: myork
2 Replies

10. Solaris

system Fake IPs

hi all ; I am using solaris 8 over SPARC . i was given the role to administer a webmail server running Iplanet 4.2 i was told also that this server is running a website . this server has 2 fake IPs . My question is how i can know these fake IPs and how they are mapped . cheers (2 Replies)
Discussion started by: ppass
2 Replies
Login or Register to Ask a Question