激活频道绑定

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

  1. # ifup enp3s0
  2. Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/7)
  1. # ifup enp4s0
  2. Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/8)

激活频道绑定 - 图1 说明:
对于已经处于“up”状态的接口,请首先使用“ifdown enp3s0 ”命令修改状态为down,其中 enp3s0 为实际网卡名称。

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

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

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

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

  1. # ip link show
  2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
  3. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  4. 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
  5. link/ether 52:54:00:aa:ad:4a brd ff:ff:ff:ff:ff:ff
  6. 3: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
  7. link/ether 52:54:00:aa:da:e2 brd ff:ff:ff:ff:ff:ff
  8. 4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
  9. link/ether 86:a1:10:fb:ef:07 brd ff:ff:ff:ff:ff:ff
  10. 5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN mode DEFAULT group default qlen 1000
  11. link/ether 52:54:00:29:35:4c brd ff:ff:ff:ff:ff:ff