问题 填空题

某单位新购近一台Cisco两层交换机2950,其配置过程:
第一步,准备安装与调试所需的设备,主要包括Cisco 2950交换机、RJ45直通线,RJ45转9针串口转 换器、计算机。
第二步,硬件连接,RJ45直通线一头插入Cisc02950的console口,另一头接RJ45转9针串口转换器,再将转换器接到计算机的串口。
第三步,交换机加电,在计算机上调用WINDOWS XP下的超级终端程序,配置设备连接参数,如图5-1,以便进入Cisco设备的虚拟操作台。
[*]
第四步,输入Cisco 2950的IOS配置命令。配置过程如下:
Switch>
Switch>enable
Switch#config terminal
Switch(config)#

enable secret cisco2006

(1)
Switch(config)#hostname Switch1
Switch1(config)#

ip default-gateway 192.168.1.1

(2)
Switch1(config)#interface vlan 1
Switch1(config-if)#ip address 192.168.1.23 255.255.255.0
Switch1(config-if)#

management

(3)
Switch1(config-if)#end
Switch1(config)#vlan database
Switch1(config-vlan)#

vtp mode server

(4)
Switch1(config-vlan)#

vtp domain ABC

(5)
Switch1(config-vlan)#

vtp pruning

(6)
Switch1(config-vlan)#end
Switch1#

show vtp status

(7)
Switch1#config terminal
Switch1(config)#interface gb0/1
Switch1(config-if)#switchport mode trunk (8)
Switch1(config-if)#switchport trunk encap dotlq (9)
Switch1(conflg-if)#end
Switch1#

copy run start

(10)
第五步,将调试完毕的设备连入网络,通过PC机验证配置是否正确。

请解释第四步中部分配置命令的含义。

答案

参考答案:(1)设置enable加密口令为Cisc02006 (2)设置默认网关地址为192.168.1.1
(3)设置该VLAN 1为管理VLAN (4)设置VTP工作模式为服务器模式
(5)设置VTP域名为ABC (6)启用VTP剪裁功能
(7)查看VTP设置信息 (8)将当前端口设置为trunk(干道)模式
(9)设置trunk中数据帧的封装形式为dotlq
(10)将配置写入非易失性RAM(NVRAM)中,否则下次启动时配置参数将丢失

填空题
填空题