135
IP-COM(config-if)# switchport mode trunk
Note:
Set port 24 to a Trunk port
IP-COM(config-if)# switchport trunk native vlan 2
Note:
Set the PVID of Trunk port 24 to 2
IP-COM(config-if)# switchport trunk allowed vlan add 1,2 or 1-2
Note:
Set Trunk port to carry VLANs 1-2
IP-COM(config-if)# switchport trunk allowed vlan except 2
Note:
VLAN Set Trunk port to carry all VLANs except VLAN2
IP-COM(config-if)# switchport trunk allowed vlan remove 3
Note:
Delete VLAN3 from VLANs allowed to be carried
Delete trunk port
IP-COM(config)# interface gigabitethernet 0/24
IP-COM(config-if)# switchport mode access
Note:
Change port 24 to access port; trunk port 24 will not exist.
IP-COM(config)# interface range gigabitethernet 0/1-10
IP-COM(config-if)# switchport mode access
Note:
Change ports 1-10 to access ports; trunk ports 1-10 will not exist.
Create hybrid port
IP-COM# configure terminal
Note:
Enter configuration directory
IP-COM(config)# vlan 10
,
20
,
30
,
4094
Note:
Create VLAN10
,
VLAN20
,
VLAN30
,
VLAN4094
IP-COM(config)# interface gigabitethernet 0/10
Note:
Enter the directory of port 10
IP-COM(config-if)# switchport mode hybrid
Note:
Set port 10 to Hybrid Port
IP-COM(config-if)# switchport hybrid native vlan 20
Note:
Set the PVID of Hybrid Port 10 to 20
IP-COM(config-if)# switchport hybrid allowed vlan tagged add 10-20
Содержание G3224P
Страница 1: ......