Cisco-vlan Configuration

Source: Internet
Author: User
Tags switches

Tag: mode command using log ENC Global relay name configuration

Switch interface type:

    1. Access: Access mode, PC via switch internet this way
    2. Trunk: Trunk mode, inter-switch connection in this way

Switch VLAN creation mode:

    1. Database configuration mode
    2. Global configuration Mode

Database configuration mode:

 - name Vlan20 (VLAN name optional) switch (VLAN) #exit

Global configuration mode:

 - switch (config-vlan) #name vlan20 (VLAN name optional) switch (config-vlan) #exit

Switch VLAN Removal method:

When configured in VLAN database configuration mode, the VLAN that needs to be deleted can be removed via switch (VLAN) #no VLAN (the ID of the specific VLAN) .

You can also delete VLANs directly in global configuration mode, such as switch (config) #no VLAN

Add the switch interface to the VLAN:

    • Adding VLANs on a per-interface basis
    • Configure multiple interfaces to join VLANs at the same time

Add VLANs one by one:

# Add interface to vlan,access mode: switch#config tswitch (config) #interface F0/1switch (config-if  ) #switchport mode accessswitch (config-if  ) #exit # Connect between switches using Trunk mode: Switch (config) # interface F0/1(interface connected to another switch) switch (config- if) #switchport Mode Trunk

Multiple interfaces are configured simultaneously:

Switch (config) #int range f0/15  switch (config-if) #switchport Mode Accessswitch (config-if)switch (config-if

To remove an interface from the VLAN:

Other VLAN commands:

    • Show VLAN Brief
    • Switch (config) #switchport trunk encapsulation{isl|dotiq|negotiate} (requires a package type to connect to different brand switches)
    • Switch (config-if) #switchport trunk allowed VLAN remove Vlan-id (relay mode does not transmit data from a VLAN)

Cisco-vlan Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.