뭉게뭉게 엔지니어

VLAN_Native LAN 실습 본문

☁ 실습 해보기/Packet Tracer

VLAN_Native LAN 실습

어푸어푸🌊 2022. 6. 16. 00:14

환경 설정]

1. VLAN 77 구성 (access)

SW1(config)#int f0/7
SW1(config-if)#switchport mode access 
SW1(config-if)#switchport access vlan 77

SW2(config)#int f0/7
SW2(config-if)#switchport mode access 
SW2(config-if)#switchport access vlan 77


2. 정보 확인
SW1#sh interfaces fastEthernet 0/24 switchport 
Name: Fa0/24
~
Trunking Native Mode VLAN: 1 (default)

SW2#sh int f0/24 switchport 
~
Trunking Native Mode VLAN: 1 (default)
Native VLAN 구성]

native VLAN : 77
- native VLAN 생성 > 기존 trunk port 에 VLAN 10,20 에 77 을 추가 > 정보확인 > Native VLAN 사용 

SW1(config)#vlan 77
SW1(config-vlan)#name native
SW1(config-vlan)#do sh vlan br
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
~
77   native                           active

SW2(config)#vlan 77
SW2(config-vlan)#name native
SW2(config-vlan)#do sh vlan br
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
~
77   native                           active    


SW1(config)#int f0/24
SW1(config-if)#switchport trunk allowed vlan add 77

SW2(config)#int f0/24
SW2(config-if)#switchport trunk allowed vlan add 77

SW1#sh interfaces f0/24 switchport 
Name: Fa0/24
Operational private-vlan: none
Trunking VLANs Enabled: 10,20,77

SW2#sh int f0/24 switchport 
Name: Fa0/24
Operational private-vlan: none
Trunking VLANs Enabled: 10,20,77


trunk 구간에서 tagging 이 되는지 확인]

SW1(config-if)#switchport trunk ?
  allowed  Set allowed VLAN characteristics when interface is in trunking mode
  native   Set trunking native characteristics when interface is in trunking

SW1(config-if)#switchport trunk native ?
  vlan  Set native VLAN when interface is in trunking mode

SW1(config-if)#switchport trunk native vlan ?
  <1-4094>  VLAN ID of the native VLAN when this port is in trunking mode
SW1(config-if)#switchport trunk native vlan 77
SW1(config-if)#%SPANTREE-2-RECV_PVID_ERR: Received BPDU with inconsistent peer vlan id 1 on FastEthernet0/24 VLAN77.

SW2(config)#int f0/24
SW2(config-if)#switchport trunk native vlan 77
DTP(스위치간 Port mode 설정)

Switch(config-if)#switchport mode ?
  access   Set trunking mode to ACCESS unconditionally
  dynamic  Set trunking mode to dynamically negotiate access or trunk mode
  trunk    Set trunking mode to TRUNK unconditionally

Switch(config-if)#switchport mode dynamic ?
  auto       Set trunking mode dynamic negotiation parameter to AUTO
  desirable  Set trunking mode dynamic negotiation parameter to DESIRABLE



Switch0#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access

Switch1#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
DTP negotiation]

SWitch0:Dynamic Auto]  SWitch1:**dynamic desirable**]
Switch1(config)#int f0/24
Switch1(config-if)#switchport mode **dynamic desirable**
Switch1#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
**Administrative Mode: dynamic desirable**
**Operational Mode: trunk**

SWitch0:Dynamic Auto]  SWitch1:Trunk]
Switch1(config)#int f0/24
Switch1(config-if)#switchport mode **trunk**
Switch1#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
**Administrative Mode: trunk**
**Operational Mode: trunk**

Switch0#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: trunk

****SWitch0:Dynamic Auto] , SWitch1:Access]
Switch1(config)#int f0/24
Switch1(config-if)#switchport mode access
Switch1#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
**Administrative Mode: static access
Operational Mode: static access**

Switch0#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access

****SWitch0:**dynamic desirable**] , SWitch1:**dynamic desirable**]

Enter configuration commands, one per line.  End with CNTL/Z.
Switch1(config-if)#switchport mode dynamic desirable
Command rejected: Conflict between '**nonegotiate**' and 'dynamic' status.
Switch1(config)#int f0/24
Switch1(config-if)#**no switchport nonegotiate** 
Switch1(config-if)#switchport mode **dynamic desirable**

Switch1#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: trunk

Switch0#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: trunk

'☁ 실습 해보기 > Packet Tracer' 카테고리의 다른 글

Routed port를 이용한 InterVLAN  (0) 2022.06.16
VLAN_Sub interface 설정  (0) 2022.06.16
OSPF_Multi Area 실습  (0) 2022.06.16
Static Routing & Default Routing & RIP 실습  (0) 2022.06.15
OSPF 실습  (0) 2022.06.15
Comments