2. OSPF汇总
区域间汇总
-----------------------------------------------------------------
R2:
router ospf 1
area 0 range 22.1.0.0 255.255.0.0
area 0 range 33.1.0.0 255.255.0.0
exit
R1:
end
show ip route ospf
conf t
R4:
int l1
ip add 44.1.2.1 255.255.255.0
exit
int l2
ip add 44.1.3.1 255.255.255.0
exit
router ospf 1
network 44.1.2.0 0.0.0.255 area 2
network 44.1.3.0 0.0.0.255 area 2
exit
R1:
end
show ip route ospf
conf t
R3:
router ospf 1
area 2 range 44.1.0.0 255.255.0.0
exit
区域外汇总
--------------------------------------------------------------------
R4:
int l10
ip add 144.1.1.1 255.255.255.0
exit
int l11
ip add 144.1.2.1 255.255.255.0
exit
int l12
ip add 144.1.3.1 255.255.255.0
exit
router ospf 1
redistribute connected subnets
exit
R1:
end
show ip route ospf
conf t
R4:
router ospf 1
summary-add 144.1.0.0 255.255.0.0
exit
R1:
end
show ip route ospf
conf t
3. OSPF网络类型:
------------------------------------------------------------------------