VTP configuration of Cisco Packer Trace

Source: Internet
Author: User
Tags deprecated

VTP understands:

In a switched network with multiple switches, the same VLAN is typically configured on multiple switches, and the same configuration is made for multiple interfaces. For the need to do the same configuration of multiple interfaces, through the fast interface configuration, can be easily implemented, improve productivity. For the same VLAN configuration on multiple switches, it is implemented via VTP.

VTP in order to configure the same VLAN on multiple switches, through the VLAN of one switch to the other switch propagation method to complete, the other switch after receiving VLAN information, and then update their own VLAN database to achieve synchronization.

To send their VLAN information to the network, the switch must be configured with both Trunk,ieee 802.1Q and ISL support, and the switch connected through the trunk can receive VLAN information from the other side. VTP manages the switches in the network through the domain, and the VLAN information emitted by any switch can only be propagated within one domain, and only switches of the same domain can receive this VLAN information and update their own VLAN database based on the VLAN information received. Whether the switch is in the same domain is distinguished by a domain name, such as the domain name CCIE and the domain name CCIE belong to the same domain, and the domain name CCIE and the domain name Cisco belong to a different domain. The domain name of the default switch is empty, but the most important thing to remember is that if your own domain is empty, then it is the same as any non-empty domain name, that is, if the other party has a domain name, but no domain name, then he and the other belong to the same domain.

The experimental environment is as follows:

650) this.width=650; VTP configuration of "alt=" Cisco Packer Trace-Ibm.chick-mingkang.zhou "src=" http://img2.ph.126.net/RUsFyR3bT6 Cjdwrnwr4qvq==/648236871382516529.png "style=" border:0px;height:auto;margin:0px 10px 0px 0px; "/>

Purpose of implementation:

1. Configure the VTP Server on the CORESW core three-layer switch and create the VLAN2 \ VLAN3 and assign IP segments: 192.168.2.0 \ 192.168.3.0.

2. Configure the VTP CLIENT on the SW1 and SW2 switches and divide the port F0/3 of each switch into VLAN2 and F0/4 into VLAN3.

3. Set the IP addresses of each PC as follows:

PC0:192.168.2.2/24 Gateway: 192.168.2.1

PC1:192.168.3.2/24 Gateway: 192.168.3.1

PC2:192.168.2.3/24 Gateway: 192.168.2.1

PC3:192.168.3.3/24 Gateway: 192.168.3.1

4, enable the routing function on the CORESW switch, and configure the routing Exchange protocol, so that the data of each VLAN interoperability.

5. Test whether the data between each VLAN is interoperable.

Experimental steps: (Follow the steps to achieve the goal)

1. Configure the VTP Server on the CORESW core three-layer switch and create the VLAN2 \ VLAN3 and assign IP segments: 192.168.2.0 \ 192.168.3.0.

Switch>

Switch>enable

Switch#conf T

Enter configuration commands, one per line. End with cntl/z.

Switch (config) #hostname coresw

Coresw (config) #exit

coresw#

%sys-5-config_i:configured from console by console

Coresw#vlan Database

% Warning:it are recommended to configure VLANs from config mode,

As VLAN database mode is being deprecated. Please consult user

documentation for configuring Vtp/vlan in config mode.

CORESW (VLAN) #vtp domain Senya

Domain name already set to Senya.

CORESW (VLAN) #vtp server

Device mode already VTP SERVER.

CORESW (VLAN) #exit

APPLY completed.

Exiting ....

coresw#

Coresw#conf T

Enter configuration commands, one per line. End with cntl/z.

Coresw (config) #int FA0/1

CORESW (config-if) #switchport trunk Encapsulation dot1q

CORESW (config-if) #switchport mode trunk

CORESW (config-if) #

%lineproto-5-updown:line protocol on Interface FASTETHERNET0/1, changed

%lineproto-5-updown:line protocol on Interface FASTETHERNET0/1, changed

CORESW (config-if) #exit

Coresw (config) #int FA0/2

CORESW (config-if) #switchport trunk Encapsulation dot1q

CORESW (config-if) #switchport mode trunk

CORESW (config-if) #

%lineproto-5-updown:line protocol on Interface FASTETHERNET0/2, changed

%lineproto-5-updown:line protocol on Interface FASTETHERNET0/2, changed

Coresw (config) #int VLAN 2

CORESW (config-if) #ip add 192.168.2.1 255.255.255.0

CORESW (config-if) #no shutdown

CORESW (config-if) #exit

Coresw (config) #int VLAN 3

CORESW (config-if) #ip add 192.168.3.1 255.255.255.0

CORESW (config-if) #no shutdown

2. Configure the VTP CLIENT on the SW1 and SW2 switches and divide the port F0/3 of each switch into VLAN2 and F0/4 into VLAN3.

SW1:

Switch>enable

Switch#conf T

Enter configuration commands, one per line. End with cntl/z.

Switch (config) #hostname SW1

SW1 (config) #exit

sw1#

%sys-5-config_i:configured from console by console

sw1#

Sw1#vlan Database

% Warning:it are recommended to configure VLANs from config mode,

As VLAN database mode is being deprecated. Please consult user

documentation for configuring Vtp/vlan in config mode.

SW1 (VLAN) #vtp domain Senya

Domain name already set to Senya.

SW1 (VLAN) #vtp client

Device mode already VTP CLIENT.

SW1 (VLAN) #exit

APPLY completed.

Exiting ....

Sw1#show VLAN

VLAN Name Status Ports

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

1 Default Active FA0/2, FA0/3, FA0/4, FA0/5

FA0/6, FA0/7, FA0/8, FA0/9

FA0/10, FA0/11, FA0/12, FA0/13

FA0/14, FA0/15, FA0/16, FA0/17

FA0/18, Fa0/19, FA0/20, FA0/21

FA0/22, FA0/23, FA0/24, GIG1/1

Gig1/2

2 VLAN0002 Active

3 VLAN0003 Active

4 VLAN0004 Active

SW1 (config) #int FA0/3

SW1 (config-if) #switchport mode access

SW1 (config-if) #switchport Access VLAN 2

SW1 (config-if) #exit

SW1 (config) #int FA0/4

SW1 (config-if) #switchport mode access

SW1 (config-if) #switchport Access VLAN 3

SW2: (omitted from the same procedure as SW1)

3, each PC's IP address is set as follows: (omitted)

PC0:192.168.2.2/24 Gateway: 192.168.2.1

PC1:192.168.3.2/24 Gateway: 192.168.3.1

PC2:192.168.2.3/24 Gateway: 192.168.2.1

PC3:192.168.3.3/24 Gateway: 192.168.3.1

4, enable the routing function on the CORESW switch, and configure the routing Exchange protocol, so that the data of each VLAN interoperability.

Coresw#conf T

Enter configuration commands, one per line. End with cntl/z.

Coresw (config) #ip routing

Coresw (config) #router rip

CORESW (config-router) #ver 2

CORESW (config-router) #no au

CORESW (config-router) #no auto-summary

CORESW (config-router) #net 192.168.2.0

CORESW (config-router) #net 192.168.3.0

CORESW (Config-router) #exit

5. Test whether the data between each VLAN is interoperable.

650) this.width=650; VTP configuration of "alt=" Cisco Packer Trace-Ibm.chick-mingkang.zhou "src=" Http://img2.ph.126.net/AQl1o_4OeQ Jukocqqqrzpq==/64176294707966504.jpg "style=" border:0px;height:auto;margin:0px 10px 0px 0px; "/>

Question: If I add a host in SW1 or SW2, set the IP address to 192.168.2.5, this main opportunity to ping the VLAN3 host, the result is not, and on the same switch VLAN2 host 192.168.2.2 also ping does not pass.


This article is from the "Learning Journey" blog, so be sure to keep this source http://mingkang.blog.51cto.com/9678221/1617700

VTP configuration of Cisco Packer Trace

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.