Lab 4.2: (4) Định nghĩa VLAN được phép trung chuyển trên đường Trunk

By , 0 View

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

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 trunk

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

Port        Vlans allowed on trunk
Et0/0       1,10,20

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
Sw1#

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

PC2> 

PC2> ping 172.16.20.254

84 bytes from 172.16.20.254 icmp_seq=1 ttl=255 time=0.285 ms
84 bytes from 172.16.20.254 icmp_seq=2 ttl=255 time=0.328 ms
84 bytes from 172.16.20.254 icmp_seq=3 ttl=255 time=0.362 ms
84 bytes from 172.16.20.254 icmp_seq=4 ttl=255 time=0.338 ms
84 bytes from 172.16.20.254 icmp_seq=5 ttl=255 time=0.344 ms

PC2> 

- 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>enable
Sw1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Sw1(config)#interface e0/0
Sw1(config-if)#switchport trunk allowed vlan ?
  WORD    VLAN IDs of the allowed VLANs when this port is in trunking mode
  add     add VLANs to the current list
  all     all VLANs
  except  all VLANs except the following
  none    no VLANs
  remove  remove VLANs from the current list

Sw1(config-if)#switchport trunk allowed vlan remove 20
Sw1(config-if)#end
Sw1#

Sw1#show interfaces trunk 

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

Port        Vlans allowed on trunk
Et0/0       1,10

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

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

PC2> ip 172.16.20.1/24 172.16.20.254
Checking for duplicate address...
PC1 : 172.16.20.1 255.255.255.0 gateway 172.16.20.254

PC2> ping 172.16.20.254

host (172.16.20.254) not reachable

PC2> 

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