路由器的基本配置 路由器怎么改名字教程( 二 )


ROM: System Bootstrap, Version 0.4.7
Serial num:8IRTH710D424000052, ID num:125661
System image file is "DCR3605_5.0.1A.bin"
.....................…(省略)
如果路由器型号不一样 , 显示的信息有所差别 , 但命令基本一样 。
2 设置路由器的名字
每台路由器都有一个默认的名字 , DCR系列路由器为:Router 。可以根据需要修改路由器的名字 , 修改之后路由器的CLI提示符会作相应的改变 。
Router_config#hostname Router1 #配置路由器名称为Router1
Router1_config#
3 查看路由器配置
在任意模式下 , 执行show running-config查看当前正在运行的配置文件 。
Router1_config#show running-config
Router1_config#show running-config
Building configuration...
Current configuration:
!
service timestamps log date
service timestamps debug date
no service password-encryption
!
hostname Router1
……………………………(省略)
--More—
4 显示接口信息(show interface)
当需要判断一个物理接口是否正常 , 可以通过接口信息来进行判断 。
(1)显示以太网接口信息
Router1_config#show interface fa0/0
(2)显示所有接口简略信息
Router1_config#show ip interface brief
Interface IP-Address Method Protocol-Status
FastEthernet0/0 unassigned manual down
FastEthernet0/1 unassigned manual down
FastEthernet0/2 192.168.2.1 manual down
5 显示路由表
Router1_config#show ip route
6 路由器端口配置
给端口FastEthernet0/0配置一个IP地址(192.168.1.1/24) , 并激活端口 , 使用description命令为端口添加标识为Link-Building1 , 接口标识将出现在配置文件和接口命令显示中 。
Router1>
Router1>enable
Router1#config
Router1_config#int fa0/0
Router1_config_f0/0#ip addr 192.168.1.1 255.255.255.0
Router1_config_f0/0#no shut
【路由器的基本配置 路由器怎么改名字教程】Router1_config_f0/0#description Link-Building1

推荐阅读