Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have a 2 instances:
- [root@study-node1 ml2]# nova list
- +--------------------------------------+---------------+--------+------------+-------------+---------------------------------+
- | ID | Name | Status | Task State | Power State | Networks |
- +--------------------------------------+---------------+--------+------------+-------------+---------------------------------+
- | 24518a67-ddc0-402f-9307-16b6f3dea43a | cirros_test13 | ACTIVE | - | Running | demo-net=10.0.0.119, 10.2.57.69 |
- | eb278be0-36b9-4938-aa23-77ae80d8fcea | cirros_test14 | ACTIVE | - | Running | demo-net=10.0.0.120 |
- +--------------------------------------+---------------+--------+------------+-------------+---------------------------------+
- I have a vlan network:
- [root@nethost ~]# neutron net-list
- +--------------------------------------+----------+---------------------------------------------------+
- | id | name | subnets |
- +--------------------------------------+----------+---------------------------------------------------+
- | f8bdf250-d08f-467a-a073-003ea3165c5d | demo-net | 09c1e060-754f-44d7-b20a-5330812aef33 10.0.0.0/24 |
- | 388e6633-e961-493a-b882-28a152eb66b4 | ext-net | 40b9a6b0-0472-429f-99e2-2cccb81bc341 10.2.57.0/24 |
- +--------------------------------------+----------+---------------------------------------------------+
- [root@nethost ~]# neutron net-show f8bdf250-d08f-467a-a073-003ea3165c5d
- +---------------------------+--------------------------------------+
- | Field | Value |
- +---------------------------+--------------------------------------+
- | admin_state_up | True |
- | id | f8bdf250-d08f-467a-a073-003ea3165c5d |
- | name | demo-net |
- | provider:network_type | vlan |
- | provider:physical_network | vlan |
- | provider:segmentation_id | 2001 |
- | router:external | False |
- | shared | False |
- | status | ACTIVE |
- | subnets | 09c1e060-754f-44d7-b20a-5330812aef33 |
- | tenant_id | d7555ade73fb43f2a51754d647a5697f |
- +---------------------------+--------------------------------------+
- [root@nethost ~]#
- ICMP is permited:
- [root@study-node1 ml2]# neutron security-group-rule-list
- +--------------------------------------+----------------+-----------+----------+------------------+--------------+
- | id | security_group | direction | protocol | remote_ip_prefix | remote_group |
- +--------------------------------------+----------------+-----------+----------+------------------+--------------+
- | 008cb6af-b34f-43b8-b542-f4dbbe476fdf | default | egress | | | |
- | 0b38b8a2-32d7-4fa3-a3ac-6a4d5c1867a2 | default | ingress | tcp | 0.0.0.0/0 | |
- | b89e7b84-8f25-423a-80f8-17e56197e964 | default | ingress | icmp | 0.0.0.0/0 | |
- | c9f9f503-2c96-4d51-8154-bacbcacbb61e | default | ingress | | | default |
- | f0cf40ea-4b1e-4629-99c2-0212bf31e93f | default | ingress | | | default |
- | fa0dbdca-63b7-4fbc-bfaa-045462588598 | default | egress | | | |
- +--------------------------------------+----------------+-----------+----------+------------------+--------------+
- In neutron node i have net namespaces:
- [root@nethost ~]# ip netns ls
- qrouter-7573b61c-1cb2-43bc-8296-421e319d2bd0
- qdhcp-f8bdf250-d08f-467a-a073-003ea3165c5d
- [root@nethost ~]# ip netns ls
- qrouter-7573b61c-1cb2-43bc-8296-421e319d2bd0
- qdhcp-f8bdf250-d08f-467a-a073-003ea3165c5d
- [root@nethost ~]# ip netns exec qrouter-7573b61c-1cb2-43bc-8296-421e319d2bd0 ifconfig
- lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
- inet 127.0.0.1 netmask 255.0.0.0
- inet6 ::1 prefixlen 128 scopeid 0x10<host>
- loop txqueuelen 0 (Local Loopback)
- RX packets 10 bytes 1048 (1.0 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 10 bytes 1048 (1.0 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- qg-8d652de9-58: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 10.2.57.68 netmask 255.255.255.0 broadcast 10.2.57.255
- inet6 fe80::f816:3eff:fe4e:b045 prefixlen 64 scopeid 0x20<link>
- ether fa:16:3e:4e:b0:45 txqueuelen 0 (Ethernet)
- RX packets 1308 bytes 86770 (84.7 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 93 bytes 4350 (4.2 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- qr-1a0e7fd7-63: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
- inet6 fe80::f816:3eff:feac:4843 prefixlen 64 scopeid 0x20<link>
- ether fa:16:3e:ac:48:43 txqueuelen 0 (Ethernet)
- RX packets 14 bytes 1142 (1.1 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 22 bytes 1368 (1.3 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- [root@nethost ~]#
- And this link pinged by all hosts:
- [root@study-node1 ml2]# ping -c 1 10.0.0.1
- PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
- 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.401 ms
- --- 10.0.0.1 ping statistics ---
- 1 packets transmitted, 1 received, 0% packet loss, time 0ms
- rtt min/avg/max/mdev = 0.401/0.401/0.401/0.000 ms
- [root@study-node1 ml2]#
- [root@study-controller ~]# ping -c 1 10.0.0.1
- PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
- 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.444 ms
- --- 10.0.0.1 ping statistics ---
- 1 packets transmitted, 1 received, 0% packet loss, time 0ms
- rtt min/avg/max/mdev = 0.444/0.444/0.444/0.000 ms
- [klisovskaya@nethost ~]$ ping -c 1 10.0.0.1
- PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
- 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.493 ms
- --- 10.0.0.1 ping statistics ---
- 1 packets transmitted, 1 received, 0% packet loss, time 0ms
- rtt min/avg/max/mdev = 0.493/0.493/0.493/0.000 ms
- [klisovskaya@nethost ~]$
- [root@nethost ~]# ip netns exec qrouter-7573b61c-1cb2-43bc-8296-421e319d2bd0 bash
- [root@nethost ~]# tcp
- tcpdump tcpslice
- [root@nethost ~]# tcpdump -i
- lo qg-8d652de9-58 qr-1a0e7fd7-63
- [root@nethost ~]# tcpdump -i qr-1a0e7fd7-63
- tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
- listening on qr-1a0e7fd7-63, link-type EN10MB (Ethernet), capture size 65535 bytes
- No any packages. DHCP also.
- But in main namespace, we have this (on network node!):
- [root@nethost ~]# tcpdump -i eth1
- tcpdump: WARNING: eth1: no IPv4 address assigned
- tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
- listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
- 10:53:23.061867 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
- 10:53:23.061986 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
- 10:53:24.060594 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
- 10:53:24.060747 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
- 10:53:25.060640 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
- 10:53:25.060779 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
- 10:53:26.062330 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
- 10:53:26.062492 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
- 10:53:27.060699 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
- 10:53:27.060811 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
- 10:53:28.060849 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
- 10:53:28.061006 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
- ^C
- 12 packets captured
- It is a correct 00:50:56:b1:65:be MAC address of VM (it is try to ping 10.0.0.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement