next up previous contents
Next: Instance Up: Virtual Network Previous: Router   Contents

驗證

  1. 載入管理者 admin 環境變變數。
    [root@controller ~]# . admin.token
    
  2. 查詢 namespace,qrouter 3ce2307f-d558-4aa3-b723-8e71ed990824 會有兩個 qdhcp。
    [root@controller ~]# . admin.token 
    [root@controller ~]# ip netns
    qrouter-3ce2307f-d558-4aa3-b723-8e71ed990824 (id: 3)
    qdhcp-37d0dee7-d573-4f3b-863d-c92c05b6dbbb (id: 1)
    qdhcp-0b0ebcee-057b-4798-bf73-5dd449e7879a (id: 0)
    qrouter-53bc7576-bcee-4ad4-ae06-d18d9be372a2 (id: 2)
    
  3. 查詢 port,多出 IP 為 163.17.10.117 的 port,這為 selfservice 對外的 gateway。
    [root@controller ~]# openstack port list
    +--------------------------------------+------+-------------------+-------------
    | ID                                   | Name | MAC Address       | Fixed IP Add
    +--------------------------------------+------+-------------------+-------------
    | 0e5cf9d2-eed5-41e0-978b-f816ba0e85d6 |      | fa:16:3e:d3:7a:11 | ip_address='
    | 62d8f5fd-4d27-4627-9549-9839fce7172d |      | fa:16:3e:bd:be:2d | ip_address='
    | 90ab060a-c002-475f-9fb4-0b17dac6b68a |      | fa:16:3e:95:ab:92 | ip_address='
    | bbec6143-2d2a-48ec-afa1-c39733ff6e73 |      | fa:16:3e:7b:6c:92 | ip_address='
    +--------------------------------------+------+-------------------+-------------
    -----------------------------------------------------------------+--------+
    resses                                                           | Status |
    -----------------------------------------------------------------+--------+
    163.17.10.113', subnet_id='2a7287d7-4a4f-43cc-beb2-bc9c023af929' | ACTIVE |
    192.168.10.1', subnet_id='36c70394-9a28-4cdf-bfee-9c65f4512027'  | ACTIVE |
    163.17.10.117', subnet_id='2a7287d7-4a4f-43cc-beb2-bc9c023af929' | ACTIVE |
    192.168.10.2', subnet_id='36c70394-9a28-4cdf-bfee-9c65f4512027'  | ACTIVE |
    -----------------------------------------------------------------+--------+
    
  4. ping 163.17.10.117,成功回覆。
    [root@controller ~]# ping -c3 163.17.10.117
    PING 163.17.10.117 (163.17.10.117) 56(84) bytes of data.
    64 bytes from 163.17.10.117: icmp_seq=1 ttl=64 time=0.105 ms
    64 bytes from 163.17.10.117: icmp_seq=2 ttl=64 time=0.047 ms
    64 bytes from 163.17.10.117: icmp_seq=3 ttl=64 time=0.041 ms
    
    --- 163.17.10.117 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2000ms
    rtt min/avg/max/mdev = 0.041/0.064/0.105/0.029 ms
    


De-Yu Wang 2018-12-12