路由器配置命令

路由器配置命令


2024年5月17日发(作者:繁体字下载输入法)

路由器配置命令

路由器是局域网络与广域网络(或城域网)相连的必备设备,也是网络管理员必备的技

能之一。

路由器的命令实际上难度和早期的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 + 编号查看串口类型


发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1715933509a2694148.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信