標籤:思科 ospf rip gns3
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/48/58/wKioL1QG9d2ACy_2AAEdtO_VqKg457.jpg" title="圖片1.png" alt="wKioL1QG9d2ACy_2AAEdtO_VqKg457.jpg" />
1::給R1 0/1 R2 0/1 0/0 look 0 R3 0/0 配置OSPF 放入aren1
2:給R3 0/0 look 0 R4 0/1 配置OSPF 放入aren0
3: 給R4 0/0 look 0 R5 0/0 look 0 放入 aren 2
4:給R1 0/0 look 0 R6 0/0 look 0 放入version 3
5:給R6 R1 配rip
6:給R1 R2 R3 R4 R5 配OSPF
7:實現互連
R1
conf t
int f0/1
ip add 11.0.0.1 255.255.255.0
no sh
int f0/0
ip add 16.0.0.1 255.255.255.0
no sh
exit
int l0
ip add 1.1.1.1 255.255.255.255
no sh
exit
router ospf 1
router-id 1.1.1.1
network 11.0.0.0 0.0.0.255 area 1 放入area1
network 1.1.1.0 0.0.0.0 area 1
end
write
R2
conf t
int f0/1
ip add 11.0.0.2 255.255.255.0
no sh
int f0/0
ip add 12.0.0.1 255.255.255.0
no sh
exit
int l0
ip add 2.2.2.2 255.255.255.255
no sh
exit
router ospf 1
router-id 2.2.2.2
network 0.0.0.0 255.255.255.255 area 1
end
write
R3
conf t
int f0/0
ip add 12.0.0.2 255.255.255.0
no sh
int f0/1
ip add 13.0.0.1 255.255.255.0
no sh
exit
int L0
ip add 3.3.3.3 255.255.255.255
no sh
exit
router ospf 1
router-id 3.3.3.3
network 12.0.0.0 0.0.0.255 area 1
network 13.0.0.0 0.0.0.255 area 0
network 3.3.3.3 0.0.0.0 area 0
end
write
R4
conf t
int f0/1
ip add 13.0.0.2 255.255.255.0
no sh
int f0/0
ip add 14.0.0.1 255.255.255.0
no sh
exit
int l0
ip add 4.4.4.4 255.255.255.255
no sh
exit
router ospf 1
router-id 4.4.4.4
network 13.0.0.0 0.0.0.255 area 0
network 14.0.0.0 0.0.0.255 area 2
network 4.4.4.4 0.0.0.0 area 2
end
write
R5
conf t
int f0/0
ip add 14.0.0.2 255.255.255.0
no sh
exit
int l0
ip add 5.5.5.5 255.255.255.255
no sh
exit
router ospf 1
router-id 5.5.5.5
network 0.0.0.0 255.255.255.255 area 2
end
write
R1
conf t
int f0/0
ip add 16.0.0.1 255.255.255.0
no sh
exit
router rip
version 2 進V2版本
no auto-summary
network 1.1.1.0
network 16.0.0.0
end
write
R6
conf t
int f0/0
ip add 16.0.0.2 255.255.255.0
no sh
int l0
ip add 6.6.6.6 255.255.255.255
no sh
exit
router rip
version 2
no auto-summary
network 6.6.6.0
network 16.0.0.0
end
write
show ip ospf database router
R1
router ospf 1
redistribute rip subnets metric 25 metric-type 1exit
router rip
redistribute ospf 1 metric 2
做最佳化
R5#conf t
R5(config)#router ospf 1
R5(config-router)#area 2 stub no-summary 把3類 4類 5類 都去了
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/48/56/wKiom1QG9jrxnujpAAIN6StUeKw455.jpg" style="float:none;" title="圖片2.png" alt="wKiom1QG9jrxnujpAAIN6StUeKw455.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/48/58/wKioL1QG9j2SdqeqAADDhHZHefY307.jpg" style="float:none;" title="圖片3.png" alt="wKioL1QG9j2SdqeqAADDhHZHefY307.jpg" />
本文出自 “網路技術” 部落格,請務必保留此出處http://funinghua.blog.51cto.com/9125449/1548456
思科 GNS3 配置 rip OSPF 路由重發布