OSPF使用路由标记精确重分布

2012-11-09

    router-id x.x.x.x   配OSPF路由器RID
    summary-address x.x.x.x x.x.x.x    路由聚合
    redistribute connected subnets    重分布直连路由
    summary-address x.x.x.x x.x.x.x tag x   给聚合路由打标记
    redistribute ospf x metric x route-map xxx
    route-map xxx permit 10
    match tag x       只重分发打标记的路由
    ip ospf authentication-key xxx
    area x authentication    针对区域做明文认证
    ip ospf message-digest-key 1 md5 xxx
    area x authentication message-digest  针对区域做密文认证,在认证期间可以改密码,且不产生断流现象
    service password-encryption   对明文密码加密
    area x default-cost xxx  修改外部路由的默认cost值,仅在ABR上工作
    area x stub     只收1、2、3类LSA,且有一条3类的默认路由
    area x stub no-summary  只收1、2类LSA,且有一条3类得默认路由,在ABR上敲
    area x nssa     只收1、2、3、7类LSA,7类LSA-->5类LSA,5类LSA-X->7类LSA
    area x nssa no-summary   收1、2、7类LSA,有一条3类的默认路由,在ABR上敲
    area x nssa default-information-originate   ABR向NSSA区域产生一条默认的7类LSA
    =========================================================
    area x virtual-link x.x.x.x    在"ABR"之间创建虚链路
    area x virtual-link x.x.x.x authentication
    area x virtual-link x.x.x.x authentication-key xxx   在虚链路上启用明文认证
    area x virtual-link x.x.x.x authentication message-digest
    area x virtual-link x.x.x.x message-digest-key xxx   在虚链路上启用密文认证,定期更改密文密码,不会产生断流现象
    area 0 authentication [message-digest]
    area x virtual-link x.x.x.x authentication-key xxx   对区域0做了明文认证,需要给虚链路两端添加明文密码,并启用对区域0的认证
    area x virtual-link x.x.x.x message-digest-key 1 md5 xxx  对区域0做了明文认证,需给虚链路两端添加密文密码,并启用对区域0的认证
    area x virtual-link x.x.x.x authentication null    屏蔽虚链路上对区域0的认证
    area x virtual-link x.x.x.x hello-interval xxx dead-interval xxx   修改虚链路两端的hello、dead时间,必须一致才能建邻居。
    默认hello 10s,NBMA网络hello 30s,dead是hello的4倍。
    area x virtual-link x.x.x.x retransmit-interval xxx   修改虚链路上LSA重传间隔,本地有效
    area x virtual-link x.x.x.x transmit-delay xxx   修改虚链路上传播LSA的延迟,本地有效
    ip ospf cost xxx   修改路由方向入接口的cost值,不推荐使用该命令
    auto-cost reference-bandwidth xxx   修改OSPF参考带宽,默认时OSPF不能对100M或100M之上的接口进行cost值计算
    =========================================================
    ip route 0.0.0.0 0.0.0.0 s1/0
    default-information originate  向OSPF区域发布一条缺省路由0.0.0.0
    default-information originate always  不管路由表中是否有默认路由,都强制向OSPF区域发布缺省路由0.0.0.0
    default-information originate metric xxx   修改发布的默认路由的metric值大小,默认=1
    default-information originate always metric xxx  修改强制发布的默认路由的metric的大小,默认=1
    default-information originate metric-type [1 2]  修改发布的默认路由的metric类型,默认是type 2,只计算外部成本
    default-information originate always metric-type [1 2]
    access-list 1 permit 3.3.3.0 0.0.0.3
    route-map ccna permit 10
    match ip address 1
    default-information originate route-map ccna 控制缺省路由的发布。仅当路由条目3.3.3.0/30存在时,才向OSPF区域发布缺省路由。
    default-metric xxx   修改重分布路由的默认metric值,但是如果重分布时指定了metric,则不受该命令限制。
    默认重分发进OSPF区域的metric为20,除BGP为1。
    distance xxx   修改OSPF的管理距离,默认为110
    distance xxx x.x.x.x [x.x.x.x mask]   修改指定源的路由的管理距离
    distance xxx x.x.x.x [x.x.x.x mask] access-list-number    通过访问列表修改特定源来的特定条目的管理距离。
    distance ospf external xxx   修改OSPF外部路由的管理距离
    distance ospf inter-area xxx 修改OSPF区域间路由的管理距离
    distance ospf intra-area xxx 修改OSPF区域内路由的管理距离
    distribute-list x in  分发列表控制路由条目放入路由表
    distribute-list x in int s1/0  分发列表应用在不同的接口上,控制过滤不同的路由条目
    passive-interface fa0/0  设置被动接口。被动接口不运行OSPF,减少协议流量。
    passive-interface default
    no passive-default
    redistribute eigrp 1 subnets tag xxx   给OSPF重分布的路由打标记。主要用于在过滤路由条目时通过route-map来引用。
    redistribute eigrp 1 subnets metric 55  修改重分布的路由metric值。
    redistribute eigrp 1 subnets metric 55 metric-type 1  修改指定度量,并改变外部类型。
    redistribute eigrp 1 subnets metric 55 metric-type 1 tag xxx
    redistribute eigrp 1 subnets route-map xxx   使用route-map 来过滤路由
    =========================================================
    route-map xxx permit 10
    match ip add x
    set tag x
    redistribute eigrp 1 subnets route-map xxx    给重分布的路由打标记
    route-map xxx permit 10
    match tag x
    redistribute eigrp 1 subnets route-map xxx    只重分布打了标记x的路由
    ip ospf flood-reduction   接口上配置,使LSA的定期更新失去作用。默认时,30分钟更新一下所有LSA。
    ip ospf demand-circuit  将链路改为按需电路。hello定期更新被抑制。
    debug ip ospf events
    ip ospf database-filter all out   阻止接口上的LSA扩散。
    ip ospf retransmit-interval x   修改传播LSA的重发间隔。
    ip ospf transmit-delay x  设置传送延迟。本地有效。

  考试大温馨提示:本内容来源于网络,仅代表作者个人观点,与本站立场无关,仅供您学习交流使用。其中可能有部分文章经过多次转载而造成文章内容缺失、错误或文章作者不详等问题,请您谅解。如有侵犯您的权利,请联系我们,本站会立即予以处理。

分享到:
0
相关阅读
友情链接
© 2018 我考网 http://www.woexam.com 中国互联网举报中心 湘ICP备18023104号 京公网安备 11010802020116号
违法和不良信息举报:9447029@qq.com