1. Inter-VLAN Configuration 구성도
1) Inter-VLAN Configuration 구성도
2)테스트 장비
- Emulator : EVE-NG
- OS : Juniper vMX 18.2R1.9
2. Inter-VLAN Configuration
1) Inter-VLAN Configuration
< R1 : Sub-Interface 설정 >
set interfaces ge-0/0/0 description SW1
set interfaces ge-0/0/0 vlan-tagging
set interfaces ge-0/0/0 unit 10 vlan-id 10
set interfaces ge-0/0/0 unit 10 family inet address 10.0.0.1/24
set interfaces ge-0/0/0 unit 20 vlan-id 20
set interfaces ge-0/0/0 unit 20 family inet address 20.0.0.1/24
< SW1 : VLAN 10 생성 >
set bridge-domains VLAN10 description VLAN10
set bridge-domains VLAN10 vlan-id 10
< SW1 : VLAN 20 생성 >
set bridge-domains VLAN20 description VLAN20
set bridge-domains VLAN20 vlan-id 20
< SW1 : ge-0/0/0 Trunk Mode 설정 >
set interfaces ge-0/0/0 description R1
set interfaces ge-0/0/0 unit 0 family bridge interface-mode trunk
set interfaces ge-0/0/0 unit 0 family bridge vlan-id-list 10
set interfaces ge-0/0/0 unit 0 family bridge vlan-id-list 20
< SW1 : ge-0/0/1 Access Mode 설정 >
set interfaces ge-0/0/1 description PC1
set interfaces ge-0/0/1 unit 0 family bridge interface-mode access
set interfaces ge-0/0/1 unit 0 family bridge vlan-id 10
< SW1 : ge-0/0/2 Access Mode 설정 >
set interfaces ge-0/0/2 description PC2
set interfaces ge-0/0/2 unit 0 family bridge interface-mode access
set interfaces ge-0/0/2 unit 0 family bridge vlan-id 20
root@R1> show route
inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.0/24 *[Direct/0] 01:08:19
> via ge-0/0/0.10
10.0.0.1/32 *[Local/0] 01:08:19
Local via ge-0/0/0.10
20.0.0.0/24 *[Direct/0] 01:08:19
> via ge-0/0/0.20
20.0.0.1/32 *[Local/0] 01:08:19
Local via ge-0/0/0.20
root@SW1> show bridge domain
Routing instance Bridge domain VLAN ID Interfaces
default-switch VLAN10 10
ge-0/0/0.0
ge-0/0/1.0
default-switch VLAN20 20
ge-0/0/0.0
ge-0/0/2.0
- 'vlan-tagging' 명령이 없으면 'unit 0'만 생성 가능
2) Inter-VLAN 통신 확인
- SW1의 Access Mode인 포트로 Import할 때, 포트에 설정한 10번 Tag를 Frame에 추가
- SW1의 Trunk Mode인 포트로 Export할 때, 포트에 설정한 10번 Tag가 Frame에 존재하므로 Tag 유지
- R1은 Frame에 존재하는 10번 Tag가 설정된 Sub-Interface가 있는지 확인하고 D-IP가 본인 Sub-Interface가 아님을 확인하고 라우팅 테이블에서 Longest Match Rule에 의해 매칭되는 Next-Hop(OIF)으로 Sub-Interface에 설정된 VLAN 20번 Tag를 붙이고 전송
- SW1의 Trunk Mode인 포트로 Import할 때, 포트에 설정한 20번 Tag가 Frame에 존재하므로 Tag 유지
- SW1의 Access Mode인 포트로 Export할 때, 포트에 설정한 20번 Tag를 Frame에서 제거
- SW2의 Access Mode인 포트로 Import할 때, 포트에 설정한 20번 Tag를 Frame에 추가
- SW2의 Trunk Mode인 포트로 Export할 때, 포트에 설정한 20번 Tag가 Frame에 존재하므로 Tag 유지
- R1은 Frame에 존재하는 20번 Tag가 설정된 Sub-Interface가 있는지 확인하고 D-IP가 본인 Sub-Interface가 아님을 확인하고 라우팅 테이블에서 Longest Match Rule에 의해 매칭되는 Next-Hop(OIF)으로 Sub-Interface에 설정된 VLAN 10번 Tag를 붙이고 전송
- SW1의 Trunk Mode인 포트로 Import할 때, 포트에 설정한 10번 Tag가 Frame에 존재하므로 Tag 유지
- SW1의 Access Mode인 포트로 Export할 때, 포트에 설정한 10번 Tag를 Frame에서 제거
'Network > VLAN' 카테고리의 다른 글
Native VLAN Configuration(Cisco IOL) (0) | 2025.01.19 |
---|---|
Trunk Mode Configuration(Cisco IOL) (0) | 2025.01.17 |
Access Mode Configuration(Cisco IOL) (0) | 2025.01.15 |
IRB Configuration(Juniper vMX) (0) | 2025.01.13 |
Native VLAN Configuration(Juniper vMX) (0) | 2025.01.09 |
Trunk Mode Configuration(Juniper vMX) (0) | 2025.01.07 |
Access Mode Configuration(Juniper vMX) (0) | 2025.01.05 |
VTP(VLAN Trunking Protocol) (0) | 2025.01.03 |