当前位置:文档之家› 路由器基本配置

路由器基本配置

路由器基本配置
路由器基本配置

Router>

Router:主机名,可更改

>:当前系统配置模式,>表示当前系统配置模式为用户模式

User mode 用户模式

Router>

特权模式

Router>enable

Router#

通用配置模式

Router#configure terminal

Router(config)#

退出上一模式命令:exit

配置主机名:

Router(config)#hostname <你所要配置的主机名>

例子:

Router(config)#hostname BJ-SJS-01

BJ-SJS-01(config)#

配置路由器用户模式密码:

Router(config)#line vty 0 4

Router(config-line)#password <密码>

例子:

Router(config)#line vty 0 4

Router(config-line)#password vfast

配置路由器特权模式密码:

1.铭文特权模式密码:

Router(config)#enable password <密码>

例子:

Router(config)#enable password vfast2009

2.md5加密的特权模式密码:

Router(config)#enable secret <密码>

例子:

Router(config)#enable secret vfast2010

以列表的方式查看本地所有接口

Router#show ip interface brief

配置以太网接口:

1.进入通用配置模式

Router#configure terminal

Router(config)#

2.进入以太网接口配置模式

Router(config)#interface fastethernet <端口号>

例子:Router(config)#interface fastethernet 0/0

Router(config-if)#

3.开启端口

Router(config-if)#no shutdown

4.配置端口IP

Router(config-if)#ip address <子网掩码>

例子:

Router(config-fi)#ip address 192.168.1.1 255.255.255.0 查看串口状态命令:show controllers serial <端口号>

配置串口:

1.进入通用配置模式

Router#configure terminal

Router(config)#

2.进入串口配置模式

Router(config)#interface serial <端口号>

例子:Router(config)#interface serial 0/0

Router(config-if)

3.开启端口

Router(config-if)#no shutdown

4.封装PPP

Router(config-if)#encapsulation ppp

5.如果为DCE端需要配置时钟频率,如果为DTE端不要配置时钟频率,配也配不上Router(config-if)#clock rate 64000

6.配置IP

Router(config-if)#ip address <子网掩码>

查看本机系统信息

Router#show version

查看本机CPU使用信息

Router#show process

查看本机当前配置命令:

Router#show running-config

查看本机路由表:

Router#show ip route

查看系统时间:

Router#show clock

更改系统时间

Router#clock set

保存路由器配置:

Router#copy running-config startup-config

Router#wr

网线制作:

T568A-T568B:交叉线

T568B-T568B:平行线

交叉线用于相同设备连接平行线用于不同设备连接

交换机-交换机:交叉线

交换机-PC:平行线

交换机-路由器:平行线

交换机-防火墙:平行线PC-PC:交叉线

PC-路由器:交叉线

PC-防火墙:交叉线

路由器-路由器:交叉线

路由器-防火墙:交叉线

防火墙-防火墙:交叉线

相关主题
文本预览
相关文档 最新文档