- 39
- 0
- 约1.41万字
- 约 13页
- 2020-12-10 发布于天津
- 举报
实验四 配置路由器静态路由、默认路由和 RIPv2、ospf协议
一、实验目的
本实验主要用来练习路由器的基本配置,包括静态路由、默认路由和
RIPv2路由协议。
二、配置静态路由和默认路由
1 .绘制拓扑图并保存,拓扑图如下图所示。
Router 2
Router4
连接说明:
路由器1型号为2516 , 路由器2和路由器4的型号均为2501 ;
路由器1的ethernet 0与路由器2的ethernet 0相连; 路由器1的serial 0与路由器4的serial 0相连;
注意:在连接路由器1和4的串口时,请选择路由器 4作
为 DCE 端;
2、以路由器1、路由器2和路由器4为配置对象,进行相关设置。
Router1
Router2
Router4
In terface Ether net 0
10.1.1.1
255.255.255.0
10.1.1.2
255.255.255.0
In terface Serial 0
12.5.10.1
255.255.255.0
12.5.10.2
255.255.255.0
① 按下表逐个设置路由器 1、路由器2和路由器4的相关接口的IP地址;
举例: 对路由器1的两个接口的设置
Routere nable
Router#c onf term inal
Router(config)#hostname router1
Router1(c on fig)# in terface Ether net 0
Router1(config-if)#ip address 10.1.1.1 255.255.255.0
Router1(c on fig-if)# no shutdow n
Router1(c on fig-if)#e nd
Router1#co nf t
Router1(c on fig)# in terface serial 0
Router1(config-if)#ip add 12.5.10.1 255.255.255.0
Router1(c on fig-if)# no shutdow n
Router1(c on fig-if)#e nd
/*设置路由器1名称为router1;
/*切换到路由器1的以太网接口 0
/*设置该接口的IP地址等
/*开启该接口
/*退出特权模式
/*再进入配置串行接口 0
对Router4操作:
Router
lies 口 terenai3Le
RoDter#conf 七
Enter configuration cowiMands,. one per line. End with CNTL/E.
Router(conf#hostname Rcuter4
貝o口七er4 (config-) ^interf sO
Roater4 (config-if} f^in add 12.5,10-2 255- 255.255 - C
InvalLd CauunaDd
E^utar4(acnCig-if}Mip add 12?厲?人。?2 255?2厲?Q
RQuter4 [coiifig--!£)特no 吕h口七down
%LLNK-3-UFDOWN; Interface SerialO, changed state to up
Rauter4(config-if}Wend
%LINK-3-UPDOWN: Interface SeriaLO, changed state to down
%LIHEPROTO-5-UPDOWN: Line protocol on Interface SerialD, ctiangefl state to dewn
Ronter4#
对Router2操作:
Rauterenable
Rtmter#oonf t
Hnter conf ignration f one per line. End with CJJTL/E .
Ron七它「t1 号}fHiostnain总 tou七乜匸!?
ru+^er2 {conf ig^ ^hastname Route r2
[con£iq) ft interlace eO
Router?(conrig-if)ip 电da XQ?1.1.2 255*255?235?Q
Router? [config-i f) #no sliuticwn
%LINK-3-UPDOWN: Interface EthernetO, atianged state to up
Rchiter? tconf ig-if) #etid
!Tta.?4.?rkBI?.?g dfa
对routerl 操作:
Kouter
K£juter?nanie
Kouterit乜on上 t
muter sentlouration aomm
您可能关注的文档
最近下载
- 2026年上饶职业技术学院单招职业技能考试题库带答案详解(典型题).docx VIP
- 土体施工扰动特点研究.pdf VIP
- 九年级音乐上册 《中国人民解放军军歌》教学课件.pptx VIP
- 2025年项目管理专业项目档案的属性、价值与作用专题试卷及解析.pdf VIP
- RAZ-F分级阅读英语绘本The Food Chain(带练习册).pdf VIP
- 医疗污水处理故障应急上报演练脚本.docx VIP
- 2026开封市第三届职业技能大赛车身修理(世赛选拔)项目技术工作文件.pdf VIP
- 混凝土工三级安全教育试卷附答案.docx VIP
- 高教版中职历史基础模块中国历史第二十六课社会主义建设在探索中曲折发展-课件.ppt VIP
- 年产25万吨苯乙烯项目7-清洁生产报告.docx VIP
原创力文档

文档评论(0)