1.输入 ifconfig
br-0228e1b00b6e: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.20.0.1 netmask 255.255.0.0 broadcast 172.20.255.255
inet6 fe80::42:19ff:fe94:44 prefixlen 64 scopeid 0x20<link>
ether 02:42:19:94:00:44 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
br-5152b7f5c803: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.19.0.1 netmask 255.255.0.0 broadcast 172.19.255.255
inet6 fe80::42:37ff:fe4a:44a0 prefixlen 64 scopeid 0x20<link>
ether 02:42:37:4a:44:a0 txqueuelen 0 (Ethernet)
RX packets 434 bytes 36654 (35.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 677 bytes 50659 (49.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
br-7300551adef7: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.21.0.1 netmask 255.255.0.0 broadcast 172.21.255.255
inet6 fe80::42:19ff:fe38:4799 prefixlen 64 scopeid 0x20<link>
ether 02:42:19:38:47:99 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
br-c8839cb13e36: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
inet6 fe80::42:71ff:fe78:51b7 prefixlen 64 scopeid 0x20<link>
ether 02:42:71:78:51:b7 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:4e:0b:78:75 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.231.130 netmask 255.255.255.0 broadcast 192.168.231.255
inet6 fe80::cbc:eb67:8107:f1a7 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:44:a6:72 txqueuelen 1000 (Ethernet)
RX packets 602 bytes 104950 (102.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 646 bytes 58396 (57.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth5706733: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::60f3:4fff:fece:e4cb prefixlen 64 scopeid 0x20<link>
ether 62:f3:4f:ce:e4:cb txqueuelen 0 (Ethernet)
RX packets 225 bytes 43673 (42.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 139 bytes 35083 (34.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth9690711: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::846e:7eff:feb2:7fcf prefixlen 64 scopeid 0x20<link>
ether 86:6e:7e:b2:7f:cf txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth083e7cd: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::ac85:23ff:fe60:92e3 prefixlen 64 scopeid 0x20<link>
ether ae:85:23:60:92:e3 txqueuelen 0 (Ethernet)
RX packets 333 bytes 46553 (45.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 400 bytes 88103 (86.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth3d79f8f: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::48ce:7bff:fe8b:8dfd prefixlen 64 scopeid 0x20<link>
ether 4a:ce:7b:8b:8d:fd txqueuelen 0 (Ethernet)
RX packets 434 bytes 36654 (35.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 677 bytes 50659 (49.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth3eccf96: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::203c:70ff:fed5:222c prefixlen 64 scopeid 0x20<link>
ether 22:3c:70:d5:22:2c txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth4b20bd8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::4dc:c1ff:fef3:f1c5 prefixlen 64 scopeid 0x20<link>
ether 06:dc:c1:f3:f1:c5 txqueuelen 0 (Ethernet)
RX packets 308 bytes 34559 (33.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 411 bytes 43146 (42.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth678c8c1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::80c6:5fff:fe49:cbe0 prefixlen 64 scopeid 0x20<link>
ether 82:c6:5f:49:cb:e0 txqueuelen 0 (Ethernet)
RX packets 643 bytes 90528 (88.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 562 bytes 66169 (64.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth84e2ca5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::48c0:fbff:fe37:44fd prefixlen 64 scopeid 0x20<link>
ether 4a:c0:fb:37:44:fd txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth92c9f39: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::c06d:33ff:fee3:e5e6 prefixlen 64 scopeid 0x20<link>
ether c2:6d:33:e3:e5:e6 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth961cd22: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::ec5f:f7ff:fe84:1cc1 prefixlen 64 scopeid 0x20<link>
ether ee:5f:f7:84:1c:c1 txqueuelen 0 (Ethernet)
RX packets 712 bytes 58573 (57.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 565 bytes 51267 (50.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth968eb8f: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::b890:6bff:fe94:cc2 prefixlen 64 scopeid 0x20<link>
ether ba:90:6b:94:0c:c2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth9c6dfd7: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::c4fd:f0ff:feab:9dd7 prefixlen 64 scopeid 0x20<link>
ether c6:fd:f0:ab:9d:d7 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vetha66367c: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::a062:14ff:fe15:2d61 prefixlen 64 scopeid 0x20<link>
ether a2:62:14:15:2d:61 txqueuelen 0 (Ethernet)
RX packets 830 bytes 118203 (115.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 844 bytes 145574 (142.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethbd61f45: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::2064:52ff:fedc:d4ca prefixlen 64 scopeid 0x20<link>
ether 22:64:52:dc:d4:ca txqueuelen 0 (Ethernet)
RX packets 7 bytes 674 (674.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24 bytes 2077 (2.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethcae51aa: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::dc77:76ff:fef3:d9ec prefixlen 64 scopeid 0x20<link>
ether de:77:76:f3:d9:ec txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethd69f022: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::94e9:96ff:fe09:6886 prefixlen 64 scopeid 0x20<link>
ether 96:e9:96:09:68:86 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethea16a07: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::30ef:6ff:fe9d:a77c prefixlen 64 scopeid 0x20<link>
ether 32:ef:06:9d:a7:7c txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vetheb20f3d: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::b801:a1ff:feed:9b94 prefixlen 64 scopeid 0x20<link>
ether ba:01:a1:ed:9b:94 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethf0c8531: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::54f6:77ff:fea4:7d8b prefixlen 64 scopeid 0x20<link>
ether 56:f6:77:a4:7d:8b txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1185 (1.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethf710ac3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::48ff:12ff:feed:fe15 prefixlen 64 scopeid 0x20<link>
ether 4a:ff:12:ed:fe:15 txqueuelen 0 (Ethernet)
RX packets 27 bytes 2087 (2.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 52 bytes 10373 (10.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:39:39:2f txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root1@localhost ~]$
2.输入
nmtui
按回车
设置 为
192.168.50.4
保存 退出
输入 ifconfig 还是一样
下面看看本机网络配置