How do you make an interface go down?

How do you make an interface go down?

Two methods can be used to bring interfaces up or down.

  1. 2.1. Using “ip” Usage: # ip link set dev up # ip link set dev down. Example: # ip link set dev eth0 up # ip link set dev eth0 down.
  2. 2.2. Using “ifconfig” Usage: # /sbin/ifconfig up # /sbin/ifconfig down.

How do you network a bond interface?

Configure Network Bonding on CentOS

  1. Create the bond file ( ifcfg-bond0 ) and specify the IP address, netmask & gateway.
  2. Edit the files of eth0 & eth1 and make sure you enter the master and slave entry.
  3. Create the Bond file(bonding.conf)
  4. Now Restart the network Service.

How to change the current active slave interface?

In the example below we have the interface bonding bond0 with 2 slaves em0 and em1 (em1 being the active slave). We will be replacing slave em0 with new slave em2.

How to add a slave interface to a bond?

The most important part, however, is the selection of the slave interfaces to be added to the bond. In the BOND Slaves menu, click on , and select the type of slave connection to add, in this case ethernet. Nmtui menu to select the slave connection type. Enter the device name, select and confirm.

What happens if you put the Primary Slave interface down?

As you can see, since we put the primary slave interface down ( enp1s0 ), the other slave, enp7s0 was used as backup and is now the currently active one. In addition, the Link Failure Count for the primary slave increased, and is now 1.

How does network interface bonding work in CentOS?

This mode makes use of the IEEE 802.3ad link aggregation which must be supported on the switches. Creates aggregation groups that share same speed and duplex settings. Transmits and receives on all slaves in the active group. Provides both load balancing and fault tolerance.