歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

RHEL7配置雙網卡冗余

創建組接口
nmcli con add con-name team0 ifname team0 type team config '{"runner":{"name":"activebackup"}}'

nmcli connection show

配置組接口地址
nmcli connection modify team0 ivp4.address "186.168.100.88/24 186.168.100.1"
nmcli connection modify team0 ipv4.method manual

添加端口
nmcli connection add con-name team0-p1 ifname enp0s3 type team-slave master team0    --enp0s3及enp0s8為網卡名稱
nmcli connection add con-name team0-p2 ifname enp0s8 type team-slave master team0

驗證
teamdctl team0 state
[root@test ~]# teamdctl team0 state
setup:
  runner: activebackup
ports:
  enp0s3
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
  enp0s8
    link watches:
      link summary: up
      instance[link_watch_0]:
        name: ethtool
        link: up
runner:
  active port: enp0s8

Copyright © Linux教程網 All Rights Reserved