基本VTP配置

基本 VTP 配置
任务 1:执行基本交换机配置
根据以下原则配置交换机 S1S2 S3 并保存配置:
按照拓扑所示配置交换机主机名。
禁用 DNS 查。
将执行模式口令配置为 class
为控制台连接配置口令 cisco
青岛大炼油vty 连接配置口令 cisco
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname S1
S1(config)#enable secret class
S1(config)#no ip domain-lookup
S1(config)#line console 0
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#end
%SYS-5-CONFIG_I: Configured from console by console
S1#copy running-config startup-config
Destination filename [startup-config]?
[OK]任务 2:配置主机 PC 上的以太网接口
使用地址表中的 IP 地址和默认网关配置 PC1PC2PC3PC4PC5 PC6 的以太网接口。

任务 3:在交换机上配置 VTP 和安全 功能
步骤 1. 启用 S2 S3 上的用户端口
将用户端口配置为接入模式。请参阅拓扑图来确定哪些端口连接到最终用户设备。
S2(config)#interface fa0/6
S2(config-if)#switchport mode access
S2(config-if)#no shutdown
S2(config-if)#interface fa0/11
S2(config-if)#switchport mode access
S2(config-if)#no shutdown
S2(config-if)#interface fa0/18
S2(config-if)#switchport mode access
S2(config-if)#no shutdown
步骤 2. 检查三台交换机上的当前 VTP 配置。
使用 show vtp status 命令确定所有三台交换机的 VTP 工作模式。
步骤 3. 在所有三台交换机上配置工作模式、域名和 VTP 口令。
在三台交换机上,全部将 VTP 域名设置为 Lab4VTP 口令设置为 cisco。将 S1 配置为服务器模式,S2
配置为客户端模式,S3 配置为透明模式。
S1(config)#vtp mode server
Device mode already VTP SERVER.
S1(config)#vtp domain Lab4
Changing VTP domain name from NULL to Lab4
S1(config)#vtp password cisco
Setting device VLAN database password to cisco
S1(config)#end
S2(config)#vtp mode client
Setting device to VTP CLIENT mode
S2(config)#vtp domain Lab4
Changing VTP domain name from NULL to Lab4
S2(config)#vtp password cisco
Setting device VLAN database password to cisco
S2(config)#end
S3(config)#vtp mode transparent
Setting device to VTP TRANSPARENT mode.
S3(config)#vtp domain Lab4
Changing VTP domain name from NULL to Lab4
S3(config)#vtp password cisco
Setting device VLAN database password to cisco 细胞膜的渗透性
S3(config)#end
步骤 4. 为所有三台交换机上的中继端口配置中继和本征 VLAN
在所有交换机上,为 FastEthernet 接口 0/1-5 配置中继和本征 VLAN。以下仅提供了每台交换机的 fa0/1
口的配置命令。
S1(config)#interface fa0/1
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk native vlan 99
S1(config-if)#no shutdown
S1(config-if)#interface fa0/2
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk native vlan 99
S1(config-if)#no shutdown
S1(config-if)#end
S2(config)#interface fa0/1
S2(config-if)#switchport mode trunk
S2(config-if)#switchport trunk native vlan 99
S2(config-if)#no shutdown
S2(config-if)#end
S3(config)#interface fa0/2
S3(config-if)#switchport mode trunk
S3(config-if)#switchport trunk native vlan 99
S3(config-if)#no shutdown
S3(config-if)#end
步骤 5. S2 S3 接入层交换机上配置端口安全功能。
配置端口 fa0/6fa0/11 fa0/18,使它们只支持一台主机,并且动态获知该主机的 MAC 地址。
S2(config)#interface fa0/6
纽虫S2(config-if)#switchport port-security
S2(config-if)#switchport port-security maximum 1
S2(config-if)#switchport port-security mac-address sticky
S2(config-if)#interface fa0/11
S2(config-if)#switchport port-security
S2(config-if)#switchport port-security maximum 1
S2(config-if)#switchport port-security mac-address sticky
S2(config-if)#interface fa0/18
S2(config-if)#switchport port-security
S2(config-if)#switchport port-security maximum 1
S2(config-if)#switchport port-security mac-address sticky
S2(config-if)#唐成良end
S3(config)#interface fa0/6
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security maximum 1
S3(config-if)#switchport port-security mac-address sticky
S3(config-if)#interface fa0/11
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security maximum 1
S3(config-if)#switchport port-security mac-address sticky
S3(config-if)#interface fa0/18
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security maximum 1
S3(config-if)#switchport port-security mac-address sticky
龚琪
S3(config-if)#end
步骤 6. VTP 服务器上配置 VLAN
本实验需要四个 VLAN
VLAN 99 (management)对别人的尊称
VLAN 10 (faculty/staff)
VLAN 20 (students)
VLAN 30 (guest)
VTP 服务器上配置这些 VLANPacket Tracer 评分时会区分大小写。
S1(config)#vlan 99

本文发布于:2024-09-22 10:25:21,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/44865.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

下一篇:VTP 实验报告
标签:配置   交换机   模式   端口   口令   连接
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议