ospfeigrpripv2综合实验.docx
- 文档编号:23228831
- 上传时间:2023-05-15
- 格式:DOCX
- 页数:15
- 大小:49.12KB
ospfeigrpripv2综合实验.docx
《ospfeigrpripv2综合实验.docx》由会员分享,可在线阅读,更多相关《ospfeigrpripv2综合实验.docx(15页珍藏版)》请在冰豆网上搜索。
ospfeigrpripv2综合实验
CISCO试验07-OSPF多区域试验
很全面的一个试验,多路由协议,FrameRelay,Redistribut都涉及到了。
R1配置
Router>en
Router#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
Router(config)#hostR1
R1(config)#noipdomain-look
R1(config)#linecons0
R1(config-line)#exec-time0
R1(config)#ints1/0
R1(config-if)#ipadd173.16.1.1255.255.255.0
R1(config-if)#noshut
R1(config-if)#exit
R1(config)#
*Jan2218:
09:
42.635:
%LINK-3-UPDOWN:
InterfaceSerial1/0,changedstatetoup
R1(config)#
*Jan2218:
09:
43.639:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/0,changedstatetoup
R1(config)#ints1/2
R1(config-if)#
*Jan2218:
10:
06.571:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/0,changedstatetodown
R1(config-if)#noipadd
R1(config-if)#encapsulationframe-relay
R1(config-if)#noshut
R1(config-if)#exit
*Jan2218:
10:
33.583:
%LINK-3-UPDOWN:
InterfaceSerial1/2,changedstatetoup
R1(config-if)#ints
*Jan2218:
10:
44.583:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/2,changedstatetoup
R1(config)#ints1/2.2multipoint
R1(config-subif)#ipadd10.1.1.1255.255.255.0
R1(config-subif)#ipospfnetbroad (指定ospf的网络类型为广播)
R1(config-subif)#framemapip10.1.1.2102broadcast
R1(config-subif)#framemapip10.1.1.3103broadcast
R1(config-subif)#noshut
R1(config-subif)#exit
R1(config)#routerospf1
R1(config-router)#router-id1.1.1.1
R1(config-router)#area1stubno-summary (设置area1为stub)
R1(config-router)#area1default-cost10 (设置area1公告的路由花费为10)
R1(config-router)#area1range173.16.0.0255.255.0.0 (对area1的路由做区域路由汇总)
R1(config-router)#net10.1.1.10.0.0.255area0
R1(config-router)#net173.16.1.00.0.0.255area1
R1(config-router)#exit
R1(config)#
R4配置
Router>en
Router#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
Router(config)#hostR4
R4(config)#noipdomain-lo
R4(config)#linecons0
R4(config-line)#exec-time0
R4(config-line)#loggsync
R4(config-line)#exit
R4(config)#intlo0
R4(config-if)#ipadd173.16.2.2255.255.255.0
R4(config-if)#ipospfnetpoint-to-point (设置接口下的ospf的网络类型)
R4(config-if)#ipospfcost22 (设置接口下ospf的花费为22)
R4(config-if)#exit
R4(config)#ints1/1
R4(config-if)#ipadd173.16.1.2255.255.255.0
R4(config-if)#clockrate64000
R4(config-if)#noshut
R4(config-if)#exit
*Jan2218:
30:
18.571:
%LINK-3-UPDOWN:
InterfaceSerial1/1,changedstatetoup
R4(config)#routeros
*Jan2218:
30:
19.575:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/1,changedstatetoup
R4(config)#routerospf4
R4(config-router)#router-id4.4.4.4
R4(config-router)#area1stub (设置area1为stub)
R4(config-router)#net0.0.0.0255.255.255.255area1 (把所有之链网段宣告进area1)
R4(config-router)#exit
*Jan2218:
30:
50.455:
%OSPF-5-ADJCHG:
Process4,Nbr1.1.1.1onSerial1/1fromLOADINGtoFULL,LoadingDone
R4(config-router)#exit
R4(config)#exit
*Jan2218:
30:
55.363:
%SYS-5-CONFIG_I:
Configuredfromconsolebyconsole
R4#
R2配置
Router>en
Router#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
Router(config)#hostR2
R2(config)#noipdomain-look
R2(config)#linecons0
R2(config-line)#noexec-ti
R2(config-line)#loggsync
R2(config-line)#exit
R2(config)#ints1/2
R2(config-if)#noipadd
R2(config-if)#encap
R2(config-if)#encapsulationfr
R2(config-if)#encapsulationframe-relay
R2(config-if)#noshut
R2(config-if)#exit
R2(config)#ints1/2.1mul
R2(config-subif)#ipadd
*Jan2218:
43:
17.475:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/2,changedstatetoup
R2(config-subif)#ipadd10.1.1.2255.255.255.0
R2(config-subif)#ipospfnetbroad
R2(config-subif)#fra
R2(config-subif)#frame
R2(config-subif)#frame-relaymapip10.1.1.1201broad
R2(config-subif)#frame-relaymapip10.1.1.3203broad
R2(config-subif)#noshut
R2(config)#ints1/1
R2(config-if)#ipadd172.16.1.1255.255.255.0
R2(config-if)#noshut
R2(config-if)#exit
*Jan2218:
46:
15.467:
%LINK-3-UPDOWN:
InterfaceSerial1/1,changedstatetoup
*Jan2218:
46:
16.471:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/1,changedstatetoup
R2(config)#routerospf2
R2(config-router)#router-id2.2.2.2
R2(config-router)#area2nssadefault-information-originateno-summary (把area2设置为nssa)
R2(config-router)#net10.1.1.00.0.0.255area0
R2(config-router)#net172.16.1.00.0.0.255area2
R2(config-router)#exit
R2(config)#end
R2#
R3配置
Router>en
Router#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
Router(config)#hostR3
R3(config)#noipdomain-loo
R3(config)#linecons0
R3(config-line)#noexec-time
R3(config-line)#loggsync
R3(config-line)#exit
R3(config)#ints1/2
R3(config-if)#noipadd
R3(config-if)#encapsulationframe-relay
R3(config-if)#noshut
R3(config-if)#exit
*Jan2221:
37:
02.363:
%LINK-3-UPDOWN:
InterfaceSerial1/2,changedstatetoup
R3(config)#ints1/2.1multipoint
*Jan2221:
37:
13.363:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/2,changedstatetoup
R3(config-subif)#ipadd10.1.1.3255.255.255.0
R3(config-subif)#ipospfnetbroadcast
R3(config-subif)#frame-relaymapip10.1.1.1602broadcast
R3(config-subif)#frame-relaymapip10.1.1.2603broadcast
R3(config-subif)#noshut
R3(config-subif)#exit
R3(config)#ints1/1
R3(config-if)#ipadd172.16.4.1255.255.255.0
R3(config-if)#noshut
R3(config-if)#exit
R3(config)#
*Jan2221:
40:
35.327:
%LINK-3-UPDOWN:
InterfaceSerial1/1,changedstatetoup
*Jan2221:
40:
36.331:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/1,changedstatetoup
R3(config)#routerospf3
R3(config-router)#router-id3.3.3.3
R3(config-router)#net10.1.1.00.0.0.255area0
R3(config-router)#net
*Jan2221:
41:
05.219:
%OSPF-5-ADJCHG:
Process3,Nbr2.2.2.2onSerial1/2.1fromLOADINGtoFULL,LoadingDone
*Jan2221:
41:
05.227:
%OSPF-5-ADJCHG:
Process3,Nbr1.1.1.1onSerial1/2.1fromLOADINGtoFULL,LoadingDone
R3(config-router)#net172.16.4.00.0.0.255area3
R3(config-router)#exit
R3(config)#exit
R3#
R5配置
Router>en
Router#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
Router(config)#hostR5
R5(config)#noipdomain-loo
R5(config)#linecons0
R5(config-line)#noexec-time
R5(config-line)#loggsync
R5(config-line)#exit
R5(config)#intlo0
R5(config-if)#ipadd172.16.2.1255.255.255.0
R5(config-if)#ipospfnetpoint-to-point (设置loopback口的ospf网络类型为ptp)
R5(config-if)#exit
R5(config)#ints1/0
R5(config-if)#ipadd172.16.1.2255.255.255.0
R5(config-if)#noshut
*Jan2221:
48:
53.519:
%LINK-3-UPDOWN:
InterfaceSerial1/0,changedstatetoup
*Jan2221:
48:
54.523:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/0,changedstatetoup
R5(config-if)#ints1/1
R5(config-if)#ipadd174.16.1.1255.255.255.0
R5(config-if)#noshut
R5(config-if)#exit
*Jan2221:
49:
18.535:
%LINK-3-UPDOWN:
InterfaceSerial1/1,changedstatetoup
*Jan2221:
49:
19.539:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/1,changedstatetoup
R5(config)#routerospf5
R5(config-router)#router-id5.5.5.5
R5(config-router)#net172.16.0.00.0.255.255area2
R5(config-router)#area2nssa
R5(config-router)#summary-address172.16.0.0255.255.0.0 (将外部as的路由汇总)
R5(config-router)#redistributeripsubnets (将rip重分发进ospf)
R5(config-router)#exit
R5(config)#routerrip
R5(config-router)#ver2
R5(config-router)#net174.16.0.0
R5(config-router)#redistributeospf5metric5 (将ospf重分发进rip,并且设置其metric为5)
R5(config-router)#exit
R5(config)#exit
R5#
R6配置
Router>en
Router#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
Router(config)#hostR6
R6(config)#noipdomain-lo
R6(config)#linecons0
R6(config-line)#noexec-time
R6(config-line)#loggsync
R6(config-line)#exit
R6(config)#intlo0
R6(config-if)#ipadd172.16.3.1255.255.255.0
R6(config-if)#ipospfnetpoint-to-point (设置loopback口的ospf网络类型为ptp)
R6(config-if)#noshut
R6(config-if)#exit
R6(config)#ints1/0
R6(config-if)#ipadd172.16.4.2255.255.255.0
R6(config-if)#noshut
R6(config-if)#exit
*Jan2221:
57:
18.819:
%LINK-3-UPDOWN:
InterfaceSerial1/0,changedstatetoup
*Jan2221:
57:
19.823:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/0,changedstatetoup
R6(config)#ints1/1
R6(config-if)#ipadd175.16.1.1255.255.255.0
R6(config-if)#noshut
R6(config-if)#exit
R6(config)#
*Jan2221:
57:
42.739:
%LINK-3-UPDOWN:
InterfaceSerial1/1,changedstatetoup
*Jan2221:
57:
43.739:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/1,changedstatetoup
R6(config)#routerospf6
R6(config-router)#router-id6.6.6.6
R6(config-router)#net172.16.0.00.0.255.255area3
R6(config-router)#
*Jan2221:
58:
58.007:
%OSPF-5-ADJCHG:
Process6,Nbr3.3.3.3onSerial1/0fromLOADINGtoFULL,LoadingDone
R6(config-router)#redistributeeigrp100metric20metric-type1sub (将eigrp重分发进ospf,并设置分发类型为oe1)
R6(config-router)#exit
R6(config)#routereigrp100
R6(config-router)#auto-summ
R6(config-router)#net175.16.0.0
R6(config-router)#redistributeospf6metric1000010025511500 (将ospf重分发进eigrp中)
R6(config-router)#exit
R6(config)#exit
R6#
R7配置
Router>en
Router#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
Router(config)#hostR7
R7(config)#noipdomain-lo
R7(config)#linecons0
R7(config-line)#noexec-time
R7(config-line)#loggsync
R7(config-line)#exit
R7(config)#ints1/0
R7(config-if)#ipadd174.16.1.2255.255.255.0
R7(config-if)#noshut
R7(config-if)#exit
*Jan2222:
04:
33.751:
%LINK-3-UPDOWN:
InterfaceSerial1/0,changedstatetoup
R7(config)#intlo0
*Jan2222:
04:
34.755:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/0,changedstatetoup
R7(config-if)#ipadd174.16.2.1255.255.255.0
R7(config-if)#noshu
R7(config-if)#exit
R7(config)#routerrip
R7(config-router)#ver2
R7(config-router)#net174.16.0.0
R7(config-router)#exit
R7(config)#exit
R7#
R8配置
Router>en
R
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ospfeigrpripv2 综合 实验
![提示](https://static.bdocx.com/images/bang_tan.gif)