configure terminal
vlan 2-4094
vlan active
exit
SW1#show vlan summary
Number of vlans : 4094
interface range gigabitethernet1/0/1-2
switchport mode access
switchport access vlan 10
exit
show vlan tag 10
SW1#show vlan id 10
Vlan database
-------------
Vlan ID: 10
Member Ports: gi 1/0/1, gi 1/0/2
Untagged Ports: gi 1/0/1, gi 1/0/2
Forbidden Ports: None
Name:
Status: Permanent
Egress Ethertype: 0x8100
Service Loopback Status : Disabled
interface range gigabitethernet1/0/1-2
no switchport access vlan (удалить режим работы порта Access)
switchport mode trunk
exit
Interface :gigabitethernet 1/0/1
Port Mode :Trunk
Gvrp Status :Disabled
Ingress Filtering :Enabled
Acceptable Frame Type : Admit All
802.1Q tunneling :Disabled
Ingress UnTagged VLAN : 1
Protected :Disabled
Port is member in:
VlanName Egress rule Added by
---- -------------------------------- ----------- ----------------
1 Untagged Default
2 Tagged Static
3 Tagged Static
4 Tagged Static
5 Tagged Static
6 Tagged Static
7 Tagged Static
8 Tagged Static
9 Tagged Static
10 Tagged Static
11 Tagged Static
12 Tagged Static
.
4094 Tagged Static
SW1#show vlan id 10
Vlan database
----------------------------------------------------
Vlan ID: 10
Member Ports: gi 1/0/1, gi 1/0/2
Untagged Ports: None
Forbidden Ports: None
Name:
Status: Permanent
Egress Ethertype: 0x8100
Service Loopback Status : Disabled
----------------------------------------------------
SW1#show vlan id 100
Vlan database
----------------------------------------------------
Vlan ID: 100
Member Ports: gi 1/0/1, gi 1/0/2
Untagged Ports: None
Forbidden Ports: None
Name:
Status: Permanent
Egress Ethertype: 0x8100
Service Loopback Status : Disabled
----------------------------------------------------
SW1#show vlan id 1000
Vlan database
-------------
Vlan ID: 1000
Member Ports: gi 1/0/1, gi 1/0/2
Untagged Ports: None
Forbidden Ports: None
Name:
Status: Permanent
Egress Ethertype: 0x8100
Service Loopback Status : Disabled
----------------------------------------------------
interface range gigabitethernet 1/0/1-2
switchport mode general
switchport general allowed vlan add 10,100,1000,2000,4000
switchport general allowed vlan add 20,200,1100,2100,4020 untagged
exit
SW1#show vlan id 10
Vlan database
-------------
Vlan ID: 10
Member Ports: gi 1/0/1, gi 1/0/2
Untagged Ports: None
Forbidden Ports: None
Name:
Status: Permanent
Egress Ethertype: 0x8100
Service Loopback Status : Disabled
SW1#show vlan id 100
Vlan database
-------------
VlanID: 100
Member Ports: gi 1/0/1, gi 1/0/2
Untagged Ports: None
Forbidden Ports: None
Name:
Status: Permanent
Egress Ethertype: 0x8100
Service Loopback Status : Disabled
SW1#show vlan id 1000
Vlan database
-------------
Vlan ID: 1000
Member Ports: gi 1/0/1, gi 1/0/2
Untagged Ports: None
Forbidden Ports: None
Name:
Status: Permanent
Egress Ethertype: 0x8100
Service Loopback Status : Disabled
SW1#show vlan id 4020
Vlan database
-------------
Vlan ID: 4020
Member Ports: gi 1/0/1, gi 1/0/2
Untagged Ports: gi 1/0/1, gi 1/0/2
Forbidden Ports: None
Name:
Status: Permanent
Egress Ethertype: 0x8100
Service Loopback Status : Disabled
configure terminal
vlan 10
set unicast-mac learning disable
show mac-address-table vlan 10
Vlan Mac Address Type ConnectionId Ports
---- ----------- ---- ------------- -----
Total Mac Addresses displayed: 0
delete startup-config
reload