하나의 가상 어댑터만 연결된 CentOS를 실행하는 가상 머신이 있습니다.
그러나 세부 내용을 살펴보면 다음과 같은 내용을 볼 수 있습니다.
10.1.xx 주소만 원하거나 필요합니다. 다른 사람들은 어디서 왔나요? 안전하게 제거할 수 있나요? 그렇다면 어떻게 해야 할까요?
다음은 ifconfig입니다.
br-0804aae03e53: 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:b6ff:fe4e:a3b1 prefixlen 64 scopeid 0x20<link>
ether 02:42:b6:4e:a3:b1 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16 bytes 1312 (1.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::42:10ff:fec8:4c88 prefixlen 64 scopeid 0x20<link>
ether 02:42:10:c8:4c:88 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 656 (656.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.1.112 netmask 255.255.0.0 broadcast 10.1.255.255
inet6 fe80::7a35:f4e4:8726:909a prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:65:8d:af txqueuelen 1000 (Ethernet)
RX packets 32094 bytes 2243477 (2.1 MiB)
RX errors 0 dropped 245 overruns 0 frame 0
TX packets 493 bytes 79107 (77.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19 memory 0xfd3a0000-fd3c0000
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 498 bytes 41767 (40.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 498 bytes 41767 (40.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth117d12a: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::24bd:2fff:feac:fd9d prefixlen 64 scopeid 0x20<link>
ether 26:bd:2f:ac:fd:9d txqueuelen 0 (Ethernet)
RX packets 54 bytes 3996 (3.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 22 bytes 1472 (1.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth514d3ac: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::2431:c2ff:fea2:b8df prefixlen 64 scopeid 0x20<link>
ether 26:31:c2:a2:b8:df txqueuelen 0 (Ethernet)
RX packets 120 bytes 13715 (13.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 112 bytes 15542 (15.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth869d99f: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::8c54:eeff:fe2a:c8dd prefixlen 64 scopeid 0x20<link>
ether 8e:54:ee:2a:c8:dd txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16 bytes 1312 (1.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethebc687e: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::f413:feff:fe5f:4f1 prefixlen 64 scopeid 0x20<link>
ether f6:13:fe:5f:04:f1 txqueuelen 0 (Ethernet)
RX packets 79 bytes 12873 (12.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 112 bytes 12937 (12.6 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:76:7e:39 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
답변1
다른 IP 주소는 가상 머신 내부의 브리지에 해당하며, 아마도 가상 머신 내부의 컨테이너 및 기타 가상 머신에 대한 네트워크 연결을 제공하는 것으로 추정됩니다. 이러한 IP 주소를 "제거"하려면 해당 브리지를 삭제해야 합니다.예가상 머신 내에 유용한 컨테이너와 가상 머신이 있으며, 이에 액세스해야 하지만 그렇게 해서는 안 됩니다.
또는 모든 가상 머신 내부 네트워크를 개인 네트워크로 재구성해 볼 수 있습니다.즉NIC에 대한 브리지를 사용하지 말고 VM을 종료해야 하는 모든 것에 NAT를 사용하십시오.