- 13
- 0
- 约 5页
- 2017-01-06 发布于贵州
- 举报
CCNA命令大全CCNA命令大全
CCNA命令大全
登录网络设备,USB-COM-COM-RJ45,超级终端/SecureCRTWould you like to enter the initial configuration dialog? [yes/no]: //回答no,如果回答了yes,会出现大量对话,Ctrl+C中断对话% Please answer yes or no.Router //用户模式,只能简单的show及ping/tracerRouterenable //从用户模式进入特权模式Router# //特权模式,能够进行所有的show及ping/tracerRouter#configure terminal//从特权模式进入全局配置模式Router(config)# //全局配置模式,可以进行相关配置Router(config)#hostname R1//给设备命名R1#show version //查看设备软硬件版本信息,开机时间,内存和Flash大小,模块等R1#show ip interface brief //查看接口信息R1#show running-config //查看运行在内存中的当前配置R1#show startup-config //查看开机配置,保存在NVRAMR1#copy running-config startup-config //将当前运行配置保存到开机配置中R1#show tech-support //查看设备所有软硬件的详细信息R1(config)#enable password xxx//配置enable密码,该密码show run可见R1(config)#enable secret xxx //配置enable密码,该密码show run不可见,两个同时配置时,secret密码生效R1(config)#line vty 0 4 //进入telnet配置模式R1(config-line)#login //telnet登陆需要密码验证R1(config-line)#password xxx //配置telnet密码R1(config-line)#exitR1(config)#line vty 0 4 R1(config-line)#no login //telnet登陆不需要验证R1(config-line)#exit R1(config)#line vty 0 4R1(config-line)#login local//telnet登陆需要在本地数据库查找用户名密码进行验证R1(config-line)#exitR1(config)#username spoto password xxx //创建本地用户名密码R1(config)#banner ^!!!!R1!!!!!^ //配置设备登陆提示符,头尾符号需要一致,中间为提示符内容R1(config)#line vty 0 4R1(config-line)#privilege level 15//配置telnet用户特权等级为15,即登陆后直接进入enable模式R1(config-line)#exit R1(config)#interface fastEthernet x/x //进入接口配置模式R1(config-if)#ip address x.x.x.x x.x.x.x //配置IP及掩码R1(config-if)#no shutdown //打开接口,路由器接口默认处于管理性关闭状态R1(config-if)#exit //退出接口配置模式,返回全局配置模式R1(config)#no ip routing //关闭路由功能,将路由器模拟成PCR1(config)#ip default-gateway x.x.x.x //配置网关地址R1#show ip route //查看关闭路由功能后的网关配置R1#show cdp neighbors //查看思科互连设备信息R1(config)#interface loopback 0 //创建环回接口0,用于模拟网段和测试R1(config-if)#ip address x.x.x.x x.x.x.x//配置环回接口IP及掩码,环回接口不需要no shutdownR1(config-if)#exitR1(config)#ip route x.x.x.x x.x.x.x x.x.x.x //配置使用下一跳地址的静态路由R1(config)#ip route x.x.x.x x.x.x.x fastEthernet x/x //配置使用本地出接口的静态路由R1(config)#ip route 0.0.0.0 0.0.0
您可能关注的文档
最近下载
- 2025-2026学年浙教版科学七年级上册科学期末专项训练 综合题汇编(含答案).pdf VIP
- 期末复习+课件-2025-2026学年浙教版科学七年级上册科学.pptx VIP
- 市医疗保障局党组副书记2024年民主生活会个人对照检查发言材料.docx VIP
- 无偿划转债务处置方案.docx VIP
- 湖南省长沙市第一中学2025-2026学年高三上学期1月月考物理试题.pdf VIP
- 苗木采购整体供货方案.docx VIP
- 东风风神-E70-产品使用说明书-东风风神E70 2019款 专享版-DFM7000G1F6BEV-E70使用说明书201903.pdf VIP
- 奥的斯电梯JARLESS-CON中分门机中文版.pdf VIP
- 食堂居间合同协议.docx VIP
- 初中数学圆的训练.pdf VIP
原创力文档

文档评论(0)