|
发表于 2019-12-21 16:00:37
|
显示全部楼层
[root@server4 network-scripts]# nmcli con add con-name ens33 type ethernet ifname ens33
Connection 'ens33' (2df674eb-bbe8-4ca0-86c8-d03e8ef6485b) successfully added.
[root@server4 network-scripts]# nmcli con show
NAME UUID TYPE DEVICE
System ens33 c96bc909-188e-ec64-3a96-6a90982b08ad ethernet ens33
virbr0 fae72bd1-1de0-40c0-9be1-42aa73ffcd84 bridge virbr0
ens33 2df674eb-bbe8-4ca0-86c8-d03e8ef6485b ethernet --
[root@server4 network-scripts]# nmcli con mod ens33 ipv4.addresses 192.168.0.104/24
[root@server4 network-scripts]# nmcli con mod ens33 ipv4.gateway 192.168.0.254
[root@server4 network-scripts]# nmcli con show
NAME UUID TYPE DEVICE
System ens33 c96bc909-188e-ec64-3a96-6a90982b08ad ethernet ens33
virbr0 fae72bd1-1de0-40c0-9be1-42aa73ffcd84 bridge virbr0
ens33 2df674eb-bbe8-4ca0-86c8-d03e8ef6485b ethernet --
[root@server4 network-scripts]# nmcli con up ens33
Error: Connection activation failed: IP configuration could not be reserved (no available address, timeout, etc.)
[root@server4 network-scripts]#
唐老师,这个激活失败是因为什么啊 |
|