实训(路由实验)

上传人:子 文档编号:53701154 上传时间:2018-09-04 格式:PPT 页数:24 大小:223KB
返回 下载 相关 举报
实训(路由实验)_第1页
第1页 / 共24页
实训(路由实验)_第2页
第2页 / 共24页
实训(路由实验)_第3页
第3页 / 共24页
实训(路由实验)_第4页
第4页 / 共24页
实训(路由实验)_第5页
第5页 / 共24页
点击查看更多>>
资源描述

《实训(路由实验)》由会员分享,可在线阅读,更多相关《实训(路由实验)(24页珍藏版)》请在金锄头文库上搜索。

1、路由器实验项目,路由器的基本配置 配置接口时钟频率 静态路由 动态路由RIP,拓扑结构图,路由器的基本配置,1.进入特权模式 Red-Giantenable 14 2.返回用户模式 Red-Giant#disable Red-Giant,基本模式:,路由器的操作模式:配置模式,全局配置模式主机名(config)#:配置路由器的整体参数 子模式: 1.线路配置模式主机名(config-line)#:配置路由器的线路参数 2.接口配置模式主机名(config-if)#:配置路由器的接口参数,路由器的操作模式:配置模式,1.进入全局配置模式下 Red-Giant#configure terminal

2、 Enter configuration commands, one per line. End with CNTL/Z. Red-Giant(config)#exit Red-Giant# 2.进入线路配置模式 Red-Giant(config)#line console 0 Red-Giant(config-line)#exit Red-Giant(config)# 3.进入接口配置模式 Red-Giant(config)#interface serial 1/2 Red-Giant(config-if)#exit Red-Giant(config)#,常用路由器显示命令,显示路由器硬件及

3、软件的信息 Red-Giant#show version 显示当前运行的配置参数 Red-Giant#show running-config 显示NVRAM中配置参数的副本 Red-Giant#show startup-config,路由器接口配置命令,配置接口IP地址 labr1(config-if)#ip address IP address IP subnet mask secondary 将接口启用 labr1(config-if)#no shutdown 将接口关闭 labr1(config-if)#shutdown,路由器接口显示命令,显示接口的状态 labr1#show inte

4、rfaces 显示接口的摘要信息 labr1#show ip interface brief,路由器接口显示命令,labr1#show interfaces fastEthernet 1/0 FastEthernet0 is up, line protocol is up (表示物理层协议工作正常) (表示数据链路层协议工作正常) FastEthernet0 is up, line protocol is down (表示物理层协议工作正常) (表示数据链路层协议工作不正常) FastEthernet0 is down, line protocol is down (表示物理层协议工作不正常)

5、 FastEthernet0 is administratively down, line protocol is down (表示从管理上将该接口处于关闭状态),路由器测试命令,远程登陆到其它设备 labr1telnet IP address 测试目的端的可达性 labr1ping IP address,路由器A的配置,一、基本配置 1、配置路由器主机名routerenable 14router #configure terminalrouter(config)#hostname RARA(config)# 2、为路由器各接口分配IP地址RA(config)#interface serial

6、 1/2RA(config-if)#ip address 172.16.2.2 255.255.255.0,注意: 常见的路由器接口:f0,f1,fn;Serial 0,Serial 1,Serial n Serial口对应路由器设备上的WAN接口,路由器A的配置,RA(config)#interface fastethernet 1/0RA(config-if)#ip address 172.16.3.1 255.255.255.0RA(config-if)# no shutdown,二、配置接口时钟频率(DCE) RA(config)#interface serial 1/2 RA(con

7、fig-if)#clock rate 64000 RA(config-if)#no shutdown,路由器B的配置,一、基本配置 1、配置路由器主机名Red-Giantenable 14Red-Giant#configure terminalRed-Giant (config)#hostname RBRB(config)# 2、为路由器各接口分配IP地址RB(config)#interface serial 1/2RB(config-if)#ip address 172.16.2.1 255.255.255.0RB(config-if)#no shut,RB(config)#interfac

8、e fastethernet 1/0RB(config-if)#ip address 172.16.1.1 255.255.255.0RB(config-if)#no shut,验证命令,show run show controllers s 0 show int show ip int brief ping telnet,测试结果: 1.查看路由器端口为up,up 2.两台路由器互相ping Serial口的地址,应该为互通 3.两台主机分别ping与其直连的路由器的fastethernet口,应该为通 4.从与路由器A相连的主机可以telnet到A,与路由器B相连的主机可以telnet到B

9、,静态路由,A,B,DCE,DTE,172.16.3.2/24,172.16.3.1/24,172.16.2.2/24,172.16.2.1/24,172.16.1.2/24,172.16.1.1/24,S1/2,S1/2,F1/0,F1/0,拓扑图:,网关:172.16.3.1,网关:172.16.1.1,实验内容: 通过静态路由,使路由器A、B具有非直连子网的路由信息。,路由器A的配置,一、基本配置 1、配置路由器主机名 2、为路由器各接口分配IP地址,二、配置接口时钟频率(DCE),三、配置静态路由 RA(config)#ip route 172.16.1.0 255.255.255.0

10、 (b路由s接口的ip地址)172.16.2.1 或: RA(config)#ip route 172.16.1.0 255.255.255.0 (a路由) serial 1/2,配置静态路由时ip route后面接该路由器不直连且欲访问的子网地址及子网掩码。,路由器B的配置,一、基本配置 1、配置路由器主机名 2、为路由器各接口分配IP地址,二、配置静态路由 RB(config)#ip route 172.16.3.0 255.255.255.0 172.16.2.2 或: RB(config)#ip route 172.16.3.0 255.255.255.0 serial 1/2,验证命

11、令,show ip int brief show ip route ping,实验结果: 1.A 、B各路由器应该看到全网路由。 2.主机172.16.3.2能够访问主机172.16.1.2,动态路由RIP,网关:172.16.3.1,网关:172.16.1.1,实验内容: 通过动态路由RIP,使路由器A、B具有非直连子网的路由信息。,路由器A的配置,一、基本配置 1、配置路由器主机名 2、为路由器各接口分配IP地址,三、配置RIP RA(config)# route rip 启动路由器A的RIP进程 RA(config-router)#network 172.16.2.0 RA(config

12、-router)#network 172.16.1.0 (1).公布属于172.16.0.0主类的子网; (2).包含在172.16.0.0主类内的接口发送接受路由信息,二、配置接口时钟频率(DCE),三、配置RIP RB(config)# route rip 启动路由器A的RIP进程 RB(config-router)#network 172.16.3.0 RB(config-router)#network 172.16.2.0 (1).公布属于172.16.0.0主类的子网; (2).包含在172.16.0.0主类内的接口发送接受路由信息,实验结果,实验结果: 1.A 、B各路由器应该看到全网路由。 2.主机172.16.3.2能够访问主机172.16.1.2,验证命令: show ip int brief show ip route show ip protocols ping,S2,S0,S1,S0,S1,S0,2624-1,2624-2,2620-1,2620-2,DCE,DCE,DCE,C: direct connected S: 静态路由,

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号