VLANs
Creating VLANs
2016-01# configure
2016-01(config)# vlan database
2016-01(config-vlan)#
default-vlan default vlan
do execute an EXEC-level command
end Exit from configure mode
exit Exit from current context
no Negate command
vlan Create a new VLAN
2016-01(config-vlan)# vlan 991
2016-01(config-vlan)# end
2016-01# show vlan
Vlan Name Ports Type Authorization
— ---— -----— --— ---
1 1 g(1-4,8-12,16),ch(1-8) other Required
2 office_net g(5-8,13-15) permanent Required
991 991 permanent Required
Assigning Ports to VLANs
In the following example I assign interfaces g5, g6 and g7 to vlan 2.
2016-01# configure
2016-01(config)# interface range ethernet g5-7
2016-01(config-if)# switchport access vlan 2
2016-01(config-if)# end2016-01# show interfaces switchport ethernet g5
Port : g5
Port Mode: Access
Gvrp Status: disabled
Ingress Filtering: true
Acceptable Frame Type: admitAll
Ingress UnTagged VLAN ( NATIVE ): 2
Protected: Disabled
Port is member in:Vlan Name Egress rule Port Membership Type
— ------— --- ----—
2 office_net Untagged Static
Forbidden VLANS:Vlan Name
— ------——
Classification rules:





