virtual interface on CentOS 6.5 routing issue

Issues related to configuring your network
Post Reply
murad.hasan
Posts: 3
Joined: 2014/07/20 09:08:26

virtual interface on CentOS 6.5 routing issue

Post by murad.hasan » 2014/07/20 09:12:43

I am having a wired situation while trying to up virtual interface in CentOS 6.5.

same virtual interface with a public IP can be pinged from out side and same IP with other centos box is not reachable from outside. though all the IP is in same subnet.

As result my heartbeat virtual inteface is working in primary server but not in backup server.

it means virtual interface/IP is reachable from outside while it's up in primary server but does not while it in backup server. interesting it's reachable from LAN while it's in backup server.

Any help would be appreciated

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: virtual interface on CentOS 6.5 routing issue

Post by TrevorH » 2014/07/20 09:43:49

You need to explain better and give concrete examples since your explanation doesn't make any sense.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

murad.hasan
Posts: 3
Joined: 2014/07/20 09:08:26

Re: virtual interface on CentOS 6.5 routing issue

Post by murad.hasan » 2014/07/21 06:01:30

Hi
Thanks for the reply..
Let me explain a bit more
I have got 2 server both eth0 assigned with public IP as below:-
Main Server: X.X.X.5
Backup Server : X.X.X.6
When I assign eth0:0 X.X.X.4 in Main Server I can access that IP X.X.X.4 (Virtual interface) from Outside world
When I assign same eth0:0 X.X.X.4 in Backup Server I can NOT access that IP X.X.X.4 Virtual interface from Outside world (obviously down Main eth0:0 when I up it at Backup Server)
Hope it clarifies

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: virtual interface on CentOS 6.5 routing issue

Post by TrevorH » 2014/07/21 07:59:13

What commands are you running to do this? How about giving some real information about what you are doing and what happens or doesn't? Include the commands you are running and any output they give.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

murad.hasan
Posts: 3
Joined: 2014/07/20 09:08:26

Re: virtual interface on CentOS 6.5 routing issue

Post by murad.hasan » 2014/07/21 08:27:00

steps are given as follows:-
first execute following command in main server (centos 6.5)

$ifconfig eth0:0 202.191.121.4 netmask 255.255.255.224

$ping -I eth0:0 http://www.google.com // it works from the main server

interface eth0:0 up at main server I can ping 202.191.121.4 from outside

$ ifconfig eth0:0 down

so eth0:0 down at main server

Now i execute same command in backup server (centos 6.5)

$ifconfig eth0:0 202.191.121.4 netmask 255.255.255.224

$ping -I eth0:0 http://www.google.com // it works from the backup server

interface eth0:0 up at backup server confirmed with ifconfig but I can NOT ping 202.191.121.4 from outside

any clue?

Post Reply