进入替换模式 ————shift+I 就入插入模式 ——————输入内容 ————按两次Esc ——按:wq退出
[root@porxy ~]# nmcli connection show
名称 UUID 类型 设备
eth0 4f5f8b5d-4b51-4e1c-98c7-40f0eb90f241 802-3-ethernet eth0
eth2 8366f5c7-063c-42b2-91c7-e34956036471 802-3-ethernet eth2
virbr0 8cb68471-e781-452f-817c-f40c89a308a4 bridge virbr0
root@porxy ~]# ip add
1: lo: mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:75:17:0e brd ff:ff:ff:ff:ff:ff
inet 192.168.4.5/24 brd 192.168.4.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::7d5c:3ca8:6674:aec5/64 scope link
valid_lft forever preferred_lft forever
3: eth1: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:40:ec:12 brd ff:ff:ff:ff:ff:ff
4: eth2: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:96:74:a2 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.5/24 brd 192.168.2.255 scope global eth2
valid_lft forever preferred_lft forever
inet6 fe80::ca74:5998:5aad:de53/64 scope link
valid_lft forever preferred_lft forever
5: eth3: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:49:b9:c6 brd ff:ff:ff:ff:ff:ff
6: virbr0: mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether 52:54:00:62:a0:90 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
7: virbr0-nic: mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 1000
link/ether 52:54:00:62:a0:90 brd ff:ff:ff:ff:ff:ff