Advertisement
Guest User

Untitled

a guest
May 5th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.30 KB | None | 0 0
  1. I have a 2 instances:
  2.  
  3. [root@study-node1 ml2]# nova list
  4. +--------------------------------------+---------------+--------+------------+-------------+---------------------------------+
  5. | ID | Name | Status | Task State | Power State | Networks |
  6. +--------------------------------------+---------------+--------+------------+-------------+---------------------------------+
  7. | 24518a67-ddc0-402f-9307-16b6f3dea43a | cirros_test13 | ACTIVE | - | Running | demo-net=10.0.0.119, 10.2.57.69 |
  8. | eb278be0-36b9-4938-aa23-77ae80d8fcea | cirros_test14 | ACTIVE | - | Running | demo-net=10.0.0.120 |
  9. +--------------------------------------+---------------+--------+------------+-------------+---------------------------------+
  10.  
  11. I have a vlan network:
  12.  
  13. [root@nethost ~]# neutron net-list
  14. +--------------------------------------+----------+---------------------------------------------------+
  15. | id | name | subnets |
  16. +--------------------------------------+----------+---------------------------------------------------+
  17. | f8bdf250-d08f-467a-a073-003ea3165c5d | demo-net | 09c1e060-754f-44d7-b20a-5330812aef33 10.0.0.0/24 |
  18. | 388e6633-e961-493a-b882-28a152eb66b4 | ext-net | 40b9a6b0-0472-429f-99e2-2cccb81bc341 10.2.57.0/24 |
  19. +--------------------------------------+----------+---------------------------------------------------+
  20. [root@nethost ~]# neutron net-show f8bdf250-d08f-467a-a073-003ea3165c5d
  21. +---------------------------+--------------------------------------+
  22. | Field | Value |
  23. +---------------------------+--------------------------------------+
  24. | admin_state_up | True |
  25. | id | f8bdf250-d08f-467a-a073-003ea3165c5d |
  26. | name | demo-net |
  27. | provider:network_type | vlan |
  28. | provider:physical_network | vlan |
  29. | provider:segmentation_id | 2001 |
  30. | router:external | False |
  31. | shared | False |
  32. | status | ACTIVE |
  33. | subnets | 09c1e060-754f-44d7-b20a-5330812aef33 |
  34. | tenant_id | d7555ade73fb43f2a51754d647a5697f |
  35. +---------------------------+--------------------------------------+
  36. [root@nethost ~]#
  37.  
  38.  
  39. ICMP is permited:
  40.  
  41. [root@study-node1 ml2]# neutron security-group-rule-list
  42. +--------------------------------------+----------------+-----------+----------+------------------+--------------+
  43. | id | security_group | direction | protocol | remote_ip_prefix | remote_group |
  44. +--------------------------------------+----------------+-----------+----------+------------------+--------------+
  45. | 008cb6af-b34f-43b8-b542-f4dbbe476fdf | default | egress | | | |
  46. | 0b38b8a2-32d7-4fa3-a3ac-6a4d5c1867a2 | default | ingress | tcp | 0.0.0.0/0 | |
  47. | b89e7b84-8f25-423a-80f8-17e56197e964 | default | ingress | icmp | 0.0.0.0/0 | |
  48. | c9f9f503-2c96-4d51-8154-bacbcacbb61e | default | ingress | | | default |
  49. | f0cf40ea-4b1e-4629-99c2-0212bf31e93f | default | ingress | | | default |
  50. | fa0dbdca-63b7-4fbc-bfaa-045462588598 | default | egress | | | |
  51. +--------------------------------------+----------------+-----------+----------+------------------+--------------+
  52.  
  53. In neutron node i have net namespaces:
  54.  
  55. [root@nethost ~]# ip netns ls
  56. qrouter-7573b61c-1cb2-43bc-8296-421e319d2bd0
  57. qdhcp-f8bdf250-d08f-467a-a073-003ea3165c5d
  58.  
  59. [root@nethost ~]# ip netns ls
  60. qrouter-7573b61c-1cb2-43bc-8296-421e319d2bd0
  61. qdhcp-f8bdf250-d08f-467a-a073-003ea3165c5d
  62. [root@nethost ~]# ip netns exec qrouter-7573b61c-1cb2-43bc-8296-421e319d2bd0 ifconfig
  63. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  64. inet 127.0.0.1 netmask 255.0.0.0
  65. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  66. loop txqueuelen 0 (Local Loopback)
  67. RX packets 10 bytes 1048 (1.0 KiB)
  68. RX errors 0 dropped 0 overruns 0 frame 0
  69. TX packets 10 bytes 1048 (1.0 KiB)
  70. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  71.  
  72. qg-8d652de9-58: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  73. inet 10.2.57.68 netmask 255.255.255.0 broadcast 10.2.57.255
  74. inet6 fe80::f816:3eff:fe4e:b045 prefixlen 64 scopeid 0x20<link>
  75. ether fa:16:3e:4e:b0:45 txqueuelen 0 (Ethernet)
  76. RX packets 1308 bytes 86770 (84.7 KiB)
  77. RX errors 0 dropped 0 overruns 0 frame 0
  78. TX packets 93 bytes 4350 (4.2 KiB)
  79. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  80.  
  81. qr-1a0e7fd7-63: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  82. inet 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
  83. inet6 fe80::f816:3eff:feac:4843 prefixlen 64 scopeid 0x20<link>
  84. ether fa:16:3e:ac:48:43 txqueuelen 0 (Ethernet)
  85. RX packets 14 bytes 1142 (1.1 KiB)
  86. RX errors 0 dropped 0 overruns 0 frame 0
  87. TX packets 22 bytes 1368 (1.3 KiB)
  88. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  89.  
  90. [root@nethost ~]#
  91.  
  92.  
  93. And this link pinged by all hosts:
  94.  
  95. [root@study-node1 ml2]# ping -c 1 10.0.0.1
  96. PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
  97. 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.401 ms
  98.  
  99. --- 10.0.0.1 ping statistics ---
  100. 1 packets transmitted, 1 received, 0% packet loss, time 0ms
  101. rtt min/avg/max/mdev = 0.401/0.401/0.401/0.000 ms
  102. [root@study-node1 ml2]#
  103.  
  104. [root@study-controller ~]# ping -c 1 10.0.0.1
  105. PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
  106. 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.444 ms
  107.  
  108. --- 10.0.0.1 ping statistics ---
  109. 1 packets transmitted, 1 received, 0% packet loss, time 0ms
  110. rtt min/avg/max/mdev = 0.444/0.444/0.444/0.000 ms
  111.  
  112. [klisovskaya@nethost ~]$ ping -c 1 10.0.0.1
  113. PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
  114. 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.493 ms
  115.  
  116. --- 10.0.0.1 ping statistics ---
  117. 1 packets transmitted, 1 received, 0% packet loss, time 0ms
  118. rtt min/avg/max/mdev = 0.493/0.493/0.493/0.000 ms
  119. [klisovskaya@nethost ~]$
  120.  
  121. [root@nethost ~]# ip netns exec qrouter-7573b61c-1cb2-43bc-8296-421e319d2bd0 bash
  122. [root@nethost ~]# tcp
  123. tcpdump tcpslice
  124. [root@nethost ~]# tcpdump -i
  125. lo qg-8d652de9-58 qr-1a0e7fd7-63
  126. [root@nethost ~]# tcpdump -i qr-1a0e7fd7-63
  127. tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
  128. listening on qr-1a0e7fd7-63, link-type EN10MB (Ethernet), capture size 65535 bytes
  129.  
  130.  
  131. No any packages. DHCP also.
  132.  
  133. But in main namespace, we have this (on network node!):
  134.  
  135. [root@nethost ~]# tcpdump -i eth1
  136. tcpdump: WARNING: eth1: no IPv4 address assigned
  137. tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
  138. listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
  139. 10:53:23.061867 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
  140. 10:53:23.061986 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
  141. 10:53:24.060594 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
  142. 10:53:24.060747 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
  143. 10:53:25.060640 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
  144. 10:53:25.060779 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
  145. 10:53:26.062330 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
  146. 10:53:26.062492 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
  147. 10:53:27.060699 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
  148. 10:53:27.060811 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
  149. 10:53:28.060849 ARP, Request who-has 10.0.0.1 tell 10.0.0.119, length 46
  150. 10:53:28.061006 ARP, Reply 10.0.0.1 is-at 00:50:56:b1:65:be (oui Unknown), length 46
  151. ^C
  152. 12 packets captured
  153.  
  154. 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