Advertisement
gregmark

OpenStack or Bust, Part 9: net/cpt nodes after subnet-create

Mar 14th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.96 KB | None | 0 0
  1. ##################################
  2. ### Net Node OpSys Information ###
  3. ###    After subnet-create     ###
  4. ##################################
  5. --------------------------
  6. 192.168.241.99 knet-sn-01i (network node)
  7. --------------------------
  8.  
  9. # [ CHANGES ] #
  10. #  * tap0ba13868-04 port added as interface to br-int. It will be part of the subnet we just created and will later be connected to a dedicated dnsmasq instance.
  11.  
  12. $ ntpdate-debian 192.168.241.100
  13. 15 Mar 18:13:23 ntpdate[851]: adjust time server 192.168.241.100 offset -0.000038 sec
  14.  
  15. $ sysctl net.ipv4.ip_forward
  16. net.ipv4.ip_forward = 1
  17.  
  18. $ ip addr show | egrep "^([0-9]| *link| *inet ")
  19. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
  20.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  21.     inet 127.0.0.1/8 scope host lo
  22. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  23.     link/ether 3c:d9:2b:fa:aa:94 brd ff:ff:ff:ff:ff:ff
  24.     inet 192.168.241.99/24 brd 192.168.241.255 scope global eth0
  25. 3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  26.     link/ether 3c:d9:2b:fa:aa:96 brd ff:ff:ff:ff:ff:ff
  27. 4: eth2: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  28.     link/ether 3c:d9:2b:fa:aa:98 brd ff:ff:ff:ff:ff:ff
  29. 5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  30.     link/ether 3c:d9:2b:fa:aa:9a brd ff:ff:ff:ff:ff:ff
  31. 6: br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  32.     link/ether 3c:d9:2b:fa:aa:96 brd ff:ff:ff:ff:ff:ff
  33.     inet 192.168.239.99/24 brd 192.168.239.255 scope global br-eth1
  34. 7: br-int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  35.     link/ether 6a:e8:e4:ac:82:42 brd ff:ff:ff:ff:ff:ff
  36. 8: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  37.     link/ether 3c:d9:2b:fa:aa:98 brd ff:ff:ff:ff:ff:ff
  38.     inet 10.0.165.92/22 brd 10.0.167.255 scope global br-ex
  39. 17: phy-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  40.     link/ether 6a:92:dc:2a:d2:df brd ff:ff:ff:ff:ff:ff
  41. 18: int-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  42.     link/ether ae:8e:5c:9f:e9:66 brd ff:ff:ff:ff:ff:ff
  43.  
  44. $ netstat -rn
  45. Kernel IP routing table
  46. Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  47. 0.0.0.0         192.168.241.1   0.0.0.0         UG        0 0          0 eth0
  48. 10.0.164.0     0.0.0.0         255.255.252.0   U         0 0          0 br-ex
  49. 192.168.239.0   0.0.0.0         255.255.255.0   U         0 0          0 br-eth1
  50. 192.168.241.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
  51.  
  52. $ ip netns show
  53. qdhcp-81c0747d-0b40-4106-8421-ecea5c423bb9
  54.  
  55. $ ls -R /var/run/netns; ls -R /etc/netns
  56. /var/run/netns:
  57. qdhcp-81c0747d-0b40-4106-8421-ecea5c423bb9
  58.  
  59. $ brctl show
  60. bridge name bridge id       STP enabled interfaces
  61. br-eth1     0000.3cd92bfaaa96   no      eth1
  62.                             phy-br-eth1
  63. br-ex       0000.3cd92bfaaa98   no      eth2
  64. br-int      0000.6ae8e4ac8242   no      int-br-eth1
  65.                             tap0ba13868-04      #<<----- HELLO!
  66.  
  67. $ ovs-vsctl show
  68. d9e95f94-241a-4b0b-967e-934c9a8bc645
  69.     Bridge "br-eth1"
  70.         Port "phy-br-eth1"
  71.             Interface "phy-br-eth1"
  72.         Port "eth1"
  73.             Interface "eth1"
  74.         Port "br-eth1"
  75.             Interface "br-eth1"
  76.                 type: internal
  77.     Bridge br-int
  78.         Port "int-br-eth1"
  79.             Interface "int-br-eth1"
  80.         Port br-int
  81.             Interface br-int
  82.                 type: internal
  83.         Port "tap0ba13868-04"
  84.             tag: 1
  85.             Interface "tap0ba13868-04"  #<<----- HELLO AGAIN!
  86.                 type: internal
  87.     Bridge br-ex
  88.         Port "eth2"
  89.             Interface "eth2"
  90.         Port br-ex
  91.             Interface br-ex
  92.                 type: internal
  93.     ovs_version: "1.4.3"
  94.  
  95. $ ping 10.0.164.1
  96. UP
  97.  
  98. $ ping 192.168.241.1
  99. UP
  100.  
  101. $ ping 192.168.239.1
  102. UP
  103.  
  104. ######################################
  105. ### Compute Node OpSys Information ###
  106. ###      After subnet-create       ###
  107. ######################################
  108.  
  109. --------------------------
  110. 192.168.241.110 kvm-sn-10i (compute node)
  111. --------------------------
  112.  
  113. # [ NO CHANGES ] #
  114.  
  115. $ ntpdate-debian 192.168.241.100
  116. 15 Mar 18:16:18 ntpdate[2458]: adjust time server 192.168.241.100 offset 0.000719 sec
  117.  
  118. $ sysctl net.ipv4.ip_forward
  119. net.ipv4.ip_forward = 1
  120.  
  121. $ ip addr show | egrep "^([0-9]| *link| *inet ")
  122. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
  123.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  124.     inet 127.0.0.1/8 scope host lo
  125. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  126.     link/ether bc:30:5b:ef:ed:d0 brd ff:ff:ff:ff:ff:ff
  127.     inet 192.168.241.110/24 brd 192.168.241.255 scope global eth0
  128. 3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  129.     link/ether bc:30:5b:ef:ed:d1 brd ff:ff:ff:ff:ff:ff
  130. 4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  131.     link/ether bc:30:5b:ef:ed:d2 brd ff:ff:ff:ff:ff:ff
  132. 5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  133.     link/ether bc:30:5b:ef:ed:d3 brd ff:ff:ff:ff:ff:ff
  134. 7: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
  135.     link/ether da:4d:47:2f:98:42 brd ff:ff:ff:ff:ff:ff
  136. 8: br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  137.     link/ether bc:30:5b:ef:ed:d1 brd ff:ff:ff:ff:ff:ff
  138.     inet 192.168.239.110/24 brd 192.168.239.255 scope global br-eth1
  139. 15: phy-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  140.     link/ether aa:d8:03:2c:46:7d brd ff:ff:ff:ff:ff:ff
  141. 16: int-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  142.     link/ether 4a:03:d7:b2:b9:6d brd ff:ff:ff:ff:ff:ff
  143.  
  144. $ netstat -rn
  145. Kernel IP routing table
  146. Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  147. 0.0.0.0         192.168.241.1   0.0.0.0         UG        0 0          0 eth0
  148. 192.168.239.0   0.0.0.0         255.255.255.0   U         0 0          0 br-eth1
  149. 192.168.241.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
  150.  
  151. $ ip netns show
  152.  
  153. $ ls -R /var/run/netns; ls -R /etc/netns
  154.  
  155. $ brctl show
  156. bridge name bridge id       STP enabled interfaces
  157. br-eth1     0000.bc305befedd1   no      eth1
  158.                             phy-br-eth1
  159. br-int      0000.da4d472f9842   no      int-br-eth1  #<----- BUBKIS CHANGE
  160.  
  161. $ ovs-vsctl show
  162. 05d6f268-a221-469a-9921-218905ca3277
  163.     Bridge br-int
  164.         Port br-int
  165.             Interface br-int
  166.                 type: internal
  167.         Port "int-br-eth1"
  168.             Interface "int-br-eth1"  #<--- MORE BUBKIS CHANGE
  169.     Bridge "br-eth1"
  170.         Port "br-eth1"
  171.             Interface "br-eth1"
  172.                 type: internal
  173.         Port "phy-br-eth1"
  174.             Interface "phy-br-eth1"
  175.         Port "eth1"
  176.             Interface "eth1"
  177.     ovs_version: "1.4.3"
  178.  
  179. $ ping 10.0.164.1
  180. UP
  181.  
  182. $ ping 192.168.241.1
  183. UP
  184.  
  185. $ ping 192.168.239.1
  186. UP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement