「CentOS Bonding LACP」修訂間的差異
跳至導覽
跳至搜尋
(未顯示同一使用者於中間所作的 6 次修訂) | |||
行 1: | 行 1: | ||
+ | __NOTOC__ |
||
+ | [[Category:Linux]] |
||
+ | [[Category:CentOS]] |
||
+ | [[Category:Bonding]] |
||
+ | [[Category:LACP]] |
||
+ | [[Category:Network]] |
||
=== 了解網卡的狀態 === |
=== 了解網卡的狀態 === |
||
+ | 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 |
||
+ | === 啟動介面 === |
||
+ | 順序從 Slave Interface 到 Bonding Interface |
||
+ | nmcli connection up bond-slave-eno3 |
||
+ | nmcli connection up bond0 |
||
+ | === 檢查 bonding 狀況 === |
||
+ | cat /proc/net/bonding/bond0 |
||
+ | ----- |
於 2021年10月31日 (日) 02:39 的最新修訂
了解網卡的狀態
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
啟動介面
順序從 Slave Interface 到 Bonding Interface
nmcli connection up bond-slave-eno3 nmcli connection up bond0
檢查 bonding 狀況
cat /proc/net/bonding/bond0