文档介绍:OSPF : open shortest path first protocol(a kind of interior gateway) use to distrubute routing information within a single autonomous system
OSPF cost=带宽/100M (也可以强行设置 ip ospf cost <value>)
OSPF 中area 0 作为backbone
routes that are generated from within an area ( the destination belongs to the area) are called intra-area routes.
这类路由在路由表中用O表示
routes that originate from other areas are called inter-area or summary routes.
这类路由在路由表中用O IA表示
routes that originate from other routing protocols (or different ospf process ) and that are inject into ospf via redistribution are called external routes.
这类路由在路由表中用O E1 或O E2表示
E1、E2(external type1&external type 2)是计算cost的两种方法,E2只计算ASBR与外部之间的cost,E1还要加上ospf内部的cost), 缺省为E2
1. Enable OSPF on router
router OSPF <process-id>
network <network or ip address> <mask> <area-id> (mask contain wild card bits where 0 is match and 1 is "don't care" bit)
例:
router ospf 100
network area
network area 23
2. OSPF Authentication
Null authentication、simple password authentication、message digest authentication(MD5)
(1)Simple Authentication: ip ospf authentication-key <key>(this go under the specific interface)
area <area-id> authentication (this go under "router ospf <process-id>)
例:
interface 0
ip address
ip ospf authentication-key mypasswo