「CentOS Bonding LACP」修訂間的差異
跳至導覽
跳至搜尋
行 1: | 行 1: | ||
=== 了解網卡的狀態 === |
=== 了解網卡的狀態 === |
||
+ | nmcli device status |
||
nmcli connection show |
nmcli connection show |
||
=== 去除實體網卡設定 === |
=== 去除實體網卡設定 === |
||
nmcli connection delete ens7 |
nmcli connection delete ens7 |
||
=== 建立 bonding 網卡 === |
=== 建立 bonding 網卡 === |
||
− | nmcli connection add type bond con-name bond0 ifname bond0 mode |
+ | nmcli connection add type bond con-name bond0 ifname bond0 mode 802.3ad |
+ | === 附掛實體網卡 === |
||
+ | nmcli connection add type bond-slave ifname eno3 master bond0 |
||
+ | === 網卡設定 === |
||
+ | nmcli connection modify bond0 ipv4.addresses 192.168.1.210/24 |
||
+ | nmcli connection modify bond0 ipv4.gateway 192.168.1.1 |
||
+ | nmcli connection modify bond0 ipv4.method manual |
於 2021年5月27日 (四) 05:00 的修訂
了解網卡的狀態
nmcli device status nmcli connection show
去除實體網卡設定
nmcli connection delete ens7
建立 bonding 網卡
nmcli connection add type bond con-name bond0 ifname bond0 mode 802.3ad
附掛實體網卡
nmcli connection add type bond-slave ifname eno3 master bond0
網卡設定
nmcli connection modify bond0 ipv4.addresses 192.168.1.210/24 nmcli connection modify bond0 ipv4.gateway 192.168.1.1 nmcli connection modify bond0 ipv4.method manual