首页 > 代码库 > 设置link aggregation and bridging,桥接模式

设置link aggregation and bridging,桥接模式

  1. ip link

  2. nmcli con add type team con-name team0 ifname team0 config ‘{"runner":{"name":"activebackup"}}‘

  3. nmcli con add type team-slave con-name team0-port1 ifname eno1 master team0

  4. nmcli con add type team-slave con-name team0-port2 ifname eno2 master team0

  5. teamctl team0 state

  6. nmcli dev dis team0

  7. systemctl stop NetworkManager

  8. systemctl disable NetworkManager

  9. cd /etc/sysconfig/network-scripts/

  10. ls -l ifcfg-*

  11. vim ifcfg-team0

  12. tail ifcfg-team0

    NAME=team0

    UUID=......

    ONBOOT=yes

    BRIDGE=brteam0

    BRIDGE=brteam0

  13. cat ifcfg-team0-port1

    NAME=team0-port1

    UUID=...

    DEVICE=eno1

    ONBOOT=yes

    TEAM_MASTER=team0

    DEVICETYPE=TeamPort

    (也可以直接vim编辑,11dd)

    ifcfg-team0-port2同port1

  14. systemctl restart network

  15. reboot

  16. ping -I brteam0 192.168.0.254

本文出自 “血爪哇” 博客,请务必保留此出处http://sunrain990.blog.51cto.com/3700585/1558856

设置link aggregation and bridging,桥接模式