cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a VLAN

Yarenis
Moderator
Moderator

! Management VLAN configuration.

SCH-ACCESS-101(config)# vlan 10 by port
SCH-ACCESS-101(config-vlan-10)# untag ethernet 1/1/1 to 1/1/4
SCH-ACCESS-101(config-vlan-10)# management-vlan
SCH-ACCESS-101(config-vlan-10)# default-gateway 10.10.10.1 1
SCH-ACCESS-101(config-vlan-10)# default-gateway 10.20.20.1 
2

! User VLAN configuration.

SCH-ACCESS-101(config)# vlan 1011
SCH-ACCESS-101(config-vlan-1011)# tagged ethernet 1/1/13 to 1/1/17 ethernet 1/2/2 ethernet 1/2/4 ethernet 2/2/2 ethernet 2/2/4
SCH-ACCESS-101(config-vlan-1011)# untagged ethernet 1/1/12
SCH-ACCESS-101# show vlan 1011
Total PORT-VLAN entries: 14
Maximum PORT-VLAN entries: 64
Legend: [Stk=Stack-Id, S=Slot]
PORT-VLAN 1011, Name data_vlan, Priority level0, Spanning tree On
Untagged Ports: (U1/M1) 12
Tagged Ports: (U1/M1) 13 14 15 16 17
Tagged Ports: (U1/M2) 2 4
Tagged Ports: (U2/M2) 2 4
Uplink Ports: None
DualMode Ports: None
Mac-Vlan Ports: None
Monitoring: Disabled

! Multiple VLANs applied to a single port.

Device(config)#vlan 2 3 5 6 9 12
Device(config-mvlan-2*12)#tagged ethernet 1/1/1
Device(config-mvlan-1*12)#show vlan brief ethernet 1/1/1

Port 1/1/1 is a member of 6 VLANs
VLANs 1 3 5 to 6 9 12
Untagged VLAN   : 1
Tagged   VLANs  : 3 5 to 6 9 12

0 REPLIES 0