Vswitch virtual serial port configuration VLAN Trunk

Source: Internet
Author: User

Role of the switch serial port (Trunk:

The following two encapsulation types can be used for relay over Ethernet through the serial port of the switch:

-IEEE 802.1Q

-ISL (Inter Switch Link, Cisco private)

Procedure

Step 1: Add a VLAN to the vswitch

Switch1 # vlan database

Switch1 (vlan) # vlan 2

Switch1 (vlan) # vlan 3

Switch1 (vlan) # exit

Step 2: add the interface to the corresponding VLAN

Swital # config terminal

Switch1 (config) # interface fastEthernet 0/1

Switch1 (config-if-range) # switchport access vlan 2

Switch1 (config) # interface fastEthernet 0/2

Switch1 (config-if-range) # switchport access vlan 3

Step 3: configure the port for interconnection between vswitches as a serial port (Trunk)

Switch1 (config) # interface f0/15

Switch1 (config-if-range) # switchport mode trunk

Other commands

Remove VLAN:

Switch (config-if) # switchport trunk allowed vlan removevlan-list

Add VLAN:

Switch (config-if) # switchport trunk allowed vlan add vlan-list

View port status:

Switch # show interface f0/15 switchport

Check the list of allowed VLANs on the relay Port:

Switch # show interface-id switchport

View VLAN information:

Switch # show vlan brief

View Configuration:

Switch # show running-config

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.