linux查看接口的命令,linux shell命令查看接口索引--ip link show

使用ip link show命令,显示结果前面的数字就是接口索引值

AH-00c080:/tmp/home/admin$ ip link show 1: lo: mtu 65536 qdisc noqueue state UNKNOWN      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: tunl0@NONE: mtu 1480 qdisc noop state DOWN      link/ipip 0.0.0.0 brd 0.0.0.0 3: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000     link/ether c8:66:5d:00:c0:80 brd ff:ff:ff:ff:ff:ff 4: eth0sniffer: mtu 1500 qdisc noop state DOWN qlen 1000     link/ether c8:66:5d:00:c0:80 brd ff:ff:ff:ff:ff:ff 5: wifi0: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000     link/ieee802.11 ca:66:5d:00:c0:94 brd ff:ff:ff:ff:ff:ff 6: wifi1: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000     link/ieee802.11 ca:66:5d:00:c0:a4 brd ff:ff:ff:ff:ff:ff 7: wifi0sniffer: mtu 1500 qdisc noop state DOWN qlen 1000     link/ieee802.11/radiotap ca:66:5d:00:c0:94 brd ff:ff:ff:ff:ff:ff 8: wifi1sniffer: mtu 1500 qdisc noop state DOWN qlen 1000     link/ieee802.11/radiotap ca:66:5d:00:c0:a4 brd ff:ff:ff:ff:ff:ff 9: mgt0: mtu 1500 qdisc noqueue state UNKNOWN      link/ether c8:66:5d:00:c0:80 brd ff:ff:ff:ff:ff:ff 10: wifi0.1: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000     link/ether c8:66:5d:00:c0:94 brd ff:ff:ff:ff:ff:ff 12: wifi1.1: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000     link/ether c8:66:5d:00:c0:a4 brd ff:ff:ff:ff:ff:ff

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值