Menu

目录

激活频道绑定

要激活绑定,则需要启动所有从属接口。请在root权限下,运行以下命令:

# ifup eth0
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/7)
# ifup ifcfg-eth1
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/8)

说明:
对于已经处于 “up”状态的接口,请首先使用”ifdown ethN“命令修改状态为 down。

完成后,启动所有从属接口以便启动绑定(不将其设定为 “down”)。

要让 NetworkManager 感知到系统所做的修改,在每次修改后,请在root权限下,运行以下命令:

# nmcli con load /etc/sysconfig/network-scripts/ifcfg-device

查看绑定接口的状态,请运行以下命令:

# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
  link/loopback 00:00:00:00:**:** brd 00:00:00:00:**:**
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000
  link/ether 52:54:00:e9:**:** brd ff:ff:ff:ff:**:**
3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP mode DEFAULT qlen 1000
  link/ether 52:54:00:38:a6:4c brd ff:ff:ff:ff:**:**
4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT
  link/ether 52:54:00:38:a6:4c brd ff:ff:ff:ff:**:**