中国安防论坛

 找回密码
 注册
查看: 2609|回复: 2

ospf

[复制链接]

安防小学生

Rank: 2

积分
61
发表于 2004-4-8 18:57:39 | 显示全部楼层 |阅读模式
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
男儿当自强

安防知名大师

天道酬勤

Rank: 7Rank: 7Rank: 7

积分
1151
发表于 2004-4-8 19:02:48 | 显示全部楼层

re:慢慢消化

慢慢消化
www.jxcctv.com manager@jxcctv.com JUNXIANG TECHNOSONIC [IMG]http://bbs.tucoo.com/UploadFile056/2005-12/200512132027034891.jpg[/IMG]
回复

使用道具 举报

安防精英

Rank: 4

积分
458
QQ
发表于 2005-11-17 20:57:43 | 显示全部楼层

re:慢慢消化

眼晕
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

安豆网|Archiver|手机版|中国安防论坛 ( 粤ICP备09063021号 )

GMT+8, 2024-5-6 23:30 , Processed in 0.053487 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表