Cisco three-tier + two-tier switch configuration VLAN instance

Source: Internet
Author: User
Tags config switches cisco switch

Cisco's VLAN implementations are typically port-centric. The port connected to the node will determine the VLAN on which it resides. There are two ways to assign a port to a VLAN, which is static and dynamic, respectively. The process of forming a static VLAN is the process of assigning a port to a VLAN in a mandatory manner. That is, we first set up the VLAN on the VTP (VLAN trunking Protocol) server, and then assign each port to the corresponding VLAN process. This is the most common method we use to create VLANs.

Dynamic VLAN formation is very simple, from the port to decide which VLAN they belong to. That is, we first set up a vmps (VLAN membership Policy server) VLAN Management Policy Server, which contains a text file containing the MAC address table that is mapped to the VLAN. Depending on the mapping table, the switch determines which VLAN to assign the port to. This approach has great advantages, but creating a database is a very difficult and tedious task.

Here is an example of how to implement a VLAN in a typical Fast Ethernet LAN. A typical LAN refers to a core switch with a three-layer switching function to connect several branch switches (not necessarily three-layer switching capabilities). We assume that the core switch name is: COM, branch switches are: PAR1, PAR2, PAR3 ..., respectively, through the PORT1 light module with the core switch, and assume the VLAN name is COUNTER, MARKET, Managing ...

1. Set VTP DOMAIN

is called an admin domain. All switches that Exchange VTP update information must be configured with the same admin domain. If all the switches are connected to a trunk, all the switches on the network are joined by a single admin domain on the core switch so that all the switches in the admin domain can understand each other's VLAN list.

Com#vlan database into VLAN configuration mode

COM (VLAN) #vtp domain COM settings vtp admin domain name com

COM (VLAN) #vtp Server Set switch to server mode

Par1#vlan database into VLAN configuration mode

PAR1 (VLAN) #vtp domain COM settings vtp admin domain name com

PAR1 (VLAN) #vtp client to set the switch to clients mode

Par2#vlan database into VLAN configuration mode

PAR2 (VLAN) #vtp domain COM settings vtp admin domain name com

PAR2 (VLAN) #vtp client to set the switch to clients mode

Par3#vlan database into VLAN configuration mode

PAR3 (VLAN) #vtp domain COM settings vtp admin domain name com

PAR3 (VLAN) #vtp client to set the switch to clients mode

Note: Setting the switch to server mode is to allow the creation, modification, deletion of VLANs and other configuration parameters for the entire VTP domain on this switch, and to synchronize the latest VLAN information from other switches in this VTP domain; client mode means that the switch cannot be created, deleted, Modify the VLAN configuration and not store the VLAN configuration in NVRAM, but you can synchronize the VLAN information passed by other switches in the VTP domain.

2. Configure Relay

To ensure that admin domains are able to overwrite all branch switches, relaying must be configured. The Cisco switch is capable of supporting any media as a trunk, and it can use its own ISL tags for relaying. ISL (Inter-Switch link) is a protocol between switches, between switches and routers, and between switches and servers to transfer multiple VLAN information and VLAN data streams, configured with ISL encapsulation via ports directly connected to the switch, The VLAN allocation and configuration of the entire network can be done across the switch.

On the core switch side, configure the following:

COM (config) #interface gigabitethernet 2/1

COM (config-if) #switchport

COM (config-if) #switchport trunk Encapsulation ISL

COM (config-if) #switchport mode trunk

COM (config) #interface gigabitethernet 2/2

COM (config-if) #switchport

COM (config-if) #switchport trunk Encapsulation ISL

COM (config-if) #switchport mode trunk

COM (config) #interface gigabitethernet 2/3

COM (config-if) #switchport

COM (config-if) #switchport trunk Encapsulation ISL

COM (config-if) #switchport mode trunk

On the branch switch side, configure the following:

PAR1 (config) #interface gigabitethernet 0/1

PAR1 (config-if) #switchport mode trunk

PAR2 (config) #interface gigabitethernet 0/1

PAR2 (config-if) #switchport mode trunk

PAR3 (config) #interface gigabitethernet 0/1

PAR3 (config-if) #switchport mode trunk

......

At this point, the admin domain is set to complete.

3. Create VLAN

Once the admin domain is established, the VLAN can be created.

COM (VLAN) #Vlan name COUNTER created a VLAN with a number of 10 names COUNTER

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/jhjs/

COM (VLAN) #Vlan name MARKET creates a VLAN with a number of 11 names MARKET

COM (VLAN) #Vlan name managing created a VLAN with a number of 12 names managing

......

Note that the VLAN here is built on the core switch, and it will advertise all the switches in the entire admin domain by VTP, as long as the VLAN is created on any switch on the VTP property in the admin domain. However, if you want to enter a switch port into a VLAN, you must set it on the switch that the port belongs to.

4, the switch port into the VLAN

For example, to PAR1, PAR2, PAR3 ... Port 1 of the branch switch is zoned into the Counter VLAN, Port 2 is zoned market VLAN, Port 3 is zoned managing VLAN ...

PAR1 (config) #interface fastethernet 0/1 configuration Port 1

PAR1 (config-if) #switchport Access VLAN 10 attribution counter VLAN

PAR1 (config) #interface fastethernet 0/2 configuration Port 2par1 (config-if) #switchport Access VLAN 11 Attribution Market VLAN

PAR1 (config) #interface fastethernet 0/3 configuration Port 3

PAR1 (config-if) #switchport Access VLAN 12 attribution managing VLAN

PAR2 (config) #interface fastethernet 0/1 configuration Port 1

PAR2 (config-if) #switchport Access VLAN 10 attribution counter VLAN

PAR2 (config) #interface fastethernet 0/2 configuration Port 2

PAR2 (config-if) #switchport Access VLAN 11 Attribution Market VLAN

PAR2 (config) #interface fastethernet 0/3 configuration Port 3

PAR2 (config-if) #switchport Access VLAN 12 attribution managing VLAN

PAR3 (config) #interface fastethernet 0/1 configuration Port 1

PAR3 (config-if) #switchport Access VLAN 10 attribution counter VLAN

PAR3 (config) #interface fastethernet 0/2 configuration Port 2

PAR3 (config-if) #switchport Access VLAN 11 Attribution Market VLAN

PAR3 (config) #interface fastethernet 0/3 configuration Port 3

PAR3 (config-if) #switchport Access VLAN 12 attribution managing 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.