【正文】
uter (configrouter) area areaid range address mask Route Summarization Commands ? Consolidates IA routes on an ABR Router (configrouter) summaryaddress address mask ? Consolidates external routes on an ASBR Route Summarization Example R2 R2 router ospf 100 work area 2 work area 0 area 0 range area 2 range R1 router ospf 100 work area 1 work area 0 area 0 range area 1 range Area 2 Area 1 Interface Addresses ( mask) Interface Addresses ( mask) R1 R2 Area 0 Default route to routers outside the area ? Add a default route to the OSPF router connected to the outside work. This route can be redistributed to each router in the Area through normal OSPF updates ? Router(config)ip route [interface | nexthop address] ? The following configuration statement will propagate this route to all the routers in a normal OSPF area: – Router(configrouter) defaultinformation originate – All routers in the OSPF area will learn a default route provided that the interface of the border router to the default gateway is active. OSPF route authencation ? Enable area authencation on all routers in that area – Router(configrouter) area area_id authencation – Router(configrouter) ip ospf authencationkey password ? MD5 cyrptographic authencation – Router(configrouter) area area_id authencation messagedigest – Router(configrouter) ip ospf messagedigestkey key_value md5 password OSPF virtual links ? It’s the last option, and the better choice is to avoid virtual link – Router(configrouter) area transit_area_id virtuallink router_id_of_remote – Router show ip ospf virtuallinks 確認(rèn) OSPF 配置及運(yùn)行狀態(tài) ? Verifies interfaces are in correct areas Router show ip ospf interface e0 Ether0 is up, line protocol is up Inter Address , Area Process ID 10, Router ID , Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State BDR, Priority 1 Designated Router (ID) , Interface address Backup Designated router (ID) , Interface address Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 0:00:02 Neighbor Count is 3, Adjacent neighbor count is 3 Adjacent with neighbor (Designated Router) Loopback0 is up, line protocol is up Inter Address , Area 1 Process ID 10, Router ID , Network Type LOOPBACK, Cost: 1 Loopback interface is treated as a stub Host show ip ospf interface Command Show IP ospf interface In this example, we use loopback interface instead of Ether interface ? Displays general information about the OSPF routing process Router show ip ospf Routing Process ospf 1 with ID Supports only single TOS (TOS0) routes SPF schedule delay 5 secs, Hold time between two SPFs 10 secs Number of areas in this router is 1 Area 23 Number of interfaces in this area is 3 Area has no authentication SPF algorithm executed 19 times Area ranges are Link State Update Interval is 0:30:00 and due in 0:04:55 Link State Age Interval is 0:20:00 and due in 0:04:55 show ip ospf Command Router show ip ospf database OSPF Router with ID () (Process ID 1) Router Link States (Area 23) Link ID ADV Router Age Seq 78 0x80000032 1691 0x8000002B 1 1693 0x80000030 Checksum 0x80B6 0xE11C 0xE35E Link count 5 5 1696 0x80000026 0x80A1 1 Net Link States (Area 23) Link ID ADV Router Age Seq Checksum 1691 0x80000030 0x2FCE 1693 0x80000024 0xFB29 show ip ospf database Command Router show ip protocol Routing Protocol is “ospf 300” Sending updates every 0 seconds Invalid after 0 seconds, hold down 0, flushed after 0 Outgoing update filter list for all interfaces is not set Ining update filter list for all inter