如果我在 rhel7 机器上运行 ifconfig 命令,我会看到以下输出:
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet x1.x2.x3.x4 netmask 255.255.255.192 broadcast xx.xx.xx.xx
inet6 xxxx:xxxx:xx:xxxx::xxxx prefixlen 64 scopeid 0x0<global>
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)
lo:1: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet x5.x6.x7.x8 netmask 255.255.255.255
loop txqueuelen 1000 (Local Loopback)
编辑:我读到了可预测的接口命名方案,但它没有提到下面的环回接口。