admin 管理员组文章数量: 1184232
2024年3月26日发(作者:前端开发工程师英文)
迈普配置命令集合
视图模式介绍:
普通视图 router>
特权视图 router# /在普通模式下输入enable
全局视图 router(config)# /在特权模式下输入config t
接口视图 router(config-if)# /在全局模式下输入int 接口名称 例如int s0或int e0
路由协议视图 router(config-route)# /在全局模式下输入router 动态路由协议
名称
1、基本配置:
router>enable /进入特权模式
router#conf t /进入全局配置模式
router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字
router(config)#enable password /设置特权口令
router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令
router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗
文加密
router(config)#line vty 0 4 /进入设置telnet服务模式
router(config-line)#password xxx /设置telnet的密码
router(config-line)#login /使能可以登陆
router(config)#line con 0 /进入控制口的服务模式
router(config-line)#password xxx /要设置console的密码
router(config-line)#login /使能可以登陆
2、接口配置:
router(config)#int s0 /进入接口配置模式 serial 0 端口配置(如果是模块化的路由
器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口)
router(config-if)#ip add /添加ip 地址和掩码
router(config-if)#enca hdlc/ppp 捆绑链路协议 hdlc 或者 ppp 思科缺省串口封
装的链路层协议是HDLC所以在show run配置的时候接口上的配置没有,如果要封装为
别的链路层协议例如PPP/FR/X25就是看到接口下的enca ppp或者enca fr
版权声明:本文标题:迈普路由配置命令集合 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1711402820a592305.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论