gregmark

OpenStack or Bust, Part 9: net node after ext_net created

Mar 17th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.89 KB | None | 0 0
  1. --------------------------
  2. 192.168.241.99 knet-sn-01i
  3. --------------------------
  4. $ ntpdate-debian 192.168.241.100
  5. 17 Mar 19:23:36 ntpdate[10323]: adjust time server 192.168.241.100 offset 0.000138 sec
  6.  
  7. $ sysctl net.ipv4.ip_forward
  8. net.ipv4.ip_forward = 1
  9.  
  10. $ ip addr show | egrep "^([0-9]| *link| *inet ")
  11. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
  12.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  13.     inet 127.0.0.1/8 scope host lo
  14. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  15.     link/ether 3c:d9:2b:fa:aa:94 brd ff:ff:ff:ff:ff:ff
  16.     inet 192.168.241.99/24 brd 192.168.241.255 scope global eth0
  17. 3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  18.     link/ether 3c:d9:2b:fa:aa:96 brd ff:ff:ff:ff:ff:ff
  19. 4: eth2: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  20.     link/ether 3c:d9:2b:fa:aa:98 brd ff:ff:ff:ff:ff:ff
  21. 5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  22.     link/ether 3c:d9:2b:fa:aa:9a brd ff:ff:ff:ff:ff:ff
  23. 6: br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  24.     link/ether 3c:d9:2b:fa:aa:96 brd ff:ff:ff:ff:ff:ff
  25.     inet 192.168.239.99/24 brd 192.168.239.255 scope global br-eth1
  26. 7: br-int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  27.     link/ether 6a:e8:e4:ac:82:42 brd ff:ff:ff:ff:ff:ff
  28. 8: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  29.     link/ether 3c:d9:2b:fa:aa:98 brd ff:ff:ff:ff:ff:ff
  30.     inet 10.0.165.92/22 brd 10.0.167.255 scope global br-ex
  31. 17: phy-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  32.     link/ether 6a:92:dc:2a:d2:df brd ff:ff:ff:ff:ff:ff
  33. 18: int-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  34.     link/ether ae:8e:5c:9f:e9:66 brd ff:ff:ff:ff:ff:ff
  35.  
  36. $ netstat -rn
  37. Kernel IP routing table
  38. Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  39. 0.0.0.0         192.168.241.1   0.0.0.0         UG        0 0          0 eth0
  40. 10.0.164.0      0.0.0.0         255.255.252.0   U         0 0          0 br-ex
  41. 192.168.239.0   0.0.0.0         255.255.255.0   U         0 0          0 br-eth1
  42. 192.168.241.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
  43.  
  44. $ ip netns show
  45. qrouter-26c5bd92-e06c-4e54-9cd1-188d5e81a882
  46. qdhcp-81c0747d-0b40-4106-8421-ecea5c423bb9
  47.  
  48. $ ls -R /var/run/netns; ls -R /etc/netns
  49. /var/run/netns:
  50. qdhcp-81c0747d-0b40-4106-8421-ecea5c423bb9
  51. qrouter-26c5bd92-e06c-4e54-9cd1-188d5e81a882
  52.  
  53. $ brctl show
  54. bridge name bridge id       STP enabled interfaces
  55. br-eth1     0000.3cd92bfaaa96   no      eth1
  56.                             phy-br-eth1
  57. br-ex       0000.3cd92bfaaa98   no      eth2
  58.                             qg-e68e5139-07
  59. br-int      0000.6ae8e4ac8242   no      int-br-eth1
  60.                             qr-507cd4ad-89
  61.                             tap0ba13868-04
  62.  
  63. $ ovs-vsctl show
  64. d9e95f94-241a-4b0b-967e-934c9a8bc645
  65.     Bridge "br-eth1"
  66.         Port "phy-br-eth1"
  67.             Interface "phy-br-eth1"
  68.         Port "eth1"
  69.             Interface "eth1"
  70.         Port "br-eth1"
  71.             Interface "br-eth1"
  72.                 type: internal
  73.     Bridge br-int
  74.         Port "int-br-eth1"
  75.             Interface "int-br-eth1"
  76.         Port br-int
  77.             Interface br-int
  78.                 type: internal
  79.         Port "qr-507cd4ad-89"
  80.             tag: 1
  81.             Interface "qr-507cd4ad-89"
  82.                 type: internal
  83.         Port "tap0ba13868-04"
  84.             tag: 1
  85.             Interface "tap0ba13868-04"
  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.         Port "qg-e68e5139-07"
  94.             Interface "qg-e68e5139-07"
  95.                 type: internal
  96.     ovs_version: "1.4.3"
  97.  
  98. $ ping 10.0.164.1
  99. UP
  100.  
  101. $ ping 192.168.241.1
  102. UP
  103.  
  104. $ ping 192.168.239.1
  105. UP
Advertisement
Add Comment
Please, Sign In to add comment