Advertisement
gregmark

OpenStack or Bust, Part 7: net node FIXED

Mar 11th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.24 KB | None | 0 0
  1. -----------------------------
  2. 192.168.241.99 knet-sn-01i
  3. -----------------------------
  4. $ ntpdate-debian 192.168.241.100
  5. 11 Mar 14:46:42 ntpdate[2478]: adjust time server 192.168.241.100 offset -0.000013 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-int: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  24.     link/ether 6a:e8:e4:ac:82:42 brd ff:ff:ff:ff:ff:ff
  25. 7: br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  26.     link/ether 3c:d9:2b:fa:aa:96 brd ff:ff:ff:ff:ff:ff
  27.     inet 192.168.239.99/24 brd 192.168.239.255 scope global br-eth1
  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. 9: phy-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  32.     link/ether ce:ad:6e:48:31:0f brd ff:ff:ff:ff:ff:ff
  33. 10: int-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  34.     link/ether 16:fa:c8:66:a0:6c 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. $ brctl show
  45. bridge name bridge id       STP enabled interfaces
  46. br-eth1     0000.3cd92bfaaa96   no      eth1
  47.                             phy-br-eth1
  48. br-ex       0000.3cd92bfaaa98   no      eth2
  49. br-int      0000.6ae8e4ac8242   no      int-br-eth1
  50.  
  51. $ ovs-vsctl show
  52. d9e95f94-241a-4b0b-967e-934c9a8bc645
  53.     Bridge "br-eth1"
  54.         Port "eth1"
  55.             Interface "eth1"
  56.         Port "phy-br-eth1"
  57.             Interface "phy-br-eth1"
  58.         Port "br-eth1"
  59.             Interface "br-eth1"
  60.                 type: internal
  61.     Bridge br-int
  62.         Port br-int
  63.             Interface br-int
  64.                 type: internal
  65.         Port "int-br-eth1"
  66.             Interface "int-br-eth1"
  67.     Bridge br-ex
  68.         Port "eth2"
  69.             Interface "eth2"
  70.         Port br-ex
  71.             Interface br-ex
  72.                 type: internal
  73.     ovs_version: "1.4.3"
  74.  
  75. $ ping 10.0.164.1
  76. UP
  77.  
  78. $ ping 192.168.241.1
  79. UP
  80.  
  81. $ ping 192.168.239.1
  82. UP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement