实验报告__实验四Trunk和VTP配置.docVIP

  • 74
  • 0
  • 约4.37千字
  • 约 8页
  • 2015-09-26 发布于重庆
  • 举报
实验报告__实验四Trunk和VTP配置

实验四:Trunk和VTP配置 实验目的 掌握Trunk和VTP 工作原理 学习配置Trunk的命令和步骤 学习配置VTP命令和步骤 实验要求 拓扑与地址规划; Trunk基本配置和VTP配置 验证Trunk和VTP配置并给出配置清单 实验拓扑(可选) 实验设备(环境、软件) 交换机4台,交叉线4条,直通线2条,Pc机2台。 实验设计到的基本概念和理论 VTP即是VLAN中继协议,对于VTP在交换机之间传送VLAN信息,必须知道一面3种需求: 两台交换机的VTP管理域名必须设置一样。 其中一台交换机必须配置为VTP服务器。 不需要路由器 VTP有三种操作模式: 服务器,在VTP服务器模式下,VLAN配置保存在NVRAM中。 客户机,VLAN配置不保存在NVRAM中。 透明,在透明模式下,交换机并不参与VTP域的工作,也不与其他交换机共享其VLAN数据库,但他们仍然将通过任何已经配置好的中继链路转发VTP通告。 在网络中配置至少两台 VTP 服务器交换机。因为只有服务器交换机可以创建、删除和修改 VLAN,所以应该配置一台备用 VTP 服务器,以防主要 VTP 服务器被禁用。如果网络中的所有交换机都配置为 VTP 客户端模式,您将无法在网络中创建新的 VLAN。 在 VTP 服务器上启用 VTP 之后,再创建 VLAN。在启用 VTP 之前创建的 VLAN 会被删除。务必确保为域中互连的交换机配置了中继端口。VTP 信息仅可通过中继端口交换。 配置 VTP 客户端模式。请不要忘记,交换机默认不是 VTP 客户端模式。您必须配置该模式。 配置接入端口。当交换机处于 VTP 客户端模式时,不能添加新的 VLAN。仅可将接入端口指定到现有 VLAN。 实验过程和主要步骤 主机的IP分配情况: 主机 IP地址 子网掩码 PC0 192.168.1.1 255.255.255.0 PC1 192.168.1.2 255.255.255.0 交换机的配置情况(配置Trunk与VTP) Switch1上的配置: Switchenable Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vtp domain test Changing VTP domain name from NULL to test Switch(config)#vtp password 123456 Setting device VLAN database password to 123456 Switch(config)#interface f2/1 Switch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2/1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2/1, changed state to up Switch(config-if)#exit Switch(config)#interface f0/1 Switch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Switch(config-if)#exit Switch(config)#exit Switch# %SYS-5-CONFIG_I: Configured from console by console Switch#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Switch# Switch0上的配置 Switchenable Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#exit Swi

文档评论(0)

1亿VIP精品文档

相关文档