在Linux 中列出所有的network interface
使用下列指令
# ip link show
1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether ac:1f:6b:18:4e:66 brd ff:ff:ff:ff:ff:ff
3: eno2: mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether ac:1f:6b:18:4e:66 brd ff:ff:ff:ff:ff:ff
4: eno3: mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether ac:1f:6b:18:4e:66 brd ff:ff:ff:ff:ff:ff
5: eno4: mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether ac:1f:6b:18:4e:66 brd ff:ff:ff:ff:ff:ff
6: enp2s0f0: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 00:1b:21:bc:42:02 brd ff:ff:ff:ff:ff:ff
7: enp2s0f1: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 00:1b:21:bc:42:03 brd ff:ff:ff:ff:ff:ff
8: bond0: mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether ac:1f:6b:18:4e:66 brd ff:ff:ff:ff:ff:ff