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

易陆发现论坛

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

ip link 删除网卡名称

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

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

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

x
ip link show  显示所有网卡设备+ Y, ]0 ?* K& e" V+ E  m9 {* G
ip link delete 设备号    删除网卡设备
  D" j" D8 ~. s! t  C
# u8 `; q$ A% c. g! Q6 O举个例子:0 t2 ~+ e6 `! v, k. l# n$ R$ T
$ip link show* T# v; [6 E3 M8 c1 f6 ~  ^9 m
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1
* L; S& L" N3 j6 v1 x# A: \    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
6 E8 F# i' h- ^- }2: eno1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT qlen 1000
. s$ _/ P- _7 H    link/ether 30:e1:71:6c:ee:34 brd ff:ff:ff:ff:ff:ff
3 Z/ C! }( Q7 Z5 K$ [! B3: ens2f0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP mode DEFAULT qlen 1000+ q8 {) l0 n7 ]6 w# b
    link/ether 48:df:37:03:74:b9 brd ff:ff:ff:ff:ff:ff
7 t2 ?9 e. o! m' N6 Q' n4: ens2f1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond2 state UP mode DEFAULT qlen 1000
& {& w$ T1 \# e# N6 f' T    link/ether 48:df:37:03:74:b8 brd ff:ff:ff:ff:ff:ff
9 q8 s8 @2 M, w' x& Z5: ens1f0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond2 state UP mode DEFAULT qlen 10006 ?" E- e* p3 Z' r* Q9 f
    link/ether 48:df:37:03:74:b8 brd ff:ff:ff:ff:ff:ff+ B. k7 g2 C6 Q& E( y) C$ L0 ~
6: ens1f1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP mode DEFAULT qlen 1000$ l* I4 ^8 _+ [- P! o9 }: R7 Z
    link/ether 48:df:37:03:74:b9 brd ff:ff:ff:ff:ff:ff8 [: L, y. n- A1 K  D
7: eno2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT qlen 10009 h7 @8 o1 \6 j0 l$ E0 m6 M
    link/ether 30:e1:71:6c:ee:34 brd ff:ff:ff:ff:ff:ff) J2 a2 D* f$ b* K9 r3 c3 z' q
8: eno3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
9 U/ @# o) S+ D+ Z& k    link/ether 30:e1:71:6c:ee:36 brd ff:ff:ff:ff:ff:ff
1 `, T6 v( I8 `3 y9: eno4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
  i9 I/ ~! g8 W1 D) q  l, u0 D+ u    link/ether 30:e1:71:6c:ee:37 brd ff:ff:ff:ff:ff:ff0 v1 s! h9 ]) Z  U2 C. |" Q
, {0 K0 Q* Y; }# ^# T
$ sudo ip link delete  br805
/ u5 u% ^6 o7 `8 P8 x; b7 B+ z' |0 d: \0 q: @6 u8 X0 d
 楼主| 发表于 2021-6-1 08:46:55 | 显示全部楼层
9 u# O  h2 j& J2 @+ a
ip link show  显示所有网卡设备
( g" [; q) e1 H# wip link delete 设备号    删除网卡设备
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2021-11-30 01:47 , Processed in 0.040775 second(s), 21 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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