nmcli修改IP

前提条件是系统必须开启NetworkManager

[root@localhost ~]# nmcli connection show
名称        UUID                                  类型            设备       
eth2        3a73717e-65ab-93e8-b518-24f5af32dc0d  802-3-ethernet  eth2       
eth1        9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04  802-3-ethernet  eth1       
eth0        5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03  802-3-ethernet  eth0       
virbr0-nic  38838d19-44eb-4dda-a920-9a8b9cdd0e0f  802-3-ethernet  virbr0-nic 
virbr0      708efefa-a240-4b3d-a07c-0ebaec1df4e5  bridge          virbr0     
eth3        c5ca8081-6db2-4602-4b46-d771f4330a6d  802-3-ethernet  eth3

[root@localhost ~]# nmcli connection modify eth1 ipv4.method manual ipv4.addresses "192.168.2.2/24"
 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值