LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't ping Virtual IP from another server (https://www.linuxquestions.org/questions/linux-networking-3/can%27t-ping-virtual-ip-from-another-server-4175496152/)

ginga 02-25-2014 10:10 AM

Can't ping Virtual IP from another server
 
Hello,

I have created a new virtual IP: "ifconfig eth0:0 inet 10.0.1.224 255.255.255.0"

Then, to check if it is working, I've tried to ping it from other machines. Unfortunately neither ping nor arping work from other than the localhost.

Could you please give me any hints on what could be wrong? What info could I provide?

PS. This is a duplicate post. The original is on Ubuntu forums. Unfortunately, no one has replied, so I'm trying my luck here. (http://ubuntuforums.org/showthread.p...8#post12935408)

Thanks,
Gintas

szboardstretcher 02-25-2014 10:12 AM

and what is the result of:

Code:

ip a
ip l
ip route
ping -I eth0:0 8.8.8.8


ginga 02-25-2014 10:23 AM

Thanks for your quick reply, szboardstretcher.

Quote:

Originally Posted by szboardstretcher (Post 5124385)
and what is the result of:

Code:

ip a
ip l
ip route


Commands are listed in execution sequence:

sudo ifconfig eth0:0 inet 10.0.1.224 netmask 255.255.255.0

ifconfig
Code:

eth0      Link encap:Ethernet  HWaddr 0a:16:00:29:f7:a5 
          inet addr:10.0.1.92  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::816:ff:fe29:f7a5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:410 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:58856 (58.8 KB)  TX bytes:60506 (60.5 KB)

eth0:0    Link encap:Ethernet  HWaddr 0a:16:00:29:f7:a5 
          inet addr:10.0.1.224  Bcast:10.0.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:87 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22536 (22.5 KB)  TX bytes:22536 (22.5 KB)

ip a
Code:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 0a:16:00:29:f7:a5 brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.92/24 brd 10.0.1.255 scope global eth0
    inet 10.0.1.224/24 brd 10.0.1.255 scope global secondary eth0:0
    inet6 fe80::816:ff:fe29:f7a5/64 scope link
      valid_lft forever preferred_lft forever
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN
    link/ether 52:62:c2:26:2b:0e brd ff:ff:ff:ff:ff:ff
4: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
    link/ether 5e:8e:63:98:c9:c0 brd ff:ff:ff:ff:ff:ff
5: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
    link/ether 0a:46:78:ca:72:9c brd ff:ff:ff:ff:ff:ff
6: eql: <MASTER> mtu 576 qdisc noop state DOWN qlen 5
    link/slip

ip l
Code:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 0a:16:00:29:f7:a5 brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN
    link/ether 52:62:c2:26:2b:0e brd ff:ff:ff:ff:ff:ff
4: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
    link/ether 5e:8e:63:98:c9:c0 brd ff:ff:ff:ff:ff:ff
5: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
    link/ether 0a:46:78:ca:72:9c brd ff:ff:ff:ff:ff:ff
6: eql: <MASTER> mtu 576 qdisc noop state DOWN qlen 5
    link/slip

ip route
Code:

10.0.1.0/24 dev eth0  proto kernel  scope link  src 10.0.1.92
default via 10.0.1.1 dev eth0  metric 100


Ser Olmy 02-25-2014 10:24 AM

How does this IP address relate to the IP address assigned to eth0? Are they in the same IP network (10.0.1.0/24)?

Edit: OK, I see that they are. When you try to ping 10.0.1.224 from another host, does that host get an ARP entry for that address?

ginga 02-25-2014 10:32 AM

Ah, I think it is important to note: I am working with Amazon Cloud. Not sure what impact may this have though.

Yes, I wish 10.0.1.244 to be on the same network as 10.0.1.0/24. Currently only 10.0.1.244 can be pinged from the localhost.
All other cases do not work.

I assume I will have to update DNS manually:

nslookup 10.0.1.244
Code:

Server:                10.0.0.2
Address:        10.0.0.2#53

Non-authoritative answer:
244.1.0.10.in-addr.arpa        name = ip-10-0-1-244.eu-west-1.compute.internal.

Authoritative answers can be found from:

Is it the case that I have to push relevant settings to 10.0.0.2 manually (DNS server)?

szboardstretcher 02-25-2014 10:39 AM

If this is AWS you can't just pick IP's willy-nilly, you have to set them up through elasticIP and the dashboard, then set it up inside the VM.

edit:

more info here:
http://aws.amazon.com/about-aws/what...in-amazon-vpc/

ginga 02-25-2014 11:24 AM

Ahh, that's how it is. Much appreciated!

Gintas


All times are GMT -5. The time now is 10:37 PM.