将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 1212|回复: 0
收起左侧

ip link 删除网卡名称

[复制链接]
发表于 2018-12-13 10:03:17 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?开始注册

x
ip link show  显示所有网卡设备
1 j1 f& [" J0 Q& |; d( n9 sip link delete 设备号    删除网卡设备
# h- _4 P( T2 p5 W: u0 m" m3 F
8 H. I/ ]5 ]8 K举个例子:
  Q& ^) p9 e0 h- F $ip link show
8 {6 ]  p5 G0 M( |  O1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1- c. o! Y, X& N5 n( I" i8 x% }
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00. f1 X  }+ v9 L) u. J
2: eno1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT qlen 1000' i: \! _4 t" j) j- v" S: Y1 v6 J
    link/ether 30:e1:71:6c:ee:34 brd ff:ff:ff:ff:ff:ff
* y8 t& G0 e) y$ N0 D5 H3: ens2f0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP mode DEFAULT qlen 1000  C0 \1 p+ i. Q. m
    link/ether 48:df:37:03:74:b9 brd ff:ff:ff:ff:ff:ff
$ b' V& M% H7 D5 l5 Y; D4: ens2f1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond2 state UP mode DEFAULT qlen 1000/ H) X0 W7 J* l  ^
    link/ether 48:df:37:03:74:b8 brd ff:ff:ff:ff:ff:ff
4 U2 ^  y9 M( u8 e2 |1 m' S5: ens1f0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond2 state UP mode DEFAULT qlen 10003 T2 {. o1 C3 I
    link/ether 48:df:37:03:74:b8 brd ff:ff:ff:ff:ff:ff. L4 [7 G7 n! ?$ O5 r( j
6: ens1f1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP mode DEFAULT qlen 1000& I( [- F9 I2 Z. {. q$ J
    link/ether 48:df:37:03:74:b9 brd ff:ff:ff:ff:ff:ff
6 y7 I  M4 ^) Z0 Q5 l) \9 ~7: eno2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT qlen 1000
' E- k# K" v% i: a/ z8 Q    link/ether 30:e1:71:6c:ee:34 brd ff:ff:ff:ff:ff:ff
2 u7 f! k0 p1 M: q5 @  b% m8: eno3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 10004 V3 ~% b4 w( G' s" D0 A3 j4 E/ E, V
    link/ether 30:e1:71:6c:ee:36 brd ff:ff:ff:ff:ff:ff( V1 u: j% b2 _) |: F# C! P+ P
9: eno4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
4 V' P: ]) A, l, d* A& h5 @2 c    link/ether 30:e1:71:6c:ee:37 brd ff:ff:ff:ff:ff:ff1 ~1 s3 q8 D* \( ]# E3 a$ s4 P

: K8 C1 M( J$ m- R$ sudo ip link delete  br805
3 U# l0 ^5 r. E2 t4 L& J
, B$ O$ n. R$ H, p7 J7 ^  z, i" Y
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2020-6-1 07:47 , Processed in 0.064306 second(s), 23 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

快速回复 返回顶部 返回列表