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 |
and what is the result of:
Code:
ip a |
Thanks for your quick reply, szboardstretcher.
Quote:
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 Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN Code:
10.0.1.0/24 dev eth0 proto kernel scope link src 10.0.1.92 |
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? |
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 |
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/ |
Ahh, that's how it is. Much appreciated!
Gintas |
All times are GMT -5. The time now is 10:37 PM. |