服务器创建端口聚合配置
服务器多网口,通过创建端口聚合,以保证网络连接的高可用。
centos 创建端口聚合
操作记录:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
| nmcli connection add type team ifname team0 con-name team0 config '{"runner": {"name": "lacp"}}'
nmcli connection add type team-slave con-name team0-port1 ifname eno1 master team0
nmcli connection add type team-slave con-name team0-port2 ifname eno2 master team0
nmcli connection up team0
teamdctl team0 state setup: runner: lacp ports: eno1 link watches: link summary: up instance[link_watch_0]: name: ethtool link: up down count: 0 runner: aggregator ID: 3, Selected selected: yes state: current eno2 link watches: link summary: up instance[link_watch_0]: name: ethtool link: up down count: 0 runner: aggregator ID: 3, Selected selected: yes state: current runner: active: yes fast rate: no
nmcli connection modify team0 ipv4.address 10.10.99.10/24 ipv4.gateway 10.10.99.254 ipv4.dns 223.5.5.5,223.6.6.6
vim /etc/sysconfig/network-scripts/ifcfg-team0
TEAM_CONFIG="{\"runner\": {\"name\": \"lacp\", \"tx_hash\": [\"eth\", \"ipv4\", \"ipv6\"]}}" PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=team0 UUID=4c81a7e7-6269-4cf4-b478-09c860414d3c DEVICE=team0 ONBOOT=yes DEVICETYPE=Team IPADDR=10.10.99.11 PREFIX=24 GATEWAY=10.10.99.254 DNS1=223.5.5.5 DNS2=223.6.6.6
systemctl restart network
|
windows server 创建端口聚合
服务器管理》本地服务》NIC组合,创建NIC,选成成员端口。