输入nmcli device mp;spm=1001.2101.3001.7020","extra":"{\"searchword\":\"status\"}"}" data-tit="status" data-pretit="status" style="box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; background: url("../img/iconHighlight.svg") right top / 12px 14px no-repeat transparent; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; box-shadow: none;">status即可看到当前网卡状态
通过以下命令进行配置网卡:
nmcli connection add type ethernet con-name ens166 ifname ens224 ipv4.addresses 192.168.100.100/24 ipv4.gateway 192.168.100.254 ipv4.dns 192.168.100.254 ipv4.method manual autoconnect yes
#ens166为自定义网卡名称、ens224为刚刚使用nmcli device status所查到的物理名、ipv4.method为手工指定、并且autoconnect yes(开机自启)
出现successfully added表示配置成功!
最后:使用nmcli connection show 能查看到配置的网卡表示成功咯!
打赏支付宝微信扫一扫,打赏作者吧~
本文链接:https://www.kinber.cn/post/3325.html 转载需授权!
推荐本站淘宝优惠价购买喜欢的宝贝:
您阅读本篇文章共花了: