associated public IP can not be pinged
Hi,
I am able to allocate and associate a public IP address to a running VM. But I just cannot ping it from outside the VM host.
INSTANCE i-0000009c ami-00000045 192.55.50.173 192.168.0.2 running mykey (proj, ospc001) 0 m1.small 2012-01-
where 192.55.50.173 is a floating IP address I created and allocated to the VM which itself is spawned onto the controller node.
I followed the following procedure to alloacte and associate:
root@ospc001:~# nova-manage floating create 192.55.50.173/32
root@ospc001:~# euca-allocate-
ADDRESS 192.55.50.173
root@ospc001:~# euca-associate-
ADDRESS 192.55.50.173 i-0000009c
On my controller, I set network_manager and public_interface as follows
--network_
--flat_
--flat_
--public_
--flat_
The IP address table shows the associated floating address is added to eth0.
root@ospc001:
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet 169.254.169.254/32 scope link lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,
link/ether 00:24:81:88:c0:76 brd ff:ff:ff:ff:ff:ff
inet 192.55.50.172/24 brd 192.55.50.255 scope global eth0
inet 192.55.50.173/32 scope global eth0
inet6 fe80::224:
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,
link/ether 00:24:81:88:c0:74 brd ff:ff:ff:ff:ff:ff
inet6 fe80::224:
valid_lft forever preferred_lft forever
4: br100: <BROADCAST,
link/ether 00:24:81:88:c0:74 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.1/24 brd 192.168.0.255 scope global br100
inet6 fe80::224:
valid_lft forever preferred_lft forever
6: vnet0: <BROADCAST,
link/ether fe:16:3e:1c:13:da brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:
valid_lft forever preferred_lft forever
The NAT rule looks fine:
root@ospc001:
-A nova-network-OUTPUT -d 192.55.50.173/32 -j DNAT --to-destination 192.168.0.2
-A nova-network-
-A nova-network-
root@ospc001:
GROUP proj default default
PERMISSION proj default ALLOWS tcp 22 22 FROM CIDR 0.0.0.0/0
PERMISSION proj default ALLOWS icmp -1 -1 FROM CIDR 0.0.0.0/0
Then I ping the VM via its public IP from a different compute node, it did not reply.
localadmin@
PING 192.55.50.173 (192.55.50.173) 56(84) bytes of data.
^C
--- 192.55.50.173 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2014ms
What am I setting incorrectly?
Thanks!
Josh
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- josh
- Solved:
- Last query:
- Last reply: