CCNA配置命令_1

##远程登录路由器
#配置路由器名
#Router(config)#hostname Rt99a
#关闭自动解析功能 ,取消域名查找(DNS解析)
Rt99a(config)#no ip domian-lookup
#配置特权模式密令
Rt99a(config)#enable secret 99secret
#配置本地登录口令
Rt99a(config)#line con 0
Rt99a(config-line)#password 99con
Rt99a(config-line)#login
#回到特权模式
Rt99a(config-line)#end
#保存配置
Rt99a#copy running-config startup-config
或者
Rt99a#write
#配置远程登录口令
Rt99a(config)#line vty 0 4
Rt99a(config-line)#password 99vty04
Rt99a(config-line)#login
Rt99a(config-line)#exit
#退出特权模式
Rt99a#disable 或者 exit
#退出登录状态
Rt99a>logout

##恢复登录路由器的密码
#pc/nb电脑 --> console连接路由器 ,并且关开路由器
#路由器重启加载时(30-60s内) ,按ctrl+c ,进入 rommon 模式
#将寄存器值修改为0x2142 输入:rommon 1>confreg 0x2142
rommon 2>reset
#路由器重启后进入特权模式,执行: ( 拷贝非易失性闪存(nvram)的内容到内存(ram) )
copy startup-config running-config
#激活所有端口
no shutdown
#show version 的命令查看当前的配置信息,寄存器的当前值最后一行显示:Configuration register is 0x2142 。
如果当前值不是0x2102 , 则修改
config-register 0x2102命令来设置配置寄存器的值
#保存配置
write memory 等于 write 等于 copy running-config startup-config
#重启路由器
reload

running-config 是系统目前正在执行的设定档,而startup-config则是系统载入时会读取的设定档。
Switch#erase startup-config (清除startup-config设定) 重新开机後就会恢复出厂值了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值