집에서 잘 되는 브리지 모드가 밖에만 나가면 안 돼서 NAT 모드를 쓰는데 VM 복제 시 IP가 바뀌지 않는다. 맥어드레스를 바꿔도 안 됨. machine-id가 같아서 그런가?
[root@Snort ~]# ifconfig eth0eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::a00:27ff:fe6b:e0d9 prefixlen 64 scopeid 0x20<link> ether 08:00:27:6b:e0:d9 txqueuelen 1000 (Ethernet) RX packets 675055 bytes 999902873 (953.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 78402 bytes 4788435 (4.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@Snort ~]# ifconfig eth0eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::a00:27ff:fe6b:e0d9 prefixlen 64 scopeid 0x20<link> ether 08:00:27:6b:e0:d9 txqueuelen 1000 (Ethernet) RX packets 675055 bytes 999902873 (953.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 78402 bytes 4788435 (4.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
NAT Network
도구 > 만들기 > Nat Network 생성.
어댑터 설정을 'NAT -> NAT 네트워크'로 수정. 이후 맥어드레스 변경도 필수.
[root@Snort ~]# ifconfig eth0eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::a00:27ff:fe6b:e0d9 prefixlen 64 scopeid 0x20<link> ether 08:00:27:6b:e0:d9 txqueuelen 1000 (Ethernet) RX packets 675055 bytes 999902873 (953.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 78402 bytes 4788435 (4.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@Snort ~]# ifconfig eth0eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.4 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::a00:27ff:fe6b:e0d9 prefixlen 64 scopeid 0x20<link> ether 08:00:27:6b:e0:d9 txqueuelen 1000 (Ethernet) RX packets 675055 bytes 999902873 (953.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 78402 bytes 4788435 (4.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
이 간단한 걸 몰라서 여태 헤맸네(..)
댓글 없음:
댓글 쓰기