Configuration of the Cisco VLAN

Source: Internet
Author: User

One VLAN (virtual local area network) configuration

To create a VLAN:

J2 (config) #vlan 100

J2 (Config-vlan) #name vlan100

J2 (Config-vlan) #vlan 99

J2 (Config-vlan) #name vlan99


To view VLANs:

J2#sh Vlan-switch


To delete a VLAN:

J2 (config) #no VLAN 99


To add a port to a VLAN:

J2 (config) #int range F1/1-12

J2 (Config-if-range) #switchport mode access

J2 (config-if-range) #switchport Access VLAN 100


View a specific VLAN

J2#show Vlan-switch ID 100


VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

vlan100 Active FA1/1, FA1/2, FA1/3, FA1/4

FA1/5, FA1/6, FA1/7, FA1/8

FA1/9, FA1/10, FA1/11, FA1/12


VLAN Type said MTU Parent ringno Bridgeno Stp brdgmode Trans1 Trans2


Second trunk: In a switched network, there are two types of links, the access link (usually belonging to a VLAN, such as the link between the host and the switch) and the trunk link (trunk: Can host multiple VLANs, implementing the same VLAN cross-switch communication)

1 Enter the interface mode and select the package type:

J2 (config) #int range F1/1, F1/3

J2 (config-if-range) #switchport trunk Encapsulation dot1q


2 Configuring the Port as Trunk

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


To add VLANs on the trunk:

J2 (config-if-range) #switchport trunk allowed VLAN add 50

J2 (config-if-range) #switchport trunk allowed VLAN add 60


To remove a VLAN from a trunk:

J2 (config-if-range) #switchport trunk allowed VLAN Remove 50


To view the interface mode:

j2#sh int F1/1 Switchport

Name:fa1/1

Switchport:enabled

Administrative Mode:trunk

Operational Mode:trunk

Administrative Trunking encapsulation:dot1q

Operational Trunking encapsulation:dot1q

Negotiation of trunking:disabled

Access Mode vlan:0 ((Inactive))

Trunking Native Mode vlan:1 (default)

Trunking VLANs enabled:1-49,51-1005

Trunking VLANs active:1,60,100

Priority for untagged frames:0

Override VLAN Tag Priority:false

Voice Vlan:none

Appliance Trust:none


Verify the trunk configuration of the interface:

j2#show int F1/1 Trunk


Port Mode encapsulation Status Native VLAN

FA1/1 on 802.1q trunking 1


Port Vlans allowed on trunk

FA1/1 1-49,51-1005


Port Vlans allowed and active in management domain

FA1/1 1,60,100


Port Vlans in Spanning tree forwarding state and not pruned

FA1/1 1,60,100


Three Ethernet channel configurations:

Premise:

    • The ports participating in the bundle belong to one VLAN, or they are all configured as trunk ports

    • All ports that participate in the bundle should have the same physical parameters, such as the same rate and duplex mode

Configuration:

J2 (config) #int range F1/3-4

J2 (Config-if-range) #channel-group 1 mode on

J2#sh EtherChannel 1 Summary

Flags:d-Down p-in port-channel

I-stand-alone s-suspended

R-layer3 S-layer2

U-in use

Group Port-channel Ports

-----+------------+-----------------------------------------------------------

1 Po1 (SD) FA1/3 (d) FA1/4 (d)


This article from "10,000 years too long, seize" blog, please be sure to keep this source http://zengwj1949.blog.51cto.com/10747365/1922218

Configuration of the Cisco VLAN

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.