VM1에서 인터넷까지 연결가능한 환경구성

VM1 (CentOS_100)
GNS3환경에서는 eth2(enp0s9)로 테스트 가능
IP : 192.168.100.100 255.255.255.0
GW : 192.168.100.1
SW1
ethernet 1/0포트에 직접 IP를 심어도 되고 vlan생성하여 range 걸어도 됨
ethernet 3/2포트는 VM에 있는 NAT(10.0.3.2 - 자동부여)를 거쳐 외부로 나가는 환경임
SW1#conf t
SW1(config)#vlan 100
SW1(config-vlan)#exit
SW1(config)#int vlan100
SW1(config-if)#no shut
SW1(config-if)#ip address 192.168.100.1 255.255.255.0
SW1(config-if)#exit
SW1(config)#
SW1(config)#int ethernet 1/0
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 100
SW1(config-if)#exit
SW1(config)#
SW1(config)#ip route 0.0.0.0 0.0.0.0 10.0.3.2
SW1(config)#int ethernet 3/2
SW1(config-if)#no shut
SW1(config-if)#no switchport
SW1(config-if)#ip address dhcp
SW1(config-if)#exit
SW1(config)#
SW1(config)#exit
SW1#
SW1#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/33 ms
SW1#
SW1#
SW1#
SW1#
SW1#ping 192.168.100.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.100.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
SW1#
결론 : GNS3 - VM환경에서도 인터넷 사용이 가능함