码迷,mamicode.com
首页 > 其他好文 > 详细

设置link aggregation and bridging,桥接模式

时间:2014-09-28 12:35:41      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:brteam0   bridge   link aggregation   

  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,桥接模式

标签:brteam0   bridge   link aggregation   

原文地址:http://sunrain990.blog.51cto.com/3700585/1558856

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!