1. Access Mode Configuration 구성도
1) Access Mode Configuration 구성도

2) 테스트 장비
- Emulator : EVE-NG
- OS : Cisco IOL I86BI_LINUXL2-ADVENTERPRISEK9-M, Version 15.1c
2. Access Mode Configuration
1) 동일 Switch에서 다른 VLAN 통신
(1) 동일 Switch에서 다른 VLAN 통신 Configuration

< SW1 : VLAN 10 생성 >
SW1(config)#vlan 10
SW1(config-vlan)#name VLAN10
< SW1 : VLAN 20 생성 >
SW1(config)#vlan 20
SW1(config-vlan)#name VLAN20
< SW1 : e0/2 Access Mode 설정 >
SW1(config)#interface e0/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
< SW1 : e0/0 Access Mode 설정 >
SW1(config)#interface e0/0
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 20
< SW2 : VLAN 10 생성 >
SW2(config)#vlan 10
SW2(config-vlan)#name VLAN10
< SW2 : ge0/0 Access Mode 설정 >
SW2(config)#interface e0/0
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 10
< SW2 : ge0/1 Access Mode 설정 >
SW2(config)#interface e0/1
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 10
SW1#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/2, Et0/3
10 VLAN10 active Et0/1
20 VLAN20 active Et0/0
~~~ 생략 ~~~
SW2#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/2, Et0/3
10 VLAN10 active Et0/0, Et0/1
~~~ 생략 ~~~
SW1#
*Sep 23 12:34:08.066: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on Ethernet0/0 (20), with SW2 Ethernet0/0 (10).
SW1#
*Sep 23 12:35:08.066: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on Ethernet0/0 (20), with SW2 Ethernet0/0 (10).
SW2#
*Sep 23 13:22:30.702: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on Ethernet0/0 (10), with SW1 Ethernet0/0 (20).
SW2#
*Sep 23 13:23:30.702: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on Ethernet0/0 (10), with SW1 Ethernet0/0 (20).
- Cisco Switch는 기본적으로 VLAN Tag 정보가 있는 CDP를 전송하므로 VLAN Mismatch Log 발생
(2) 동일 Switch에서 다른 VLAN 통신 확인

- SW1의 Access Mode인 포트로 Import할 때, e0/1 포트에 설정한 10번 Tag를 Frame에 추가
- SW1의 Access Mode인 포트로 Export할 때, e0/0 포트에 설정한 20번 Tag가 Frame에 없으므로 Frame의 Tag를 제거하지 못하여 SW2향 포트로 Export 불가
2) 서로 다른 Switch간 동일 VLAN 통신
(1) 서로 다른 Switch간 동일 VLAN 통신 Configuration

< SW1 : VLAN 10 생성 >
SW1(config)#vlan 10
SW1(config-vlan)#name VLAN10
< SW1 : e0/2 Access Mode 설정 >
SW1(config)#interface e0/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
< SW1 : e0/0 Access Mode 설정 >
SW1(config)#interface e0/0
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
< SW2 : VLAN 10 생성 >
SW2(config)#vlan 10
SW2(config-vlan)#name VLAN10
< SW2 : ge0/0 Access Mode 설정 >
SW2(config)#interface e0/0
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 10
< SW2 : ge0/1 Access Mode 설정 >
SW2(config)#interface e0/1
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 10
SW1#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/2, Et0/3
10 VLAN10 active Et0/0, Et0/1
~~~ 생략 ~~~
SW2#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/2, Et0/3
10 VLAN10 active Et0/0, Et0/1
~~~ 생략 ~~~
(2) 서로 다른 Switch간 동일 VLAN 통신 확인


- SW1의 Access Mode인 포트로 Import할 때, e0/1 포트에 설정한 10번 Tag를 Frame에 추가
- SW1의 Access Mode인 포트로 Export할 때, e0/0 포트에 설정한 10번 Tag를 Frame에서 제거
- SW2의 Access Mode인 포트로 Import할 때, e0/0 포트에 설정한 10번 Tag를 Frame에 추가
- SW2의 Access Mode인 포트로 Export할 때, e0/1 포트에 설정한 10번 Tag를 Frame에서 제거


- SW2의 Access Mode인 포트로 Import할 때, e0/1 포트에 설정한 10번 Tag를 Frame에 추가
- SW2의 Access Mode인 포트로 Export할 때, e0/0 포트에 설정한 10번 Tag를 Frame에서 제거
- SW1의 Access Mode인 포트로 Import할 때, e0/0 포트에 설정한 10번 Tag를 Frame에 추가
- SW1의 Access Mode인 포트로 Export할 때, e0/1 포트에 설정한 10번 Tag를 Frame에서 제거
3) 서로 다른 Switch간 다른 VLAN 통신
(1) 서로 다른 Switch간 다른 VLAN 통신 Configuration

< SW1 : VLAN 10 생성 >
SW1(config)#vlan 10
SW1(config-vlan)#name VLAN10
< SW1 : e0/2 Access Mode 설정 >
SW1(config)#interface e0/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
< SW1 : e0/0 Access Mode 설정 >
SW1(config)#interface e0/0
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
< SW2 : VLAN 20 생성 >
SW2(config)#vlan 20
SW2(config-vlan)#name VLAN20
< SW2 : ge0/0 Access Mode 설정 >
SW2(config)#interface e0/0
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 20
< SW2 : ge0/1 Access Mode 설정 >
SW2(config)#interface e0/1
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 20
SW1#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/2, Et0/3
10 VLAN10 active Et0/0, Et0/1
~~~ 생략 ~~~
SW2#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/2, Et0/3
20 VLAN20 active Et0/0, Et0/1
~~~ 생략 ~~~
SW1#
*Sep 23 14:28:08.460: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on Ethernet0/0 (10), with SW2 Ethernet0/0 (20).
SW1#
*Sep 23 14:29:08.463: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on Ethernet0/0 (10), with SW2 Ethernet0/0 (20).
SW2#
*Sep 23 14:27:30.911: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on Ethernet0/0 (20), with SW1 Ethernet0/0 (10).
SW2#
*Sep 23 14:28:30.910: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on Ethernet0/0 (20), with SW1 Ethernet0/0 (10).
- Cisco Switch는 기본적으로 VLAN Tag 정보가 있는 CDP를 전송하므로 VLAN Mismatch Log 발생
(2) 서로 다른 Switch간 다른 VLAN 통신 확인


- SW1의 Access Mode인 포트로 Import할 때, e0/1 포트에 설정한 10번 Tag를 Frame에 추가
- SW1의 Access Mode인 포트로 Export할 때, e0/0 포트에 설정한 10번 Tag를 Frame에서 제거
- SW2의 Access Mode인 포트로 Import할 때, e0/0 포트에 설정한 20번 Tag를 Frame에 추가
- SW2의 Access Mode인 포트로 Export할 때, e0/1 포트에 설정한 20번 Tag를 Frame에서 제거


- SW2의 Access Mode인 포트로 Import할 때, e0/1 포트에 설정한 20번 Tag를 Frame에 추가
- SW2의 Access Mode인 포트로 Export할 때, e0/0 포트에 설정한 20번 Tag를 Frame에서 제거
- SW1의 Access Mode인 포트로 Import할 때, e0/0 포트에 설정한 10번 Tag를 Frame에 추가
- SW1의 Access Mode인 포트로 Export할 때, e0/1 포트에 설정한 10번 Tag를 Frame에서 제거
'Network > VLAN' 카테고리의 다른 글
SVI Configuration(Cisco IOL) (0) | 2025.01.23 |
---|---|
Inter-VLAN Configuration(Cisco IOL) (0) | 2025.01.21 |
Native VLAN Configuration(Cisco IOL) (0) | 2025.01.19 |
Trunk Mode Configuration(Cisco IOL) (0) | 2025.01.17 |
IRB Configuration(Juniper vMX) (0) | 2025.01.13 |
Inter-VLAN Configuration(Juniper vMX) (0) | 2025.01.11 |
Native VLAN Configuration(Juniper vMX) (0) | 2025.01.09 |
Trunk Mode Configuration(Juniper vMX) (0) | 2025.01.07 |