Mục tiêu thực hành:
- Định nghĩa danh sách VLAN được phép trung chuyển trên đường trunk của Cisco Switch.
- Kiểm tra danh sách các VLAN được phép trung chuyển trên đường trunk của Cisco Switch.
- Khảo sát quá trình Filter các VLAN được phép trung chuyển trên đường trunk.
Truy cập vào "Lab 4-2 - Dinh nghia VLAN duoc phep trung chuyen tren duong Trunk v1" tại Public Unetlab Server 24/7 để thực hành.
Định nghĩa danh sách VLAN được phép trung chuyển trên đường trunk của Cisco Switch.
Sw1>enableSw1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Sw1(config)#interface e0/0Sw1(config-if)#switchport trunk allow vlan 1,10,20Sw1(config-if)#endSw1#
Kiểm tra danh sách các VLAN được phép trung chuyển trên đường trunk của Cisco Switch.
Sw1#show interface trunkPort Mode Encapsulation Status Native vlanEt0/0 on 802.1q trunking 1Port Vlans allowed on trunkEt0/0 1,10,20Port Vlans allowed and active in management domainEt0/0 1,10,20Port Vlans in spanning tree forwarding state and not prunedEt0/0 1,10,20Sw1#
Khảo sát quá trình Filter các VLAN được phép trung chuyển trên đường trunk.
- Trước khi giới hạn VLAN 20 được phép trung chuyển qua đường trunk trên interface e0/0 của Cisco Switch.
PC2> ip 172.16.20.1/24 172.16.20.254Checking for duplicate address...PC1 : 172.16.20.1 255.255.255.0 gateway 172.16.20.254PC2>
PC2> ping 172.16.20.25484 bytes from 172.16.20.254 icmp_seq=1 ttl=255 time=0.285 ms84 bytes from 172.16.20.254 icmp_seq=2 ttl=255 time=0.328 ms84 bytes from 172.16.20.254 icmp_seq=3 ttl=255 time=0.362 ms84 bytes from 172.16.20.254 icmp_seq=4 ttl=255 time=0.338 ms84 bytes from 172.16.20.254 icmp_seq=5 ttl=255 time=0.344 msPC2>
- Sau khi giới hạn VLAN 20 được phép trung chuyển qua đường trunk trên interface e0/0 của Cisco Switch.
Sw1>enableSw1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Sw1(config)#interface e0/0Sw1(config-if)#switchport trunk allowed vlan ?WORD VLAN IDs of the allowed VLANs when this port is in trunking modeadd add VLANs to the current listall all VLANsexcept all VLANs except the followingnone no VLANsremove remove VLANs from the current listSw1(config-if)#switchport trunk allowed vlan remove 20Sw1(config-if)#endSw1#
Sw1#show interfaces trunkPort Mode Encapsulation Status Native vlanEt0/0 on 802.1q trunking 1Port Vlans allowed on trunkEt0/0 1,10Port Vlans allowed and active in management domainEt0/0 1,10Port Vlans in spanning tree forwarding state and not prunedEt0/0 1,10Sw1#
PC2> ip 172.16.20.1/24 172.16.20.254Checking for duplicate address...PC1 : 172.16.20.1 255.255.255.0 gateway 172.16.20.254
PC2> ping 172.16.20.254host (172.16.20.254) not reachablePC2>
Tham khảo các videos lý thuyết Hướng dẫn thực hành CCNA R&S để biết thêm thông tin chi tiết.
0 comments