该虚拟机是从 vmware 工作站克隆的。原始虚拟机和克隆虚拟机均出现这种情况。以下是我的步骤,我设置了静态ip 192.168.6.201,但我可以通过192.168.6.102和201连接它。但是我在接口配置中找不到ip(102)。
$ ssh [email protected]
Last login: Wed Dec 14 00:54:22 2016 from 192.168.6.105
[root@clone1 ~]# ifconfig
eno16777736: flags=4163 mtu 1500
inet 192.168.6.201 netmask 255.255.255.0 broadcast 192.168.6.255
ether 00:0c:29:70:45:76 txqueuelen 1000 (Ethernet)
RX packets 2218 bytes 194035 (189.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 904 bytes 150502 (146.9 KiB)
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 49 bytes 7558 (7.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0 TX packets 49 bytes 7558 (7.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099 mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 00:00:00:00:00:00 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
答案1
我认为这ifconfig
仅显示一个 IP 地址。
ip addr show
应该向你展示所有这些