文档详情

1、交换机基本配置.ppt

发布:2017-10-12约字共11页下载文档
文本预览下载声明
实验拓扑 实验任务 为交换机设置主机名 S1(config)#hostname s1 为交换机设置IP地址 192.168.1.100 255.255.255.0 为PC机设置相同网段地址192.168.1.X 为交换机设置密码为ccna 保存并查看配置 S1#write S1#show run 实验结果测试 测试PC和交换机之间的连通性 Switch#ping 主机IP地址 PC机DOS方式:ping 交换机IP地址 尝试从PC机TELNET到交换机 PC机DOS方式:TELNET 交换机IP地址 成功TELNET的条件 能PING通交换机 已经为交换机设置了必要的密码信息 交换机IP地址配置 Switch(config)#int vlan1 Switch(config-if)#ip address 192.168.1.10 255.255.255.0 Switch(config-if)#no shutdown 密码设置 1、设置进入控制台(用户模式)的密码 Switch(config)#line console 0 Switch(config-line)#pass cisco Switch(config-line)#login 密码设置 2、设置远程登录VTY线路密码 Switch(config)#line vty 0 4(或15) Switch(config-line)#pass cisco Switch(config-line)#login 密码设置 3、设置进入ENABLE特权模式的密码 Switch(config)#enable pass feng 明文密码 Switch(config)#enable secret cisco 加密密码 配置信息的保存 Switch#write Switch#copy run start Destination filename [startup-config]? Building configuration... 文件查看 查看配置文件 Show run(查看RAM中的配置) Show start (查看NVRAM中的配置) 查看IOS Show flash 注意:配置文件保存在NVRAM存储器中,IOS操作系统文件保存在FLASH闪存中 删除全部配置 Switch#delete flash:vlan.dat 先删除VLAN配置文件 Switch#erase start 再删除全部配置 Erasing the nvram filesystem will remove all files! Continue? [confirm] [OK] Erase of nvram: complete Switch#reload 重新启动 Proceed with reload? [confirm] 设置端口双工模式和速率 Switch(config)int f0/1 Switch(config-if)#duplex full|half|auto Switch(config-if)#speed 100|10|auto * * *
显示全部
相似文档