asbr自制系统边界路由器
lsa类型
1 router lsas
2 network lsas
3or4 summary lsas
5 qutonomous system external lsas
6 multicast ospf lsa
7 defained for not-fo-stubby areas
8 external attribute lsa for border gateway protocol(bgp)
9,10,11 opaque lsas
1类lsa router lsa
1.传播范围
2.通告者
3.内容每台运行ospf的路由器都会产生1类lsa
只能在本区域传播不能超越abr
1类lsa包含我直连的拓扑信息和通告的链路类型
link id(链路类型) adv router(通告者)
lsa1 rid rid
show ip ospf database router (查看1类lsa的数据库)
同一个区域的路由器数据库是相同的。
2类lsa network lsa
只有ma网络才会出现2类lsa
只能在本区域传不能传出abr
dr通告2类的lsa信息
描述本ma网络有多少台运行ospf的路由器。多少位掩码
link id adv router
lsa2 dr's ip dr's rid
show ip ospf data network(查看2类lsa数据库)
lsa2是结合lsa1来用的。
3类lsa summary lsa
把1类和2类做了结合传给其他区域。
传播范围整个opsf区域。会泛红到整个自制系统
3类是由abr产生的。通告的。
3类lsa包含的内容,域间路由。
o ia标示域间路由。
o 一类lsa学到的路由
link id adv router
lsa3 域间路由(oia) abr rid
show ip ospf summary (查看3类lsa数据库)穿越一个abr就会标识我这个abr的rid
5类lsa external lsa
重发布进ospf就叫域外路由5类lsa
传播范围整个ospf域,但是不属于任何一个区域。
5类lsa是由asbr通告进来的。
包含内容域外路由。
只有重发布的时候,出现5类lsa才是asbr
show ip ospf border-routers(查看abr和asbr路由器)
o e2 5类lsa重发布进来的路由。默认oe2。
link id adv router
lsa5 域外路由(oe2) asbr-rid
通告者是asbr,通告者传播过程不变。
4类lsa summary lsa
告诉其他区域asbr所在的位置。
传播范围传播所有ospf区域,除了asbr所在的区域。
link id adv router
lsa4 asbr's rid abr's rid abr会随着传递经过的abr改变
lsa1 域内路由
lsa3 域间路由
lsa5 域外路由
o e2 cost 20 不加cost
任何路由协议重发布进入ospf都是seed cost=20
o e1 cost 20+经过路由器接口的cost
ospf lsdb 超载保护措施
router(config-router)#
max-lsa maximum-number [threshold-percentage75%] [warning-only]
[ignore-time minutes] [ignore-count count-number] [reset-time minutes]设置收到超过一定量的lsdb进行措施。非自己产生的lsa.
实验:
r2:
router ospf 110
max-lsa 4 (最多接受3条lsa) ignore-time 1 (等待1分钟)
show ip ospf
更改cost
routera(config-if)#ip ospf cost interface-cost
routera(config-router)#auto-cost reference-bandwitch ref-bw
由于serial口cost=64,10M接口=10,100M接口=1,1000M接口=1,所以更改10^8/带宽的分子让100M接口1000M接口cost区分开。
r1:
router ospf 110
auto-cost reference-bandwitch 1000(设置10^9默认10^8建议在每台路由器都做)
ospf汇总
域间汇总abr
router(config-router)#area area-id range address mask [advertise默认通告汇总路由 | not-advertise不宣告汇总路由] [cost cost默认汇总cost是所有明细路由cost值最小的]
域外汇总asbr
router(config-router)#summary-address ip-address mask [not-advertise](做过滤) [tag tag]
向ospf区域注入默认路由
1.default-information originate,
本地要有默认路由,下放默认路由cost是1,o*e2 5型lsa
2.default-information originate always在本地没有默认路由情况还可以下发默认路由
r1#
router ospf 100
net 10.1.1.1 0.0.0.0 area 0
default-information originate metric 10
ip route 0.0.0.0 0.0.0.0 198.1.1.2