【实验名称】

路由器端口的基本配置

【实验目的】

掌握路由器的常用配置参数

【实验功能】

给路由器接口配置IP地址,并在DCE端配置是时钟频率,限制端口宽带。

【实验设备】

路由器(2台)   交叉线(1条)

【实验拓扑】

 

 

PS:接下来都是讲述 三层配置比较多! 所以基础路由配置 发一个  便于入门者熟悉

【实验步骤】

Router1

Router>enable                                                      进入特权模式
Router#configure terminal                                  进入全局模式
Router(config)#hostname R1                             重命名为 R1    (基本命令和交换机一样)
R1(config)#interface serial 2/0                              进入serial 2/0 口   
R1(config-if)#no shutdown                                         (这一点要留意,就算是老手也偶尔犯这样的失误。三层设备端口默认为  shutdown 关闭。 所以养成一个习惯:配置三层 进入端口先打no shutdown 开启! 切记!)

R1(config-if)#ip address 1.1.1.1 255.255.255.0           配置IP地址 和子网掩码
R1(config-if)#clock rate 64000                                 配置DCE接口上的时钟频率为64000
R1(config-if)#bandwidth 512                                  端口带宽速度为512KB    (配置带宽时,以K为单位)

 

Router 2

Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#interface serial 2/0
R2(config-if)#no shutdown

R2(config-if)#ip address 1.1.1.2 255.255.255.0
R2(config-if)#bandwidth 512

 

R1#ping 1.1.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 31/34/47 ms

两路由器相互联通!

原创:胡斌   

 我会从简单到难的发表一些我学过的知识,希望能给一些想入门的朋友帮助,也希望找一些志同道合的朋友、老师 给我些指教。 QQ 276200261!