Mục tiêu thực hành:
- Hiệu chỉnh Native VLAN 20 đồng nhất trên đường trunk kết nối giữa Switch DS1 và AS1.
- Hiệu chỉnh Natvie VLAN 1 & 20 không đồng nhất trên đường trunk kết nối giữa Switch DS1 và AS1.
Truy cập vào "Lab 4-2 - Khao sat tinh huong Native VLAN Mismatch tren duong Trunk v1" tại Public Unetlab Server 24/7 để thực hành.
Hiệu chỉnh Native VLAN 20 đồng nhất trên đường trunk kết nối giữa Switch DS1 và AS1.
- Kiểm tra kết nối tới Default Gateway 172.16.20.254 trên các thiết bị thuộc VLAN 20 trước khi hiệu chỉnh Native VLAN trên đường trunk giữa các Switch.
PC4> ip 172.16.20.4/24 172.16.20.254Checking for duplicate address...PC1 : 172.16.20.4 255.255.255.0 gateway 172.16.20.254PC4>
PC4> ping 172.16.20.25484 bytes from 172.16.20.254 icmp_seq=1 ttl=255 time=0.302 ms84 bytes from 172.16.20.254 icmp_seq=2 ttl=255 time=0.366 ms84 bytes from 172.16.20.254 icmp_seq=3 ttl=255 time=0.412 ms84 bytes from 172.16.20.254 icmp_seq=4 ttl=255 time=0.406 ms84 bytes from 172.16.20.254 icmp_seq=5 ttl=255 time=0.467 msPC4>
- Hiệu chỉnh Native VLAN trên DS1.
DS1(config)#interface e1/0DS1(config-if)#switchport trunk native vlan 20DS1(config-if)#endDS1#
DS1#show interface trunkPort Mode Encapsulation Status Native vlanEt0/0 on 802.1q trunking 1Et1/0 on 802.1q trunking 20Port Vlans allowed on trunkEt0/0 1-4094Et1/0 1-4094Port Vlans allowed and active in management domainEt0/0 1,10,20Et1/0 1,10,20Port Vlans in spanning tree forwarding state and not prunedEt0/0 1,10,20Et1/0 1,10,20DS1#
- Hiệu chỉnh Native VLAN trên AS1.
AS1(config)#interface e0/0AS1(config-if)#switchport trunk native vlan 20AS1(config-if)#endAS1#
AS1#show interface trunkPort Mode Encapsulation Status Native vlanEt0/0 on 802.1q trunking 20Port Vlans allowed on trunkEt0/0 1-4094Port Vlans allowed and active in management domainEt0/0 1,10,20Port Vlans in spanning tree forwarding state and not prunedEt0/0 1,10,20AS1#
- Kiểm tra kết nối tới Default Gateway 172.16.1.254 trên các thiết bị thuộc VLAN 20 sau khi hiệu chỉnh Native VLAN trên đường trunk giữa các Switch.
PC4> ip 172.16.20.4/24 172.16.20.254Checking for duplicate address...PC1 : 172.16.20.4 255.255.255.0 gateway 172.16.20.254PC4>
PC4> ping 172.16.20.25484 bytes from 172.16.20.254 icmp_seq=1 ttl=255 time=0.300 ms84 bytes from 172.16.20.254 icmp_seq=2 ttl=255 time=0.464 ms84 bytes from 172.16.20.254 icmp_seq=3 ttl=255 time=0.409 ms84 bytes from 172.16.20.254 icmp_seq=4 ttl=255 time=0.457 ms84 bytes from 172.16.20.254 icmp_seq=5 ttl=255 time=0.403 msPC4>
Hiệu chỉnh Native VLAN 1 & 20 không đồng nhất trên đường trunk kết nối giữa Switch DS1 và AS1.
- Hiệu chỉnh Native VLAN 1 trên interface trunk e1/0 của DS1.
DS1>enableDS1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.DS1(config)#interface e1/0DS1(config-if)#switchport trunk native vlan 1DS1(config-if)#endDS1#
- Hiệu chỉnh Native VLAN 20 trên interface trunk e0/0 của AS1.
AS1>enableAS1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.AS1(config)#interface e0/0AS1(config-if)#switchport trunk native vlan 20AS1(config-if)#endAS1#
- Lúc này các thiết bị thuộc VLAN 20 kết nối tới AS1 sẽ thuộc thành viên của VLAN 1 trên DS1 & R1.
PC4> ip 172.16.1.4/24 172.16.1.254Checking for duplicate address...PC1 : 172.16.1.4 255.255.255.0 gateway 172.16.1.254PC4>
PC4> ping 172.16.1.25484 bytes from 172.16.1.254 icmp_seq=1 ttl=255 time=0.379 ms84 bytes from 172.16.1.254 icmp_seq=2 ttl=255 time=0.393 ms84 bytes from 172.16.1.254 icmp_seq=3 ttl=255 time=0.389 ms84 bytes from 172.16.1.254 icmp_seq=4 ttl=255 time=0.425 ms84 bytes from 172.16.1.254 icmp_seq=5 ttl=255 time=0.394 msPC4>
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