- Print
- PDF
This article describes the configuration of VLAN on switches.
CLI Configurations
At Switch1 and Switch5
Create the VLAN 2.
your product(config)# vlan 2Make interfaces as member ports of this VLAN.
your product(config-vlan)# ports gigabitethernet 0/2,0/5Set the status of VLAN 2 as active.
your product(config-vlan)# vlan active
your product(config-vlan)# exit
At Switch3, Switch4, Switch7 and Switch8
- Create the VLAN 4 and make interfaces as member ports of this VLAN.
your product(config)# vlan 4
your product(config-vlan)# ports gigabitethernet 0/2,0/3,0/4
your product(config-vlan)# vlan active
your product(config-vlan)# exit
SNMP Configurations
At Switch1 and Switch5
Create the VLAN 2. [Index: ContextID = 0, Vlan-ID = 2]
% snmp0 set {{fsDot1qVlanStaticRowStatus.0.2 createAndWait }}Make interfaces as member ports of this VLAN
[Index: ContextID = 0, Vlan-ID = 2, Interface Number = 2]
% snmp0 set {{fsDot1qVlanStaticPort.0.2.2 addTagged }}
[Index: ContextID = 0, Vlan-ID = 2, Interface Number = 5]
% snmp0 set {{fsDot1qVlanStaticPort.0.2.5 addTagged }}Set the status of VLAN 2 as active. [Index: ContextID = 0, Vlan-ID = 2]
% snmp0 set {{fsDot1qVlanStaticRowStatus.0.2 active }}
At Switch3, Switch4, Switch7 and Switch8
- Create the VLAN 4 and make interfaces as member ports of this VLAN.
[Index: ContextID = 0, Vlan-ID = 4]
% snmp0 set {{fsDot1qVlanStaticRowStatus.0.4 createAndWait }}
[Index: ContextID = 0, Vlan-ID = 4, Interface Number = 2]
% snmp0 set {{fsDot1qVlanStaticPort.0.4.2 addTagged }}
[Index: ContextID = 0, Vlan-ID = 4, Interface Number = 3]
% snmp0 set {{fsDot1qVlanStaticPort.0.4.3 addTagged }}
[Index: ContextID = 0, Vlan-ID = 4, Interface Number = 4]
% snmp0 set {{fsDot1qVlanStaticPort.0.4.4 addTagged }}
[Index: ContextID = 0, Vlan-ID = 4]
% snmp0 set {{fsDot1qVlanStaticRowStatus.0.4 active }}
© 2024 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks