뭉게뭉게 엔지니어

VLAN_Sub interface 설정 본문

☁ 실습 해보기/Packet Tracer

VLAN_Sub interface 설정

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

1. sub interface 설정
R1(config)#int f0/0
R1(config-if)#no shutdown
R1(config)#int f0/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 192.168.10.254 255.255.255.0
R1(config)#int f0/0.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 192.168.20.254 255.255.255.0

2. 확인
VLAN10_192]
C:\>ping 192.168.10.254 >  X 

3.스위치 상태 : access port mode 
Switch#sh int f0/24 switchport 
Name: Fa0/24
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access

4. trunk port mode 로 전환 , vlan 10,20 을 추가
SW1(config)#int f0/24
SW1(config-if)#switchport mode trunk 
SW1(config-if)#switchport trunk allowed vlan 10,20

5. 확인
VLAN10_192]
C:\>ping 192.168.10.254 

VLAN20_192]
C:\>ping 192.168.20.254 

VLAN10_192]에서 VLAN20_192]
C:\>ping 192.168.20.254
C:\>ping 192.168.20.192

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

Redistritbuted  (0) 2022.06.23
Routed port를 이용한 InterVLAN  (0) 2022.06.16
VLAN_Native LAN 실습  (0) 2022.06.16
OSPF_Multi Area 실습  (0) 2022.06.16
Static Routing & Default Routing & RIP 실습  (0) 2022.06.15
Comments