오른쪽 네트워크들은 생략함.


▶ASW1. vlan 설정

ASW1#conf t

ASW1(config)#int fa1/2

ASW1(config-if)#switchport mode access

ASW1(config-if)#switchport access vlan 10

ASW1(config-if)#exit

ASW1(config)#int fa1/3

ASW1(config-if)#switchport mode access

ASW1(config-if)#switchport access vlan 20

ASW1(config-if)#end

ASW1#conf t
ASW1(config)#interface range fastEthernet 1/10 - 11
ASW1(config-if-range)#switchport mode trunk
ASW1(config-if-range)#switchport trunk allowed vlan all
ASW1(config-if-range)#end
ASW1#wr me
Building configuration...
[OK]


▶DSW1

DSW1#conf t
DSW1(config)#vlan 10
DSW1(config-vlan)#exit
DSW1(config)#vlan 20
DSW1(config-vlan)#exit
DSW1(config)#interface range fastEthernet 1/10 , fastEthernet 1/12
DSW1(config-if-range)#switchport mode trunk
DSW1(config-if-range)#switchport trunk allowed vlan all
DSW1(config-if-range)#end
DSW1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

DSW1#conf t
DSW1(config)#interface vlan 10
DSW1(config-if)#ip address 10.10.10.201 255.255.255.0
DSW1(config-if)#exit
DSW1(config)#int
DSW1(config)#interface vlan 20
DSW1(config-if)#ip address 10.10.20.201 255.255.255.0
DSW1(config)#end
DSW1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 2 subnets
C       10.10.10.0 is directly connected, Vlan10
C       10.10.20.0 is directly connected, Vlan20
DSW1#wr me
Building configuration...
[OK]
DSW1#


▶DSW1

DSW1#conf t
DSW1(config)#spanning-tree vlan 10 root primary
 VLAN 10 bridge priority set to 8192
 VLAN 10 bridge max aging time unchanged at 20
 VLAN 10 bridge hello time unchanged at 2
 VLAN 10 bridge forward delay unchanged at 15
DSW1(config)#spanning-tree vlan 20 root secondary
 VLAN 20 bridge priority set to 16384
 VLAN 20 bridge max aging time unchanged at 20
 VLAN 20 bridge hello time unchanged at 2
 VLAN 20 bridge forward delay unchanged at 15
DSW1(config)#end


▶DSW1

DSW1#conf t
DSW1(config)#int fa1/15
DSW1(config-if)#no switchport
DSW1(config-if)#ip address 100.100.100.2 255.255.255.0
DSW1(config-if)#end
DSW1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     100.0.0.0/24 is subnetted, 1 subnets
C       100.100.100.0 is directly connected, FastEthernet1/15
     10.0.0.0/24 is subnetted, 2 subnets
C       10.10.10.0 is directly connected, Vlan10
C       10.10.20.0 is directly connected, Vlan20

 


▶BR

BR#conf t
BR(config)#int fa0/0
BR(config-if)#ip address 100.100.100.1 255.255.255.0
BR(config-if)#no sh
BR(config-if)#end
BR#show ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            100.100.100.1   YES manual up                    up
FastEthernet0/1            unassigned      YES unset  administratively down down
FastEthernet1/0            unassigned      YES unset  administratively down down

BR 라우터 통신 확인
DSW1 통신 확인


▶DSW1

DSW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
DSW1(config)#ip route 0.0.0.0 0.0.0.0 100.100.100.1
DSW1(config)#end


▶BR

BR#conf t
BR(config)#int fastEthernet 1/0
BR(config-if)#ip address 192.168.30.42 255.255.255.0
BR(config-if)#no sh
BR(config-if)#exit
BR(config)#ip route 0.0.0.0 0.0.0.0 192.168.30.254
BR(config)#access-list 1 permit any
BR(config)#ip nat inside source list 1 int fa1/0


BR(config)#int fa1/0
BR(config-if)#ip nat outside
BR(config-if)#exit
BR(config)#int fa0/0
BR(config-if)#ip nat inside
BR(config-if)#exit
BR(config)#int fa0/1
BR(config-if)#ip nat inside
BR(config-if)#end

통신 확인


BR#conf t
BR(config)#ip route 10.10.10.0 255.255.255.0 100.100.100.2
BR(config)#ip route 10.10.10.0 255.255.255.0 200.200.200.2
BR(config)#ip route 10.10.20.0 255.255.255.0 100.100.100.2
BR(config)#ip route 10.10.20.0 255.255.255.0 200.200.200.2
BR(config)#end

DSW1 통신 확인
DSW2 통신 확인


DSW1(config-if)#vrrp ?
  <1-255>  Group number

DSW1(config-if)#vrrp 1 ip 10.10.10.254
DSW1(config-if)#vrrp 1 priority 120
DSW1(config-if)#vrrp 1 timers advertise 5
DSW1(config-if)#exit
DSW1(config)#track ?
  <1-500>     Tracked object
  resolution  Tracking resolution parameters
  timer       Polling interval timers

DSW1(config)#track 1 int fa1/15 line-protocol
DSW1(config)#exit
DSW1#conf t
DSW1(config)#int vlan 10
DSW1(config-if)#vrrp 1 track 1 decrement 30
DSW1(config-if)#vrrp 1 preempt delay minimum 5
DSW1(config-if)#vrrp 1 authentication md5 key-string ?
  0  Specifies an UNENCRYPTED key string will follow
  7  Specifies a HIDDEN key string will follow

DSW1(config-if)#vrrp 1 authentication md5 key-string 0 test


DSW2#conf t
DSW2(config)#int vlan 10
DSW2(config-if)#vrrp 1 ip 10.10.10.254
DSW2(config-if)#vrrp 1 priority 100
DSW2(config-if)#vrrp 1 timers learn
DSW2(config-if)#vrrp 1 authentication md5 key-string 0 test
DSW2(config-if)#end
DSW2#

 

'TEST > GNS3' 카테고리의 다른 글

service  (0) 2021.08.03
hrrp  (0) 2021.07.12
Internet  (0) 2021.07.11
Static Routing  (0) 2021.07.11
[Router] GNS3  (0) 2021.07.04

+ Recent posts