Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can't access external network(internet) through management network on controller node

Ubuntu 14.04 on VMware

Controller node:

     $ ifconfig

      eth0     Link encap:Ethernet  HWaddr 00:0c:29:2c:eb:bb  
      inet addr:10.0.0.11  Bcast:10.0.0.255  Mask:255.255.255.0
      inet6 addr: fe80::20c:29ff:fe2c:ebbb/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:170 errors:0 dropped:0 overruns:0 frame:0
      TX packets:209 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:22726 (22.7 KB)  TX bytes:27447 (27.4 KB)

      lo        Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:65536  Metric:1
      RX packets:863 errors:0 dropped:0 overruns:0 frame:0
      TX packets:863 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:76654 (76.6 KB)  TX bytes:76654 (76.6 KB)

Network Node:

      $ ifconfig

      eth0      Link encap:Ethernet  HWaddr 00:0c:29:4a:75:db  
      inet addr:192.168.132.128  Bcast:192.168.132.255  Mask:255.255.255.0
      inet6 addr: fe80::20c:29ff:fe4a:75db/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:810 errors:0 dropped:0 overruns:0 frame:0
      TX packets:695 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:410745 (410.7 KB)  TX bytes:113138 (113.1 KB)

      eth1      Link encap:Ethernet  HWaddr 00:0c:29:4a:75:e5  
      inet addr:10.0.0.21  Bcast:10.0.0.255  Mask:255.255.255.0
      inet6 addr: fe80::20c:29ff:fe4a:75e5/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:229 errors:0 dropped:0 overruns:0 frame:0
      TX packets:165 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:33082 (33.0 KB)  TX bytes:22075 (22.0 KB)

      eth2      Link encap:Ethernet  HWaddr 00:0c:29:4a:75:ef  
      inet addr:10.0.1.21  Bcast:10.0.1.255  Mask:255.255.255.0
      inet6 addr: fe80::20c:29ff:fe4a:75ef/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:62 errors:0 dropped:0 overruns:0 frame:0
      TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:8868 (8.8 KB)  TX bytes:18770 (18.7 KB)

       lo        Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:65536  Metric:1
      RX packets:691 errors:0 dropped:0 overruns:0 frame:0
      TX packets:691 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:69958 (69.9 KB)  TX bytes:69958 (69.9 KB)

Interfaces

      $ cat /etc/network/interfaces 

      auto eth0
      iface eth0 inet manual
      up ip link set dev $IFACE up
      down ip link set dev $IFACE down

      auto eth1
      iface eth1 inet static
      address 10.0.0.21
      netmask 255.255.255.0
      gateway 10.0.0.1

On Network Node:

        $ ping controller

       PING controller (10.0.0.11) 56(84) bytes of data.
      64 bytes from controller (10.0.0.11): icmp_seq=1 ttl=64 time=0.332 ms
      64 bytes from controller (10.0.0.11): icmp_seq=2 ttl=64 time=2.10 ms
      64 bytes from controller (10.0.0.11): icmp_seq=3 ttl=64 time=4.32 ms
      ^Z
      [6]+  Stopped                 ping controller

      $ ping -c 4 openstack.org

      PING openstack.org (162.242.140.107) 56(84) bytes of data.
      64 bytes from 162.242.140.107: icmp_seq=1 ttl=128 time=267 ms
      64 bytes from 162.242.140.107: icmp_seq=2 ttl=128 time=266 ms
      64 bytes from 162.242.140.107: icmp_seq=3 ttl=128 time=269 ms
      64 bytes from 162.242.140.107: icmp_seq=4 ttl=128 time=267 ms

      --- openstack.org ping statistics ---
      4 packets transmitted, 4 received, 0% packet loss, time 3011ms
      rtt min/avg/max/mdev = 266.140/267.611/269.400/1.219 ms

On Controller Node:

      $ ping network

      PING network (10.0.0.21) 56(84) bytes of data.
      64 bytes from network (10.0.0.21): icmp_seq=1 ttl=64 time=0.374 ms
      64 bytes from network (10.0.0.21): icmp_seq=2 ttl=64 time=1.88 ms
      64 bytes from network (10.0.0.21): icmp_seq=3 ttl=64 time=0.671 ms
       ^Z
      [11]+  Stopped                 ping network

      $ ping -c 4 openstack.org

      ping: unknown host openstack.org

How to fix the above problem ?