打印

配置VTP域

配置VTP域

实验目的
通过本节练习,掌握完整VTP域的配置方法。
实验需要的知识点

VTPVLAN干道协议,是Cisco私有协议。VTP定义了管理域,管理域是实行同样的管理控制的交换机集合。一台交换机可以只是一个VTP域的成员,并且VTP域中的所有交换机共享同一个VLAN数据库VLAN数据库可以集中配置,并由VTPVLAN信息分发给VTP域中的所有其他交换机。
VTP域中的每一台交换机都配置了一种VTP模式,下面列出了交换机可以配置的VTP模式:
Server服务),被配置为VTP服务器的交换机能够在VTP域中共享的VLAN数据库中添加、删除VLAN
Client(客户端),TP客户端可以读取VLAN数据库,但是不能修改或删除VLAN
Transparent(透明模式),在透明模式下交换机实际上并没有加入到VTP域中而只是将接受的VTP消息转发给其他交换机,以确保连接到交换机的其他VTP服务器和客户端接受到这些消息。
Off,交换机不加入到任何VTP中。
实验拓扑



实验步骤

1、给交换机分别命名主机名。例如:交换机ASwitch1
在全局模式下使用指令的关键字:hostname name
2、给交换机配置密码。进入特权模式的密码cisco
在全局模式下使用指令的关键字:enable password password
1、
在四台交换机上配置VTP域,域名是VTP01
在全局模式下使用指令的关键字:vtp domain name

vtp mode {server|client|transparent}

2、
在交换机连接的各个接口封装TRUNK
在接口模式下使用指令的关键字:switchport trunk encapsulation {isl|dot1q}

switchport mode trunk


switchport {on|off|desirable|auto|nonegotiage}

3、
在交换机A上创建VLAN
在全局模式下使用指令的关键字:vlan vlan-id
vlan-config模式下使用指令的关键字:name name
七、 检测
八、标准配置

Server


Client


Fa0/10


Fa0/10


Fa0/1


Fa0/2


Fa0/3


Fa0/4



S1:
S1#vl da
S1(vlan)#vtp domain ser
Changing VTP domain from NULL to main
S1(vlan)#vtp client
S1(vlan)#exit
APPLY completed.
Exiting....
S1#con t
Enter configuration commands, one per line.
End with CNTL/Z.

Switch(config-if)#int fa0/1
Switch(config-if)#sw access vl 2
Switch(config-if)#switchport mode access
Switch(config-if)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#sw access vl 2
Switch(config-if)#int fa0/3
Switch(config-if)#sw access vl 3
Switch(config-if)#switchport mode access
Switch(config-if)#int fa0/4
Switch(config-if)#sw access vl 3
Switch(config-if)#switchport mode access
S1(config)#int fa0/10
S1(config-if)#Sw mode access
S1(config-if)#Sw mode tr
S1(config-if)#no s
S1(config-if)#exit
S1(config)#exit
S1#sh ru

S2:
Switch>en
Switch#vl da
Switch(vlan)#vtp domain ser
Changing VTP domain from NULL to main
Switch(vlan)#vtp client
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#con t
Enter configuration commands, one per line.
End with CNTL/Z.

Switch(config)#int fa0/10
Switch(config-if)#switchport mode tr
Switch(config-if)#no s

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-8-29 10:17 京ICP证060528 号

Designed By 17DST