[Openstack] Guest to Host works but host to guest does not
ashish.jain14 at wipro.com
ashish.jain14 at wipro.com
Thu Jan 29 05:15:06 UTC 2015
Hi Srinivas,
Here are the details:
1) ifconfig -a
root at controller:/home/ashish# ifconfig -a
br-eth2 Link encap:Ethernet HWaddr 08:00:27:37:ac:ae
inet addr:192.168.56.2 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::10e9:c6ff:fec1:ca6c/64 Scope:Link
UP BROADCAST RUNNING PROMISC MTU:1500 Metric:1
RX packets:13156 errors:0 dropped:0 overruns:0 frame:0
TX packets:30363 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1115044 (1.1 MB) TX bytes:4070007 (4.0 MB)
br-int Link encap:Ethernet HWaddr a6:11:2a:83:d4:48
inet6 addr: fe80::48a9:34ff:fe1c:1a06/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:750 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:73696 (73.6 KB) TX bytes:648 (648.0 B)
eth0 Link encap:Ethernet HWaddr 08:00:27:73:0e:0d
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe73:e0d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:488 errors:0 dropped:0 overruns:0 frame:0
TX packets:571 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:46795 (46.7 KB) TX bytes:49402 (49.4 KB)
eth1 Link encap:Ethernet HWaddr 08:00:27:37:ac:ae
inet6 addr: fe80::a00:27ff:fe37:acae/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:20069 errors:0 dropped:0 overruns:0 frame:0
TX packets:31071 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1695919 (1.6 MB) TX bytes:4752990 (4.7 MB)
int-br-eth2 Link encap:Ethernet HWaddr b2:94:ca:76:85:39
inet6 addr: fe80::b094:caff:fe76:8539/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8047 errors:0 dropped:0 overruns:0 frame:0
TX packets:217 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:693379 (693.3 KB) TX bytes:15126 (15.1 KB)
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:65536 Metric:1
RX packets:526321 errors:0 dropped:0 overruns:0 frame:0
TX packets:526321 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:154582422 (154.5 MB) TX bytes:154582422 (154.5 MB)
ovs-system Link encap:Ethernet HWaddr 4a:34:03:77:d9:ad
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
phy-br-eth2 Link encap:Ethernet HWaddr ba:75:4e:f3:86:fa
inet6 addr: fe80::b875:4eff:fef3:86fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:217 errors:0 dropped:0 overruns:0 frame:0
TX packets:8047 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15126 (15.1 KB) TX bytes:693379 (693.3 KB)
qbr222f9329-6d Link encap:Ethernet HWaddr ce:6b:e3:6e:3b:00
inet6 addr: fe80::4ee:8dff:fe45:e64b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7660 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:538565 (538.5 KB) TX bytes:3420 (3.4 KB)
qbr98a6b5f7-65 Link encap:Ethernet HWaddr 4a:f9:40:e5:be:6b
inet6 addr: fe80::9887:cff:fed4:b679/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:712 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:60524 (60.5 KB) TX bytes:1740 (1.7 KB)
qvb222f9329-6d Link encap:Ethernet HWaddr ce:6b:e3:6e:3b:00
inet6 addr: fe80::cc6b:e3ff:fe6e:3b00/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:7835 errors:0 dropped:0 overruns:0 frame:0
TX packets:153 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:673219 (673.2 KB) TX bytes:10760 (10.7 KB)
qvb98a6b5f7-65 Link encap:Ethernet HWaddr 4a:f9:40:e5:be:6b
inet6 addr: fe80::48f9:40ff:fee5:be6b/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:984 errors:0 dropped:0 overruns:0 frame:0
TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:96680 (96.6 KB) TX bytes:4244 (4.2 KB)
qvo222f9329-6d Link encap:Ethernet HWaddr fe:f0:9b:cc:bc:27
inet6 addr: fe80::fcf0:9bff:fecc:bc27/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:153 errors:0 dropped:0 overruns:0 frame:0
TX packets:7835 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10760 (10.7 KB) TX bytes:673219 (673.2 KB)
qvo98a6b5f7-65 Link encap:Ethernet HWaddr 6a:67:9c:a9:43:04
inet6 addr: fe80::6867:9cff:fea9:4304/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:63 errors:0 dropped:0 overruns:0 frame:0
TX packets:984 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4244 (4.2 KB) TX bytes:96680 (96.6 KB)
tap222f9329-6d Link encap:Ethernet HWaddr fe:16:3e:1e:53:0d
inet6 addr: fe80::fc16:3eff:fe1e:530d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:79 errors:0 dropped:0 overruns:0 frame:0
TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:7412 (7.4 KB) TX bytes:10708 (10.7 KB)
tap98a6b5f7-65 Link encap:Ethernet HWaddr fe:16:3e:10:c9:66
inet6 addr: fe80::fc16:3eff:fe10:c966/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:2036 (2.0 KB) TX bytes:4954 (4.9 KB)
virbr0 Link encap:Ethernet HWaddr be:2e:88:cd:96:d2
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
2) brctl show
root at controller:/home/ashish# brctl show
bridge name bridge id STP enabled interfaces
qbr222f9329-6d 8000.ce6be36e3b00 no qvb222f9329-6d
tap222f9329-6d
qbr98a6b5f7-65 8000.4af940e5be6b no qvb98a6b5f7-65
tap98a6b5f7-65
virbr0 8000.000000000000 yes
3) ovs-vsctl show
root at controller:/home/ashish# ovs-vsctl show
1e062790-8818-4b76-ad43-20186b9550f6
Bridge "br-eth2"
Port "eth1"
Interface "eth1"
Port "phy-br-eth2"
Interface "phy-br-eth2"
Port "br-eth2"
Interface "br-eth2"
type: internal
Bridge br-int
fail_mode: secure
Port br-int
Interface br-int
type: internal
Port "qvo222f9329-6d"
tag: 1
Interface "qvo222f9329-6d"
Port "int-br-eth2"
Interface "int-br-eth2"
Port "tap0b9f0fa0-bc"
tag: 1
Interface "tap0b9f0fa0-bc"
type: internal
Port "qvo98a6b5f7-65"
tag: 1
Interface "qvo98a6b5f7-65"
ovs_version: "2.0.2"
4) root at controller:/home/ashish# ovs-ofctl dump-flows br-eth2
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=17240.03s, table=0, n_packets=188, n_bytes=13160, idle_age=30, priority=4,in_port=2,dl_vlan=1 actions=strip_vlan,NORMAL
cookie=0x0, duration=17252.053s, table=0, n_packets=31, n_bytes=2558, idle_age=17192, priority=2,in_port=2 actions=drop
cookie=0x0, duration=17252.933s, table=0, n_packets=50500, n_bytes=5784007, idle_age=0, priority=1 actions=NORMAL
root at controller:/home/ashish# ovs-ofctl dump-flows br-int
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=17258.668s, table=0, n_packets=8124, n_bytes=699836, idle_age=0, priority=3,in_port=1,vlan_tci=0x0000 actions=mod_vlan_vid:1,NORMAL
cookie=0x0, duration=17270.823s, table=0, n_packets=7, n_bytes=578, idle_age=17264, priority=2,in_port=1 actions=drop
cookie=0x0, duration=17272.667s, table=0, n_packets=245, n_bytes=18394, idle_age=49, priority=1 actions=NORMAL
cookie=0x0, duration=17272.383s, table=22, n_packets=0, n_bytes=0, idle_age=17272, priority=0 actions=drop
Thanks for all your help!
Regards
Ashish
From: Srinivasreddy R <srinivasreddy4390 at gmail.com>
Sent: Wednesday, January 28, 2015 11:09 AM
To: Ashish Jain (WT01 - BAS)
Subject: Re: [Openstack] Guest to Host works but host to guest does not
hi ashish,
can you give
1.ifconfig -a
2.brctl show
3. ovs-vsctl show
4.ovs-ofctl dump-flows <bridges>
regards
Srinivas.
On Wed, Jan 28, 2015 at 10:37 AM, <ashish.jain14 at wipro.com> wrote:
Hi Srinivas,
This is a single VM setup this means all the components are installed on the same VM. This VM has got 2 ethernet interfaces eth0 and eth1. Access to TCP/22 is already enabled as you can see from
nova --os-tenant-name TenantA --os-username UserA --os-password password --os-auth-url=http://localhost:5000/v2.0 \
secgroup-add-rule default tcp 1 65535 0.0.0.0/0
Regards
Ashish
From: Srinivasreddy R <srinivasreddy4390 at gmail.com>
Sent: Wednesday, January 28, 2015 12:03 AM
To: Ashish Jain (WT01 - BAS)
Subject: Re: [Openstack] Guest to Host works but host to guest does not
i think you cannot access VM from compute node or controller .
insted you can loging through external network [need to enable tcp/22, icmp rules in security group rules ].A pc connected to br-ex via an external physical interface in controller node .
regards,
srinivas.
On Tue, Jan 27, 2015 at 10:30 PM, <ashish.jain14 at wipro.com> wrote:
Hi,
I am unable to ping/ssh from my host VM to guest VM. However opposite works just fine, that is I am able to ping from guest to host VM. Currently I am accessing my guest from horizon console and have tried pinging/sshing into my host VM and it works just fine. I have also tried using network namespace to ping from host to guest but it does not work. I am using neutron network.
I have already enabled ICMP/TCP/UDP port access using the following
nova --os-tenant-name TenantA --os-username UserA --os-password password --os-auth-url=http://localhost:5000/v2.0 \
secgroup-add-rule default tcp 1 65535 0.0.0.0/0
nova --os-tenant-name TenantA --os-username UserA --os-password password --os-auth-url=http://localhost:5000/v2.0 \
secgroup-add-rule default udp 1 65535 0.0.0.0/0
nova --os-tenant-name TenantA --os-username UserA --os-password password --os-auth-url=http://localhost:5000/v2.0 \
secgroup-add-rule default icmp -1 -1 0.0.0.0/0
Any pointers would be helpful.
Thanks
Ashish
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
--
thanks
srinivas.
--
thanks
srinivas.
More information about the Openstack
mailing list