next up previous contents
Next: IPv6 網路 Up: Link Aggregation 網路聚合 Previous: 建立網路聚合   Contents


測試網路聚合

  1. kvm7.deyu.wang 重開機。
    [root@kvm7 ~]# reboot
    Connection to kvm7.deyu.wang closed by remote host.
    Connection to kvm7.deyu.wang closed.
    [root@dywH ~]#
    
  2. 再登入 kvm7.deyu.wang。
    [root@dywH ~]# ssh kvm7.deyu.wang
    root@kvm7.deyu.wang's password: 
    Last login: Fri Aug  7 03:00:20 2015 from server.deyu.wang
    
  3. 先查看 team0 兩張成員埠都正常運作。
    [root@kvm7 ~]# teamdctl team0 state
    setup:
      runner: activebackup
    ports:
      eth0
        link watches:
          link summary: up
          instance[link_watch_0]:
            name: ethtool
            link: up
      eth1
        link watches:
          link summary: up
          instance[link_watch_0]:
            name: ethtool
            link: up
    runner:
      active port: eth0
    
  4. 經由 team0 成功 ping 192.168.122.1。
    [root@kvm7 ~]# ping -I team0 192.168.122.1
    PING 192.168.122.1 (192.168.122.1) from 192.168.122.17 team0: 56(84) bytes of data.
    64 bytes from 192.168.122.1: icmp_seq=10 ttl=64 time=0.743 ms
    64 bytes from 192.168.122.1: icmp_seq=11 ttl=64 time=0.173 ms
    64 bytes from 192.168.122.1: icmp_seq=12 ttl=64 time=0.178 ms
    ^C
    --- 192.168.122.1 ping statistics ---
    12 packets transmitted, 3 received, 75% packet loss, time 10999ms
    rtt min/avg/max/mdev = 0.173/0.364/0.743/0.268 ms
    
  5. 關閉 team0 的成員埠 team0-port1。
    [root@kvm7 ~]# nmcli connection down team0-port1
    
  6. 查看 team0 只有成員埠 eth1,也就是 team0-port2 正常運作。
    [root@kvm7 ~]# teamdctl team0 state
    setup:
      runner: activebackup
    ports:
      eth1
        link watches:
          link summary: up
          instance[link_watch_0]:
            name: ethtool
            link: up
    runner:
      active port: eth1
    
  7. 只有成員埠 team0-port2 正常運作,還是可以經由 team0 成功 ping 192.168.122.1。
    [root@kvm7 ~]# ping -I team0 192.168.122.1
    PING 192.168.122.1 (192.168.122.1) from 192.168.122.17 team0: 56(84) bytes of data.
    64 bytes from 192.168.122.1: icmp_seq=11 ttl=64 time=0.954 ms
    64 bytes from 192.168.122.1: icmp_seq=12 ttl=64 time=0.165 ms
    64 bytes from 192.168.122.1: icmp_seq=13 ttl=64 time=0.170 ms
    ^C
    --- 192.168.122.1 ping statistics ---
    13 packets transmitted, 3 received, 76% packet loss, time 12000ms
    rtt min/avg/max/mdev = 0.165/0.429/0.954/0.371 ms
    
  8. 啟動 team0 的成員埠 team0-port1,關閉 team0 的成員埠 team0-port2。
    [root@kvm7 ~]# nmcli connection up team0-port1
    Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/4)
    [root@kvm7 ~]# nmcli connection down team0-port2
    
  9. 查看 team0 只有成員埠 eth0,也就是 team0-port1 正常運作。
    [root@kvm7 ~]# teamdctl team0 state
    setup:
      runner: activebackup
    ports:
      eth0
        link watches:
          link summary: up
          instance[link_watch_0]:
            name: ethtool
            link: up
    runner:
      active port: eth0
    
  10. 只有成員埠 team0-port1 正常運作,還是可以經由 team0 成功 ping 192.168.122.1。
    [root@kvm7 ~]# ping -I team0 192.168.122.1
    PING 192.168.122.1 (192.168.122.1) from 192.168.122.17 team0: 56(84) bytes of data.
    64 bytes from 192.168.122.1: icmp_seq=10 ttl=64 time=1.09 ms
    64 bytes from 192.168.122.1: icmp_seq=11 ttl=64 time=0.224 ms
    64 bytes from 192.168.122.1: icmp_seq=12 ttl=64 time=0.224 ms
    ^C
    --- 192.168.122.1 ping statistics ---
    12 packets transmitted, 3 received, 75% packet loss, time 11000ms
    rtt min/avg/max/mdev = 0.224/0.515/1.099/0.413 ms
    
  11. 啟動 team0 的成員埠 team0-port2。
    [root@kvm7 ~]# nmcli connection up team0-port2
    Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)
    
  12. 查看 team0 兩張成員埠都正常運作。
    [root@kvm7 ~]# teamdctl team0 state
    setup:
      runner: activebackup
    ports:
      eth0
        link watches:
          link summary: up
          instance[link_watch_0]:
            name: ethtool
            link: up
      eth1
        link watches:
          link summary: up
          instance[link_watch_0]:
            name: ethtool
            link: up
    runner:
      active port: eth0
    


2017-11-30