top button
Flag Notify
Site Registration

ping problem with two external interfaces

+1 vote
421 views

I have two different IP addresses (in a block of /29), one is on port 0 and the other is on port 2 of a Ciso 888. I am doing this so I can have two different certs with two different ip addresses.

I have tried:
1) one machine, two real interfaces, two cables (eth0 and eth2)
2) one machine, one real interface eth0 and one virtual interface eth0:1, one network cable

Using number 2) I can ping the two different ip addresses, no problem. The only problem here is that iptables does not work (I cannot create rules for eth0:1 - and yes I know about the security implications).

I have a problem with number number 1) I can ping the first ip address and I get a return, but I cannot get a return when I ping the second ip address. I can see traffic coming into the second interface but it does not return. Now one of the interfaces needs the "default" route applied (is this correct??), which is eth0.

I assume this is a routing problem? What do I need to do to get this to work?

posted Aug 20, 2013 by Meenal Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Why do you need different rules for eth0:1? Can't you specify the IP addresses?

1 Answer

0 votes

Two IP addresses within the same subnet is generally something that should be avoided if at all possible.
Check the following link
http://serverfault.com/questions/336021/two-network-interfaces-and-two-ip-addresses-on-the-same-subnet-in-linuxfor

answer Aug 20, 2013 by Mandeep Sehgal
Similar Questions
0 votes

When I try:

 ping -R www.google.com

I get:

PING www.google.com (173.194.113.112) 56(124) bytes of data.

but the list of nodes does not appear, and I wait for more than 5 minutes. traceroute www.google.com gives immediately the list of nodes.

This is fedora 18, iptables stopped (and flushed), firewalld stopped.Could it be somehow due to not flushing firewalld rules ? (I don't know much about firewalld)

+2 votes

I am unable to ping my EnB, PGW through ping application.. It says request timed out but thing is I am able to see Request-Reply packets in wireshark captures. Not getting any idea on what is going wrong.

Please suggest some inputs.

...