局域网交换(交换机三大原理.基本配置)
<1>配置命令:(config)#service password-encryption \\启用加密服务(config)#no ip domain-lookup \\关闭域名解析(config)#line con 0 \\ 进入控制台0口(config-line)#password 123\\ 设置控制台密码(config-line)#login(config-line)#exec-time 0 0 \\设置超时时间(config-line)#logging syn \\输出同步(config-line)#exit
<2>实验二: _________________ __________________ | switch1 |4__________5| switch2 | |_1______2______3_| |_6_______7______8_| / | \ / | \ / | \ / | \PC:PC1 PC2 PC3 PC4 PC5 PC6如图:要求:1》交换机基本配置。 2》配置PC1---PC6, 使用192.168.1.0/24网段内IP地址, 3》测试PC1---PC6之间是否可以互相PING通
<3>switch密码恢复(注:在实践课里会学习) a.断电重启switch后按住mode键,进监控模式 b.在提示符下输入: flash_init \\初始化Flash文件 dir flash: \\显示flash中存储的文件信息 rename \\将配置文件重命名 boot \\重新启动交换机 c.开机后,选择"N"不进入setup模式 d.修改配置文件,并保存配置. #show flash: #rename #conf t #enable secret cisco #copy running-config startup-config
具体恢复:
Cisco Catalyst 2950/3500/3550交换机密码恢复流程
一、将一台终端或装有超级终端软件的PC接到交换机的console口上。终端参数设置如下:速率:9600bps检较位:无数据位:8停止位:1流控:无二、拨掉电源三、按住前面板的mode键不放,插上电源,等3-5秒后松开mode键。你会看到如下提示:The system has been interrupted prior to initializing the flash file system.The following commands will initialize the flash file system, and finish loadingthe operating system software:
flash_initload_helperboot四、输入flash_init五、输入load _helper六、输入dir flash:注意,不要少了flash后面的冒号,屏幕出现如下提示。Directory of flash:2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-c3h2s-mz-12.1-WC5.bin4 drwx 3776 Mar 01 1993 01:23:24 html66 -rwx 130 Jan 01 1970 00:01:19 env_vars68 -rwx 1296 Mar 01 1993 06:55:51 config.text1728000 bytes total (456704 bytes free)七、输入rename flash:config.text flash:config.old八、输入boot引导系统。九、当出现如下提示时,输入N:Continue with the configuration dialog? : N十、用en进入enable状态,并将文件config.old改回config.text,命令如下:rename flash:config.old flash:config.text十一、将原配置装入内存,命令如下:2900# copy flash:config.text system:running-config十二、修改密码:2900xl#conf t2900xl(config)#no enable secret2900xl(config)#enable secret cisco2900xl(config)#exit十三、telnet到交换机上,验证密码是否修改成功十四、将配置写入nvram2900xl#write memory
以上步骤中,第十一、十二步需要特别注意,前者是为了保留配置,后者需要注意的是如果不使用no enable secret的话,新密码将不起作用。
听君一席话,省我十本书! 小手一抖,钱钱到手! 做爱做的事,交配交的人。 锻炼肌肉,防止挨揍! 怀揣两块,胸怀500万! 避孕的效果:不成功,便成“人”。
页:
[1]