基本VTP配置任务1:执行基本交换机配置根据以下原则配置交换机S1、S2和S3并保存配置:
按照拓扑所示配置交换机主机名
禁用DNS查找
将执行模式口令配置为class
为控制台连接配置口令cisco
为vty连接配置口令cisco
Switch>enableSwitch#configureterminalEnterconfigurationcommands,oneperline
EndwithCNTL/Z
Switch(config)#hostnameS1S1(config)#enablesecretclassS1(config)#noipdomain-lookupS1(config)#lineconsole0S1(config-line)#passwordciscoS1(config-line)#loginS1(config-line)#linevty015S1(config-line)#passwordciscoS1(config-line)#loginS1(config-line)#end%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleS1#copyrunning-configstartup-configDestinationfilename[startup-config]
Buildingconfiguration
[OK]任务2:配置主机PC上的以太网接口使用地址表中的IP地址和默认网关配置PC1、PC2、PC3、PC4、PC5和PC6的以太网接口
任务3:在交换机上配置VTP和安全功能步骤1
启用S2和S3上的用户端口
将用户端口配置为接入模式
请参阅拓扑图来确定哪些端口连接到最终用户设备
S2(config)#interfacefa0/6S2(config-if)#swit