0. 주의사항 : VirtualBox에서 CentOS VM을 미리 만들고 난 후 GNS3프로그램을 통해서 Start 시켜야
GNS3 프로그램에서 정상적으로 작동함
1. Test1 : CentOS_1-1에서 CentOS_2-1 사이 ping check
2. CentOS_1, 2 동일 설정
- VM 네트워크 환경 : 3개의 네트워크가 필요함
- 어댑터1 : 호스트 전용 어댑터 → 해당 IP로 PC에서 연결이 가능
- 어댑터2 : NAT → PC와 VM간의 연결을 위해 필요
- 어댑터3 : 일반 드라이버(UDP Tunnel) → GNS3에서 쓸 인터페이스
3. Test 장비별 IP 구성
CentOS_1 | Router_1 | Router_2 | CentOS_2 | |
어댑터 1 | Host-Only | FastEthernet0/0 | FastEthernet0/0 | Host-Only |
enp0s3 | 192.168.56.105 | 1.1.1.1 | 1.1.1.2 | 192.168.56.107 |
NETMASK | 255.255.255.0 | 255.255.255.0 | 255.255.255.0 | 255.255.255.0 |
GATEWAY | - | - | ||
NETWORK | 192.168.56.0/24 | 192.168.56.0/24 | ||
어댑터 2 | NAT (변경불가) | NAT (변경불가) | ||
enp0s8 | 10.0.3.15 | 10.0.3.15 | ||
NETMASK | 255.255.255.0 | 255.255.255.0 | ||
GATEWAY | 10.0.3.2 | 10.0.3.2 | ||
NETWORK | 10.0.3.0/24 | 10.0.3.0/24 | ||
어댑터 3 | 일반 드라이버 : UDP Tunnel |
FastEthernet0/1 | FastEthernet0/1 | 일반 드라이버 : UDP Tunnel |
enp0s9 | 192.168.10.2 | 192.168.10.253 | 192.168.20.253 | 192.168.20.2 |
NETMASK | 255.255.255.0 | 255.255.255.0 | 255.255.255.0 | 255.255.255.0 |
GATEWAY | 192.168.10.253 | 192.168.20.253 | ||
NETWORK | 192.168.10.0/24 | 192.168.20.0/24 |
4. 각 장비별 Config 확인
[root@centos7_1 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:ef:af:e9 brd ff:ff:ff:ff:ff:ff
inet 192.168.56.105/24 brd 192.168.56.255 scope global noprefixroute dynamic enp0s3
valid_lft 594sec preferred_lft 594sec
inet6 fe80::172a:de4c:44e6:9ede/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:bf:74:1a brd ff:ff:ff:ff:ff:ff
inet 10.0.3.15/24 brd 10.0.3.255 scope global noprefixroute dynamic enp0s8
valid_lft 72446sec preferred_lft 72446sec
inet6 fe80::ef19:5367:aec8:62a/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: enp0s9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:74:88:45 brd ff:ff:ff:ff:ff:ff
inet 192.168.10.2/24 brd 192.168.10.255 scope global noprefixroute enp0s9
valid_lft forever preferred_lft forever
inet6 fe80::ec68:15c1:14c3:a339/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[root@centos7_1 ~]#
[root@centos7_2 html]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:7d:1d:a4 brd ff:ff:ff:ff:ff:ff
inet 192.168.56.107/24 brd 192.168.56.255 scope global noprefixroute dynamic enp0s3
valid_lft 575sec preferred_lft 575sec
inet6 fe80::3129:1c49:2094:73c4/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:4e:d2:91 brd ff:ff:ff:ff:ff:ff
inet 10.0.3.15/24 brd 10.0.3.255 scope global noprefixroute dynamic enp0s8
valid_lft 72327sec preferred_lft 72327sec
inet6 fe80::91dc:b1cd:6b83:d05b/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: enp0s9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:36:ca:7a brd ff:ff:ff:ff:ff:ff
inet 192.168.20.2/24 brd 192.168.20.255 scope global noprefixroute enp0s9
valid_lft forever preferred_lft forever
inet6 fe80::7a9e:5804:c823:aad6/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[root@centos7_2 html]#
R1#show run
Building configuration...
Current configuration : 1553 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
no ip domain lookup
!
multilink bundle-name authenticated
!
archive
log config
hidekeys
!
ip tcp synwait-time 5
!
interface FastEthernet0/0
ip address 1.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
clock rate 2000000
!
interface FastEthernet0/1
ip address 192.168.10.253 255.255.255.0
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
interface Serial0/2
no ip address
shutdown
clock rate 2000000
!
interface Serial0/3
no ip address
shutdown
clock rate 2000000
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet2/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet3/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet4/0
no ip address
shutdown
duplex auto
speed auto
!
!
ip forward-protocol nd
ip route 192.168.20.0 255.255.255.0 1.1.1.2
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
control-plane
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R1#
R2#show run
Building configuration...
Current configuration : 1553 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
no ip domain lookup
!
multilink bundle-name authenticated
!
archive
log config
hidekeys
!
ip tcp synwait-time 5
!
interface FastEthernet0/0
ip address 1.1.1.2 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
clock rate 2000000
!
interface FastEthernet0/1
ip address 192.168.20.253 255.255.255.0
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
interface Serial0/2
no ip address
shutdown
clock rate 2000000
!
interface Serial0/3
no ip address
shutdown
clock rate 2000000
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet2/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet3/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet4/0
no ip address
shutdown
duplex auto
speed auto
!
!
ip forward-protocol nd
ip route 192.168.10.0 255.255.255.0 1.1.1.1
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
control-plane
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R2#
'GNS3-VM' 카테고리의 다른 글
GNS3 - L2, L3 추가 (0) | 2024.07.11 |
---|---|
VM 2EA - Router 2EA TEST 정상 확인 및 문제점 (0) | 2024.07.10 |
VirtualBox - GNS3 연동 (0) | 2024.07.10 |