|
l OSPF : open shortest path first protocol(a kind of interior gateway) use to distrubute routing information within a single autonomous systeml OSPF cost=带宽/100M (也可以强行设置 ip ospf cost <value>)l OSPF 中area 0 作为backbonel routes that are generated from within an area ( the destination belongs to the area) are called intra-area routes. 这类路由在路由表中用O表示l routes that originate from other areas are called inter-area or summary routes. 这类路由在路由表中用O IA表示 l 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 network (mask contain wild card bits where 0 is match and 1 is "don't care" bit) 例: router ospf 100 network 192.213.0.0 0.0.255.255 area 0.0.0.0 network 128.213.1.1 0.0.0.0 area 232. OSPF Authentication Null authentication、simple password authentication、message digest authentication(MD5) (1)Simple Authentication: ip ospf authentication-key (this go under the specific interface) area authentication (this go under "router ospf ) 例: interface Ethernet 0 ip address 10.10.10.10 255.255.255.0 ip ospf authentication-key mypassword router ospf 100 network 10.10.0.0 0.0.255.255 area 0 area 0 authentication (2)MD5 authentication: ip ospf message-digest-key md5 (use under the interface) area authentication message-digest (use under "router ospf ) 例: interface ethernet 0 ip address 10.10.10.10 255.255.255.0 ip ospf message-digest-key 10 md5 mypassword router ospf 100 network 10.10.0.0 0.0.255.255 area 0 area 0 authentication message-digest 3. virtual link (use for two purpose : a. link an area that does not have a physical connection to the backbone b. patching the backbone in case discontinuity of area 0 occurs) area virtual-link (area-id 是作为传输的area号,即做virtual link的两个area之间的area, RID是做virtual link 的两个路由器的id ,一般是路由器上最大的ip address或最大的loopback地址) 例: 路由器RTA 地址为1.1.1.1 在area 1 中, 路由器RTB 地址为2.2.2.2 在area 0 中, area0 和area1 通过area 2 做virtual link. RTA# router ospf 100 area 2 virtual-link 2.2.2.2 RTB# router ospf 100 area 2 virtual-link 1.1.1.1 4. Adjacencies: ip ospf hello-interval ip ospf dead-interval ip ospf priority <value> (value 值缺省为1,设为0则该路由器不为DR、BDR) sh ip ospf interface , sh ip ospf neighbor 验证 &nb |
|