您的位置首页百科知识

Cisco VTP(VLAN中继协议)的配置过程说明

Cisco VTP(VLAN中继协议)的配置过程说明

的有关信息介绍如下:

Cisco VTP(VLAN中继协议)的配置过程说明

VTP(VLAN中继协议)。VTP通过网络保持VLAN配置统一性。在系统级管理增加,删除,调整的VLAN,自动地将信息向网络中其它的交换机广播。

配置VTP:

1、核心交换机配置为vtp Server。

2、vtp domain为guanli。

Switch>en

Switch#vlan database

Switch(vlan)#vtp domain guanli

Switch(vlan)#vtp server

Device mode already VTP SERVER.

Switch(vlan)#

配置trunk链路,允许带vlan标记的以太网帧通过该链路。

Switch>en

Switch#conf t

Switch(config)#int fa0/1

Switch(config-if)#switchport mode trunk

Switch(config-if)#int fa0/2

Switch(config-if)#switchport mode trunk

Switch(config-if)#

配置汇聚层(接入层)交换机1。

Switch>en

Switch#vlan database

Switch(vlan)#vtp domain guanli

Switch(vlan)#vtp client

Switch(vlan)#

配置汇聚层(接入层)交换机2。

Switch>en

Switch#vlan database

Switch(vlan)#vtp domain guanli

Switch(vlan)#vtp client

Switch(vlan)#

配置交换机1:

Switch>

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa0/24

Switch(config-if)#switchport mode trunk

Switch(config-if)#

创建Vlan及端口划分:

Switch#conf t

Switch(config)#int fa0/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 2

Switch(config-if)#

配置计算机2与计算机3.

测试:

核心交换机:为vlan配置ip地址

Switch>

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int vlan 2

Switch(config-if)#ip address 192.168.1.1 255.255.255.0

Switch(config-if)#no shutdown

Switch(config-if)#int vlan 3

Switch(config-if)#ip address 192.168.2.1 255.255.255.0

Switch(config-if)#no shutdown

Switch(config-if)#