0.环境查看:
[root@lili ~]# uname -a
Linux lili 5.14.0-70.13.1.el9_0.x86_64 #1 SMP PREEMPT Thu Apr 14 12:42:38 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@lili ~]# ifconfig | head -2
ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.23.177 netmask 255.255.255.0 broadcast 192.168.23.255