Configuring VLAN on Switches
  • 27 Jun 2023
  • 1 Minute to read
  • Contributors
  • PDF

Configuring VLAN on Switches

  • PDF

Article summary

This article describes the configuration of VLAN on switches.

CLI Configurations

At Switch1 and Switch5

  • Create the VLAN 2.
    your product(config)# vlan 2

  • Make interfaces as member ports of this VLAN.
    your product(config-vlan)# ports gigabitethernet 0/2,0/5

  • Set 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



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.