OSPF
LSA
- 1 Router LSA (路由器 LSA)
- 2 Network LSA (网络 LSA)
- 3 Network Summary LSA (网络汇总 LSA)
- 4 ASBR Summary LSA (ASBR 汇总 LSA)
- 5 AS External LSA (AS 外部 LSA)
- 7 NSSA LSA (非完全末梢区域 LSA)
Route LSA
Network LSA
Network Summary LSA
ASBR Summary LSA
AS External LSA
NSSA LSA
链路状态类型
不同网络类型中的 DR 选举操作
区域路由
区域内路由
SPF
区域间路由
非骨干区域间不能直接连接,否则会产生环路
3 类 LSA 经过 ABR 转发至其他区域后将不会返回原先区域
ABR 从非骨干区域收到的 3 类LSA 不能用于区域间路由的计算
虚连接
Stub 区域
Totally Stub
NSSA 区域
Totally NSSA
相关指令
系统视图
查看所有激活 OSPF 的接口信息
display ospf interface all
查看邻居信息
display ospf peer
查看 OSPF LSDB 信息
display ospf lsdb
接口视图
指定 OSPF 开销值
# ospf cost 开销值
ospf cost 100
指定 OSPF DR 优先级
# ospf dr-priority 优先级
ospf dr-priority 100
指定 OSPF 网络类型
# ospf network-type 类型
ospf network-type p2p
指定该接口使能 OSPF
# ospf enable 进程号 area 区域号
ospf enable 1 area 1
指定接口 Hello 发送间隔(两端必须一致)
# ospf timer Hello 时间
ospf timer Hello 15
指定接口认证
ospf authentication-mode 加密方式 ID 密文格式 密码
ospf authentication-mode md5 1 cipher ps123456
OSPF 视图
外部路由汇总
# asbr-summary IP地址 子网掩码
asbr-summary 192.168.0.0 255.255.0.0
指定静默接口
# silent-interface {Cellular|GigabitEthernet|all} [参数]
silent-interface GigabitEthernet 0/0/1
区域视图
创建虚连接
# vlink-peer 对端 Route ID
vlink-peer 1.1.1.1
指定 Stub 区域
stub
指定 Totally Stub 区域
stub no-summary
边缘路由汇总
# abr-summary IP 地址 子网掩码
abr-summary 192.168.0.0 255.255.0.0
- 本文链接:https://gentrabbit.moe/2021/12/01/HCIP-DATACOM-note2/
- 版权声明:本博客所有文章除特别声明外,均默认采用 许可协议。