admin管理员组文章数量:1534209
2024年5月9日发(作者:)
路由器配置命令
路由器是局域网络与广域网络(或城域网)相连的必备设备,也是网络管理员必备的技
能之一。
路由器的命令实际上难度和早期的dos操作系统或命令行的linux比较接近,但功能上
要比以上操作系统单一很多。不同厂商的路由器命令有些许差别,但功能性的东西没有本质
的差别。
以下是常用路由器配置命令。
1. 进入特权模式 enable
router > enable
router #
2. 进入全局配置模式 configure terminal
router > enable
router #configure terminal
router (config)#
3. 重命名 hostname routera 以routerA为例
router > enable
router #configure terminal
router(config)#hostname routerA
routerA (config)#
4. 配置使能口令 enable password cisco 以cisco为例
router > enable
router #configure terminal
router(config)#hostname routerA
routerA (config)# enable password cisco
5. 配置使能密码 enable secret ciscolab 以cicsolab为例
router > enable
router #configure terminal
router(config)#hostname routerA
routerA (config)# enable secret ciscolab
6. 进入路由器某一端口 interface fastethernet 0/1
router > enable
router #configure terminal
router(config)#hostname routerA
routerA (config)# interface fastethernet 0/1
routerA (config-if)#
进入路由器的某一子端口 interface fastethernet 0/1.1 以1端口的1子端口为例
router > enable
router #configure terminal
router(config)#hostname routerA
routerA (config)# interface fastehernet 0/1.1
7. 设置端口ip地址信息
router > enable
router #configure terminal
router(config)#hostname routerA
routerA(config)# interface fastethernet 0/1 以1端口为例
routerA (config-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip和子网
掩码
routerA (config-if)#no shut 启动此接口
routerA (config-if)#exit
8. 查看命令 show
router > enable
router # show version 察看系统中的所有版本信息
show controllers serial + 编号查看串口类型
版权声明:本文标题:路由器配置命令 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1715222344a441517.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论