Verify bonded interfaces with ip link
In the previous step, you learned how to check the bonding status using the /proc
filesystem. Another essential command for inspecting network interfaces, including bonded interfaces, is the ip
command, specifically ip link
.
The ip
command is a powerful utility for showing and manipulating routing, network devices, policy routing, and tunnels. The ip link
subcommand deals with network interfaces.
To list all network interfaces on your system, including physical interfaces and any configured bonding interfaces, type the following command in your terminal and press Enter:
ip link show
You will see a list of network interfaces. Each interface will have a number, its name (like eth0
, lo
, or bond0
), and its state (e.g., UP
, DOWN
).
Look for interfaces named bondX
(where X is a number, like bond0
). If bonding is configured, you will see one or more entries for these bonded interfaces.
For example, the output might look something like this (output will vary depending on the environment):
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff
3: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff
In this example output, bond0
is listed as a network interface with the state UP
. The MASTER
flag indicates that this is a bonding master interface.
The ip link show
command provides a quick overview of all interfaces and their current state, which is very useful for verifying the presence and status of bonded interfaces.
Click Continue to move on.