본문 바로가기

Network/Packet Tracer

VLAN(Access, Trunk) 실습

반응형

VLAN이란?

 

VLAN(Virtual LAN)의 개념

VLAN이란?컴퓨터 네트웤크에서 여러 개의 구별되는 브로드캐스트 도메일을 만들기 위해 단일 2 계층 네트워크를 분할할 수 있는데, 분할된 패킷들은 하나 이상의 라우터들 사이에서만 이동할 수

networkinfracloud.tistory.com

 

 

Access 실습

 

예상 구성도 작성

VLAN10 생성

L3#1(config)#vlan 10 // VLAN 10생성
L3#1(config-vlan)#name VLAN10 // 이름을 VLAN10으로 변경
L3#1(config-vlan)#exit


L3#1(config)#interface vlan 10 // VLAN10 인터페이스 생성
L3#1(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
L3#1(config-if)#ip address 192.168.10.254 255.255.255.0 // VLAN10 IP 부여
L3#1(config-if)#no shutdown

 

VLAN20 생성

L3#1(config)#vlan 20
L3#1(config-vlan)#na VLAN20
L3#1(config-vlan)#exit

L3#1(config)#int vl 20
L3#1(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
L3#1(config-if)#ip add 192.168.20.254 255.255.255.0
L3#1(config-if)#no sh
L3#1(config-if)#exit

 

L3에서 포트 인터페이스에 VLAN 부여

L3#1(config)#interface fastEthernet 0/1 // fa0/1 접근
L3#1(config-if)#switchport mode access // access 모드로 변경
L3#1(config-if)#switchport access vlan 10 // vlan 10 접근 허가
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

L3#1(config-if)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (10), with L2#1 FastEthernet0/24 (1).
// 이웃 포트 VLAN 불일치 알림
L3#1(config-if)#exit

L3#1(config)#int fa 0/13
L3#1(config-if)#sw mo ac
L3#1(config-if)#sw ac vl 20
L3#1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

 

L2#1에서 VLAN 생성, 포트 인터페이스 VLAN 부여

L2#1(config)#vl 10
L2#1(config-vlan)#na VLAN10
L2#1(config-vlan)#exit

L2#1(config)#int fa 0/24 // L3 연결 포트 VLAN 부여
L2#1(config-if)#sw mo ac
L2#1(config-if)#sw ac vl 10
L2#1(config-if)#exit

L2#1(config)#int fa 0/1 // PC0 연결 포트 VLAN 부여
L2#1(config-if)#sw mo ac
L2#1(config-if)#sw ac vl 10
L2#1(config-if)#exit

 

L2#2에서 VLAN 생성, 포트 인터페이스 VLAN 부여

L2#2(config)#vl 20
L2#2(config-vlan)#na VLAN20
L2#2(config-vlan)#exit

L2#2(config)#int fa 0/24
L2#2(config-if)#sw mo ac
L2#2(config-if)#sw ac vl 20
L2#2(config-if)#exit

L2#2(config)#int fa 0/1
L2#2(config-if)#sw mo ac
L2#2(config-if)#sw ac vl 20
L2#2(config-if)#exit

 

L3#1 VLAN 테이블 확인

L3#1#sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/2, Fa0/3, Fa0/4, Fa0/5
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/14
                                                Fa0/15, Fa0/16, Fa0/17, Fa0/18
                                                Fa0/19, Fa0/20, Fa0/21, Fa0/22
                                                Fa0/23, Fa0/24, Gig0/1, Gig0/2
10   VLAN10                           active    Fa0/1 // 포트 번호 확인
20   VLAN20                           active    Fa0/13
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0
20   enet  100020     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0   
1003 tr    101003     1500  -      -      -        -    -        0      0   
1004 fdnet 101004     1500  -      -      -        ieee -        0      0   
1005 trnet 101005     1500  -      -      -        ibm  -        0      0   

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

Remote SPAN VLANs
------------------------------------------------------------------------------

Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------
L3#1#

 

L2#1, L2#2 VLAN 테이블 확인

L2#1#sh vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/2, Fa0/3, Fa0/4, Fa0/5
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                                Fa0/14, Fa0/15, Fa0/16, Fa0/17
                                                Fa0/18, Fa0/19, Fa0/20, Fa0/21
                                                Fa0/22, Fa0/23, Gig0/1, Gig0/2
10   VLAN10                           active    Fa0/1, Fa0/24
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0   
1003 tr    101003     1500  -      -      -        -    -        0      0   
1004 fdnet 101004     1500  -      -      -        ieee -        0      0   
1005 trnet 101005     1500  -      -      -        ibm  -        0      0   

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

Remote SPAN VLANs
------------------------------------------------------------------------------

Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------
L2#1#

------------------------------------------------------------------------------

L2#2#
L2#2#sh vlan
L2#2#sh vlan 

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/2, Fa0/3, Fa0/4, Fa0/5
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                                Fa0/14, Fa0/15, Fa0/16, Fa0/17
                                                Fa0/18, Fa0/19, Fa0/20, Fa0/21
                                                Fa0/22, Fa0/23, Gig0/1, Gig0/2
20   VLAN20                           active    Fa0/1, Fa0/24
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
20   enet  100020     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0   
1003 tr    101003     1500  -      -      -        -    -        0      0   
1004 fdnet 101004     1500  -      -      -        ieee -        0      0   
1005 trnet 101005     1500  -      -      -        ibm  -        0      0   

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

Remote SPAN VLANs
------------------------------------------------------------------------------

Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------
L2#2#

 

PC0, PC1 L3#1 까지 Ping 통신 확인

 

Access를 했음에도 다른 대역에 Ping 통신이 가능한 이유??? 상단의 개념을 확인해보자..

 

Trunk 실습

예상 구성도 작성

L3#1 VLAN 생성

L3#1(config)#vl 10
L3#1(config-vlan)#na VLAN10
L3#1(config-vlan)#exit

L3#1(config)#vl 20
L3#1(config-vlan)#na VLAN20
L3#1(config-vlan)#exit

L3#1(config)#int vl 10
L3#1(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
L3#1(config-if)#ip add 192.168.10.254 255.255.255.0
L3#1(config-if)#no sh
L3#1(config-if)#exit

L3#1(config)#int vl 20
L3#1(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up
L3#1(config-if)#ip add 192.168.20.254 255.255.255.0
L3#1(config-if)#no sh
L3#1(config-if)#exit

 

L3#1 인터페이스 포트 Trunk 부여

L3#1(config)#int fa0/1
L3#1(config-if)#sw mo tr // 트렁크 모드는 encapsulation이 auto일경우는 지원 안한다함
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
L3#1(config-if)#switchport trunk encapsulation dot1q // dot1q 프로토콜로 전환
L3#1(config-if)#switchport mode trunk // 트렁크 모드로 전환
L3#1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up
L3#1(config-if)#switchport trunk ?
  allowed        Set allowed VLAN characteristics when interface is in trunking
                 mode
  encapsulation  Set trunking encapsulation when interface is in trunking mode
  native         Set trunking native characteristics when interface is in
                 trunking mode
  vlan  Set allowed VLANs when interface is in trunking mode
L3#1(config-if)#switchport trunk allowed vlan 10 // 그냥 allowed 하게될경우 10번을 제외한 다른 Vlan은 deny된다.
L3#1(config-if)#sw tr al vl ?
  WORD    VLAN IDs of the allowed VLANs when this port is in trunking mode
  add     add VLANs to the current list
  all     all VLANs
  except  all VLANs except the following
  none    no VLANs
  remove  remove VLANs from the current list
L3#1(config-if)#switchport trunk allowed vlan add 20 // add를 넣게되면 vlan 추가가된다.
L3#1(config-if)#exit

L3#1(config)#int fa 0/13
L3#1(config-if)#sw tr en d
L3#1(config-if)#sw mo tr
L3#1(config-if)#sw tr al vl 10
L3#1(config-if)#sw tr al vl add 20
L3#1(config-if)#exit

 

그냥 모드만 Trunk로 했을때 테이블

L3#1(config)#do sh int tr
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1
Fa0/13      on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       10,20 // 원하는 vlan만 들어간상태
Fa0/13      1-1005 // allowed 된 trunk vlan이 1~1005로되어있다.

Port        Vlans allowed and active in management domain
Fa0/1       10,20
Fa0/13      1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       10,20
Fa0/13      none

 

L2#1, L2#2  VLAN 생성과 Trunk 부여

L2#1(config)#vl 10
L2#1(config-vlan)#na VLAN10
L2#1(config-vlan)#exit

L2#1(config)#vl 20
L2#1(config-vlan)#na VLAN20
L2#1(config-vlan)#exit

L2#1(config)#int fa 0/24
L2#1(config-if)#sw mo tr
L2#1(config-if)#sw tr al vl 10
L2#1(config-if)#sw tr al vl add 20
L2#1(config-if)#exit

L2#1(config)#int fa 0/1
L2#1(config-if)#sw mo tr
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
L2#1(config-if)#sw tr al vl 10
L2#1(config-if)#sw tr al vl add 20
L2#1(config-if)#exit

L2#1(config)#int fa 0/13
L2#1(config-if)#sw mo tr
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to up
L2#1(config-if)#sw tr al vl 10
L2#1(config-if)#sw tr al vl add 20
L2#1(config-if)#exit
L2#1(config)#

--------------------------------------------------------------------------------------

L2#2(config)#vl 10
L2#2(config-vlan)#na VLAN10
L2#2(config-vlan)#exit

L2#2(config)#vl 20
L2#2(config-vlan)#na VLAN20
L2#2(config-vlan)#exit

L2#2(config)#int fa0/24
L2#2(config-if)#sw mo tr
L2#2(config-if)#sw tr al vl 10
L2#2(config-if)#sw tr al vl add 20
L2#2(config-if)#exit

L2#2(config)#int fa0/1
L2#2(config-if)#sw mo tr
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
L2#2(config-if)#sw tr al vl 10
L2#2(config-if)#sw tr al vl add 20
L2#2(config-if)#exit

L2#2(config)#int fa 0/13
L2#2(config-if)#sw mo tr
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to up
L2#2(config-if)#sw tr al vl 10
L2#2(config-if)#sw tr al vl add 20
L2#2(config-if)#exit

 

L3#1 Trunk 테이블 확인

L3#1#sh int tr
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1
Fa0/13      on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       10,20
Fa0/13      10,20

Port        Vlans allowed and active in management domain
Fa0/1       10,20
Fa0/13      10,20

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       10,20
Fa0/13      10,20

L3#1#

 

L2#1, L2#2 Trunk 테이블 확인

L2#1#sh int tr
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1
Fa0/13      on           802.1q         trunking      1
Fa0/24      on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       10,20
Fa0/13      10,20
Fa0/24      10,20

Port        Vlans allowed and active in management domain
Fa0/1       10,20
Fa0/13      10,20
Fa0/24      10,20

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       10,20
Fa0/13      10,20
Fa0/24      10,20

L2#1#

------------------------------------------------------------------------------------------

L2#2#sh int tr
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1
Fa0/13      on           802.1q         trunking      1
Fa0/24      on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       10,20
Fa0/13      10,20
Fa0/24      10,20

Port        Vlans allowed and active in management domain
Fa0/1       10,20
Fa0/13      10,20
Fa0/24      10,20

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       10,20
Fa0/13      10,20
Fa0/24      10,20

L2#2#

 

PC Ping 통신 확인

핑통신이 불가능하다.

 

Temp L2스위치를 임시로 추가했다.

 

 

L2#1과 TempL2 간 VLAN 통신 설정

L2#1(config)#int fa 0/23
L2#1(config-if)#sw mo tr
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to up
L2#1(config-if)#sw tr al vl 10
L2#1(config-if)#sw tr al vl add 20
L2#1(config-if)#exit

-----------------------------------------------------------------------------------------

TempL2(config)#vl 10
TempL2(config-vlan)#na VLAN10
TempL2(config-vlan)#exit

TempL2(config)#vl 20
TempL2(config-vlan)#na VLAN20
TempL2(config-vlan)#exit

TempL2(config)#int fa 0/1
TempL2(config-if)#sw mo tr
TempL2(config-if)#sw tr al vl 10
TempL2(config-if)#sw tr al vl add 20
TempL2(config-if)#exit

 

Ping 통신이 가능하도록 IP 부여

TempL2(config)#int vl 10
%LINK-5-CHANGED: Interface Vlan10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
TempL2(config-if)#ip add 192.168.10.3 255.255.255.0
TempL2(config-if)#no sh
TempL2(config-if)#exit

TempL2(config)#int vl 20
%LINK-5-CHANGED: Interface Vlan20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up
TempL2(config-if)#ip add 192.168.20.3 255.255.255.0
TempL2(config-if)#no sh
TempL2(config-if)#exit

 

Gateway 까지 ping 확인

 

PC 까지 Ping 확인

역시나 핑이 안나간다.. 왜안나갈까? 개념을 보며 생각해보자..

 

VLAN(Virtual LAN)의 개념

VLAN이란?컴퓨터 네트웤크에서 여러 개의 구별되는 브로드캐스트 도메일을 만들기 위해 단일 2 계층 네트워크를 분할할 수 있는데, 분할된 패킷들은 하나 이상의 라우터들 사이에서만 이동할 수

networkinfracloud.tistory.com

 

 

Trunk, Access 복합 실습

 

예상 구성도 작성

 

L3#1 VLAN 설정, Tunk 설정, 인터페이스 vlan 부여

L3#1(config)#vl 10
L3#1(config-vlan)#na VLAN10
L3#1(config-vlan)#exit

L3#1(config)#vl 20
L3#1(config-vlan)#na VLAN20
L3#1(config-vlan)#exit

L3#1(config)#int vl 10
%LINK-5-CHANGED: Interface Vlan10, changed state to up
L3#1(config-if)#ip add 192.168.10.254 255.255.255.0
L3#1(config-if)#exit

L3#1(config)#int vl 20
%LINK-5-CHANGED: Interface Vlan20, changed state to up
L3#1(config-if)#ip add 192.168.20.254 255.255.255.0
L3#1(config-if)#exit

L3#1(config)#int fa 0/1
L3#1(config-if)#sw tr en d
L3#1(config-if)#sw mo tr
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up
L3#1(config-if)#sw tr al vl 10
L3#1(config-if)#sw tr al vl add 20
L3#1(config-if)#exit

L3#1(config)#int fa 0/13
L3#1(config-if)#sw tr en d
L3#1(config-if)#sw mo tr
L3#1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to up
L3#1(config-if)#sw tr al vl 10
L3#1(config-if)#sw tr al vl add 20
L3#1(config-if)#exit

 

L2#1 VLAN설정, Trunk 설정, Access 설정, 인터페이스 vlan 부여

L2#1(config)#vl 10
L2#1(config-vlan)#na VLAN10
L2#1(config-vlan)#exit

L2#1(config)#vl 20
L2#1(config-vlan)#na VLAN20
L2#1(config-vlan)#exit

L2#1(config)#int fa 0/1
L2#1(config-if)#sw mo tr
L2#1(config-if)#sw tr al vl 10
L2#1(config-if)#sw tr al vl add 20
L2#1(config-if)#exit

L2#1(config)#int fa 0/2
L2#1(config-if)#sw mo ac
L2#1(config-if)#sw ac vl 10
L2#1(config-if)#exit

L2#1(config)#int fa 0/14
L2#1(config-if)#sw mo ac
L2#1(config-if)#sw ac vl 20
L2#1(config-if)#exit

 

L2#2 VLAN설정, Trunk 설정, Access 설정, 인터페이스 vlan 부여

L2#2(config)#vl 10
L2#2(config-vlan)#na VLAN10
L2#2(config-vlan)#ex

L2#2(config)#vl 20
L2#2(config-vlan)#na VLAN20
L2#2(config-vlan)#ex

L2#2(config)#int fa 0/13
L2#2(config-if)#sw mo tr
L2#2(config-if)#sw tr al vl 10
L2#2(config-if)#sw tr al vl add 20
L2#2(config-if)#ex

L2#2(config)#int fa 0/2
L2#2(config-if)#sw mo ac
L2#2(config-if)#sw ac vl 10
L2#2(config-if)#ex

L2#2(config)#int fa 0/14
L2#2(config-if)#sw mo ac
L2#2(config-if)#sw ac vl 20
L2#2(config-if)#ex

 

L3#1, L2#1, L2#2 VLAN 테이블 확인

L3#1#
L3#1#sh int tr
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1
Fa0/13      on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       10,20
Fa0/13      10,20

Port        Vlans allowed and active in management domain
Fa0/1       10,20
Fa0/13      10,20

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       10,20
Fa0/13      10,20

L3#1#

------------------------------------------------------------------------------------------

L2#1#sh vl // VLAN 테이블

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/3, Fa0/4, Fa0/5, Fa0/6
                                                Fa0/7, Fa0/8, Fa0/9, Fa0/10
                                                Fa0/11, Fa0/12, Fa0/13, Fa0/15
                                                Fa0/16, Fa0/17, Fa0/18, Fa0/19
                                                Fa0/20, Fa0/21, Fa0/22, Fa0/23
                                                Fa0/24, Gig0/1, Gig0/2
10   VLAN10                           active    Fa0/2
20   VLAN20                           active    Fa0/14
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0
20   enet  100020     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0   
1003 tr    101003     1500  -      -      -        -    -        0      0   
1004 fdnet 101004     1500  -      -      -        ieee -        0      0   
1005 trnet 101005     1500  -      -      -        ibm  -        0      0   

L2#1#sh int tr // Trunk 테이블
Port        Mode         Encapsulation  Status        Native vlan
Fa0/1       on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/1       10,20

Port        Vlans allowed and active in management domain
Fa0/1       10,20

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/1       10,20

L2#1#

-----------------------------------------------------------------------------------------

L2#2#sh vl // VLAN

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/3, Fa0/4, Fa0/5
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/15
                                                Fa0/16, Fa0/17, Fa0/18, Fa0/19
                                                Fa0/20, Fa0/21, Fa0/22, Fa0/23
                                                Fa0/24, Gig0/1, Gig0/2
10   VLAN10                           active    Fa0/2
20   VLAN20                           active    Fa0/14
1002 fddi-default                     active    
1003 token-ring-default               active    
1004 fddinet-default                  active    
1005 trnet-default                    active    

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0
10   enet  100010     1500  -      -      -        -    -        0      0
20   enet  100020     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        0      0   

L2#2#sh int tr // Trunk
Port        Mode         Encapsulation  Status        Native vlan
Fa0/13      on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/13      10,20

Port        Vlans allowed and active in management domain
Fa0/13      10,20

Port        Vlans in spanning tree forwarding state and not pruned
Fa0/13      10,20

L2#2#

 

PC ping 통신 확인

각 VLAN 끼리는 통신이 가능, 다른 대역은 불가능

 

HSRP(VRRP) 실습 - Packet Tracer

 

HSRP(VRRP) 실습 - Packet Tracer

VRRP란? - Virtual Router Redundancy Protocol feat.HSRP VRRP란? - Virtual Router Redundancy Protocol feat.HSRPVirtual Router Redundancy Protocol : 가상 라우터 장애 복구 프로토콜IBM에서 개발한 게이트웨이 이중화 프로토콜Single

networkinfracloud.tistory.com

 

 

반응형