VLAN 파트 2
스위치 1
Switch>en
Switch>enable
Switch#conf t
Switch(config)#vlan 50
Switch(config-vlan)#name dewi
Switch(config-vlan)#exit
Switch(config)#vlan 60
Switch(config-vlan)#name wulandari
Switch(config-vlan)#exit
Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 50
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 50
Switch(config-if)#exit
Switch#conf t
Switch(config)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 60
Switch(config-if)#exit
Switch(config)#int fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 60
Switch(config-if)#exit
Switch(config)#
Switch(config)#int fa0/5
Switch(config-if)#switchport mode trunk
Switch(config-f)#exit
스위치 2
Press RETURN to get started.
Switch>en
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 50
Switch(config-vlan)#name dewi
Switch(config-vlan)#exit
Switch(config)#vlan 60
Switch(config-vlan)#name wulandari
Switch(config-vlan)#exit
Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 50
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 50
Switch(config-if)#exit
Switch(config)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 60
Switch(config-if)#ex
Switch(config)#int fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 60
Switch(config-if)#exit
Switch(config)#
Switch>en
Switch>enable
Switch#conf t
Switch(config)#intgigabitEthernet 0/5
Switch(config-if)#switchport mode trunk
Switch(config-if)#
스위치 3
Switch>en
Switch>enable
Switch#conf t
Switch(config)#vlan 50
Switch(config-vlan)#name dewi
Switch(config-vlan)#exit
Switch(config)#vlan 60
Switch(config-vlan)#name wulandari
Switch(config-vlan)#exit
Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 50
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 50
Switch(config-if)#exit
Switch#conf t
Switch(config)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 60
Switch(config-if)#exit
Switch(config)#int fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 60
Switch(config-if)#exit
Switch(config)#
Switch(config)#int fa0/5
Switch(config-if)#switchport mode trunk
Switch(config-f)#exit
라우터 1
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>en
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gig
Router(config)#intgigabitEthernet 0/0
Router(config-if)#ip add 192.168.10.5 255.255.255.252
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#int gig
Router(config)#intgigabitEthernet 0/0
Router(config-if)#ip add 192.168.20.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int gig
Router(config)#intgigabitEthernet 0/0.50
Router(config-subif)#encapsulation dot1Q 50
Router(config-subif)#ip add 192.168.50.135 255.255.255.128
Router(config-subif)#exit
Router(config)#intgigabitEthernet 0/0.60
Router(config-subif)#
Router(config-subif)#encapsulation dot1Q 60
Router(config-subif)#ip add 192.168.60.71 255.255.255.192
Router(config-subif)#exit
Router(config)#
Reference
이 문제에 관하여(VLAN 파트 2), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/farhanr63991962/vlan-part-2-3304텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)