|

- 社区积分
- 349
- 技术积分
- 1193
- 阅读权限
- 40
- 注册时间
- 2007-6-27
|
楼主
发表于 2008-4-8 02:17
| 只看该作者
VTP协议实验详细配置步骤
1.实验拓扑图如下所示:

2.建立如图环境,测试A 、B 、C 、D 的连通性。
3.配置F0/11 和F/0/12为通道,验证配置,查看是否正常。
4.配置VTP 域,域名为CISCO ,密码为xxx ,Sw1 为服务器,SW2 为客户机。
查看关键信息。
5.在SW1 上建立vlan2 包含A ,建立vlan3 包含B.
6. 在SW2 上查看是否已有vlan2 、vlan3.如果没有,给出解决方法。是否可以人工建立vlan4 、vlan5 ,同样vlan2 包含C ,建立vlan3 包含D.测试AC、BD的连通性。
7.启用修剪,验证配置。
8.在中继中去除vlan3 的修剪,查看配置并说明修剪意义。
步骤1
删除交换机配置和vlan.dat文件并重启设备,按照实验拓扑图连接实验的线缆。
switch#del flash:vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]
switch#erase startup-config
Erasing the nvram filesystem will remove all files! Continue? [confirm]
[OK]
Erase of nvram: complete
switch#reload
步骤2
给各个交换机命名.
switch>enable
switch#config t
switch(config)# hostname sw1
sw1(config)#
步骤3
测试连通性,结果如下所示:
在A上用ping命令测试和B的连通性:
C:\Documents and Settings\Administrator>ping 1.1.1.4
Pinging 1.1.1.4 with 32 bytes of data:
Reply from 1.1.1.4: bytes=32 time<10ms TTL=128
Reply from 1.1.1.4: bytes=32 time<10ms TTL=128
在A上用ping命令测试和C的连通性:
C:\Documents and Settings\Administrator>ping 1.1.1.1
Pinging 1.1.1.1 with 32 bytes of data:
Reply from 1.1.1.1: bytes=32 time<10ms TTL=128
Reply from 1.1.1.1: bytes=32 time<10ms TTL=128
在A上用ping命令测试和D的连通性:
C:\Documents and Settings\Administrator>ping 1.1.1.2
Pinging 1.1.1.2 with 32 bytes of data:
Reply from 1.1.1.2: bytes=32 time<10ms TTL=128
Reply from 1.1.1.2: bytes=32 time<10ms TTL=128
这里连通由于2950交换机默认是中继,不做详细介绍:
步骤4
配置SW1将FA0/11、和0/12端口组合为一个逻辑信道:
sw1(config)#interface range fastethernet0/11 - 12
sw1(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel 1
配置SW2将FA0/11、和0/12端口组合为一个逻辑信道:
sw2(config)#interface range fastethernet0/11 - 12
sw2(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel 1
sw2(config-if-range)#
使用show etherchannel summary命令检查快速以太通道连接:
sw1#show etherchannel 1 summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
u - unsuitable for bundling
U - in use f - failed to allocate aggregator
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) - Fa0/11(Pd) Fa0/12(P)
sw2#show etherchannel 1 summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
u - unsuitable for bundling
U - in use f - failed to allocate aggregator
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) - Fa0/11(Pd) Fa0/12(P)
步骤5
在SW1上配置VTP域CISCO并创建名为VLAN 10和VLAN 20的VLAN。2950交换机默认是VTP服务器模式,所以你不需要配置它。然而,如果需要的话,配置模式中启用服务器的命令是vtp mode server:
sw1(config)#vtp mode server
Device mode already VTP SERVER.
sw1(config)#vtp domain cisco
Changing VTP domain name from NULL to cisco
sw1(config)#vtp password xxx
Setting device VLAN database password to xxx
sw1(config)#
配置SW2作为VTP客户
sw2(config)#vtp mode client
Setting device to VTP CLIENT mode.
sw2(config)#vtp domain cisco
Domain name already set to cisco.
sw2(config)#
使用show vtp status命令检查VTP重要信息:
sw1#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 64
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x8C 0xE8 0x23 0x13 0xC9 0xD9 0x1C 0xEA
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
sw1#
使用show vtp counters命令检查VTP发送和接收的通告请求,汇总通告,子网通告和加入消息的条目,以及检测到的配置错误。
sw1#show vtp counters
VTP statistics:
Summary advertisements received : 2
Subset advertisements received : 1
Request advertisements received : 1
Summary advertisements transmitted : 2
Subset advertisements transmitted : 2
Request advertisements transmitted : 0
Number of config revision errors : 1
Number of config digest errors : 0
Number of V1 summary errors : 0
VTP pruning statistics:
Trunk Join Transmitted Join Received Summary advts received from
non-pruning-capable device
---------------- ---------------- ---------------- ---------------------------
Po1 0 1 0
sw1#
sw2#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 64
Number of existing VLANs : 5
VTP Operating Mode : Client
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x57 0x30 0x6D 0x7A 0x76 0x12 0x7B 0x40
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
sw2#
sw2#show vtp counters
VTP statistics:
Summary advertisements received : 4
Subset advertisements received : 3
Request advertisements received : 0
Summary advertisements transmitted : 2
Subset advertisements transmitted : 1
Request advertisements transmitted : 2
Number of config revision errors : 0
Number of config digest errors : 2
Number of V1 summary errors : 0
VTP pruning statistics:
Trunk Join Transmitted Join Received Summary advts received from
non-pruning-capable device
---------------- ---------------- ---------------- ---------------------------
Po1 1 0 0 |
|