Lab 4.2: (5) Khảo sát tình huống Native VLAN Mismatch trên đường Trunk

By , 0 View

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.254
Checking for duplicate address...
PC1 : 172.16.20.4 255.255.255.0 gateway 172.16.20.254

PC4> 

PC4> ping 172.16.20.254

84 bytes from 172.16.20.254 icmp_seq=1 ttl=255 time=0.302 ms
84 bytes from 172.16.20.254 icmp_seq=2 ttl=255 time=0.366 ms
84 bytes from 172.16.20.254 icmp_seq=3 ttl=255 time=0.412 ms
84 bytes from 172.16.20.254 icmp_seq=4 ttl=255 time=0.406 ms
84 bytes from 172.16.20.254 icmp_seq=5 ttl=255 time=0.467 ms

PC4> 

- Hiệu chỉnh Native VLAN trên DS1.
DS1(config)#interface e1/0
DS1(config-if)#switchport trunk native vlan 20
DS1(config-if)#end
DS1#

DS1#show interface trunk

Port        Mode             Encapsulation  Status        Native vlan
Et0/0       on               802.1q         trunking      1
Et1/0       on               802.1q         trunking      20

Port        Vlans allowed on trunk
Et0/0       1-4094
Et1/0       1-4094

Port        Vlans allowed and active in management domain
Et0/0       1,10,20
Et1/0       1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Et0/0       1,10,20
Et1/0       1,10,20
DS1#

- Hiệu chỉnh Native VLAN trên AS1.
AS1(config)#interface e0/0
AS1(config-if)#switchport trunk native vlan 20
AS1(config-if)#end
AS1#

AS1#show interface trunk

Port        Mode             Encapsulation  Status        Native vlan
Et0/0       on               802.1q         trunking      20

Port        Vlans allowed on trunk
Et0/0       1-4094

Port        Vlans allowed and active in management domain
Et0/0       1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Et0/0       1,10,20
AS1#

- 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.254
Checking for duplicate address...
PC1 : 172.16.20.4 255.255.255.0 gateway 172.16.20.254

PC4> 

PC4> ping 172.16.20.254

84 bytes from 172.16.20.254 icmp_seq=1 ttl=255 time=0.300 ms
84 bytes from 172.16.20.254 icmp_seq=2 ttl=255 time=0.464 ms
84 bytes from 172.16.20.254 icmp_seq=3 ttl=255 time=0.409 ms
84 bytes from 172.16.20.254 icmp_seq=4 ttl=255 time=0.457 ms
84 bytes from 172.16.20.254 icmp_seq=5 ttl=255 time=0.403 ms

PC4> 

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>enable
DS1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
DS1(config)#interface e1/0
DS1(config-if)#switchport trunk native vlan 1
DS1(config-if)#end
DS1#

- Hiệu chỉnh Native VLAN 20 trên interface trunk e0/0 của AS1.
AS1>enable
AS1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
AS1(config)#interface e0/0
AS1(config-if)#switchport trunk native vlan 20
AS1(config-if)#end
AS1#

- 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.254
Checking for duplicate address...
PC1 : 172.16.1.4 255.255.255.0 gateway 172.16.1.254

PC4> 

PC4> ping 172.16.1.254

84 bytes from 172.16.1.254 icmp_seq=1 ttl=255 time=0.379 ms
84 bytes from 172.16.1.254 icmp_seq=2 ttl=255 time=0.393 ms
84 bytes from 172.16.1.254 icmp_seq=3 ttl=255 time=0.389 ms
84 bytes from 172.16.1.254 icmp_seq=4 ttl=255 time=0.425 ms
84 bytes from 172.16.1.254 icmp_seq=5 ttl=255 time=0.394 ms

PC4> 

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. 

You Might Also Like

0 comments