[root@localhost ~]# ifconfig
enp0s3: flags=4163 mtu 1500
inet 192.168.1.89 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::a00:27ff:fe26:bddd prefixlen 64 scopeid 0x20
ether 08:00:27:26:bd:dd txqueuelen 1000 (Ethernet)
RX packets 8887 bytes 548956 (536.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9271 bytes 11990079 (11.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 0 (Local Loopback)
RX packets 1009 bytes 101680 (99.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1009 bytes 101680 (99.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@localhost ~]#
这是linux系统的IP