1. 程式人生 > 實用技巧 >思科 GNS3 配置 rip OSPF 路由重發布

思科 GNS3 配置 rip OSPF 路由重發布

wKioL1QG9d2ACy_2AAEdtO_VqKg457.jpg

1:R10/1R20/10/0look0R30/0配置OSPF放入aren1

2:給R30/0look0R40/1配置OSPF放入aren0

3:給R40/0look0R50/0look0放入aren2

4:給R10/0look0R60/0look0放入version3

5:給R6R1rip

6:給R1R2R3R4R5OSPF

7:實現互通

R1

conft

intf0/1

ipadd11.0.0.1255.255.255.0

nosh

intf0/0

ipadd16.0.0.1255.255.255.0

nosh

exit

intl0

ipadd1.1.1.1255.255.255.255

nosh

exit

routerospf1

router-id1.1.1.1

network11.0.0.00.0.0.255area1放入

area1

network1.1.1.00.0.0.0area1

end

write

R2

conft

intf0/1

ipadd11.0.0.2255.255.255.0

nosh

intf0/0

ipadd12.0.0.1255.255.255.0

nosh

exit

intl0

ipadd2.2.2.2255.255.255.255

nosh

exit

routerospf1

router-id2.2.2.2

network0.0.0.0255.255.255.255area1

end

write

R3

conft

intf0/0

ipadd12.0.0.2255.255.255.0

nosh

intf0/1

ipadd13.0.0.1255.255.255.0

nosh

exit

intL0

ipadd3.3.3.3255.255.255.255

nosh

exit

routerospf1

router-id3.3.3.3

network12.0.0.00.0.0.255area1

network13.0.0.00.0.0.255area0

network3.3.3.30.0.0.0area0

end

write

R4

conft

intf0/1

ipadd13.0.0.2255.255.255.0

nosh

intf0/0

ipadd14.0.0.1255.255.255.0

nosh

exit

intl0

ipadd4.4.4.4255.255.255.255

nosh

exit

routerospf1

router-id4.4.4.4

network13.0.0.00.0.0.255area0

network14.0.0.00.0.0.255area2

network4.4.4.40.0.0.0area2

end

write

R5

conft

intf0/0

ipadd14.0.0.2255.255.255.0

nosh

exit

intl0

ipadd5.5.5.5255.255.255.255

nosh

exit

routerospf1

router-id5.5.5.5

network0.0.0.0255.255.255.255area2

end

write

R1

conft

intf0/0

ipadd16.0.0.1255.255.255.0

nosh

exit

routerrip

version2V2版本

noauto-summary

network1.1.1.0

network16.0.0.0

end

write

R6

conft

intf0/0

ipadd16.0.0.2255.255.255.0

nosh

intl0

ipadd6.6.6.6255.255.255.255

nosh

exit

routerrip

version2

noauto-summary

network6.6.6.0

network16.0.0.0

end

write

showipospfdatabaserouter

R1

routerospf1

redistributeripsubnetsmetric25metric-type1exit

routerrip

redistributeospf1metric2

做優化

R5#conft

R5(config)#routerospf1

R5(config-router)#area2stubno-summary345類都去了

wKiom1QG9jrxnujpAAIN6StUeKw455.jpg

wKioL1QG9j2SdqeqAADDhHZHefY307.jpg


轉載於:https://blog.51cto.com/funinghua/1548456