HDLC配置
RA---------RB
RA上配置:
int s0/0
ip add 192.168.0.1 255.255.255.0 //配置端口IP地址
clock rate 1000000 //DEC端口,需要配置时钟
encapsulation hdlc //封装HDLC协议
no shutdown
RB上的配置:
int s0/0
ip add 192.168.0.2 255.255.255.0
encapsulation hdlc //两端必须协议一致
no shutdown
PPP配置:
OSPF单区域配置:
router ospf 20
network +网络地址 +子网掩码+area +区域编号 //宣告网络到区域内
OSPF多区域配置:
area area-id stub //Stub区域的配置,末梢区域配置
area + area-id +stub //配置该区域为Stub区域
area area-id stub no-summary //完全末梢(Totally Stub)区域配置
area + area-id +stub no-summary //配置该区域为Stub区域
show ip ospf database //查看OSPF链路状态数据库,
show ip ospf database router //显示OSPF链路状态数据库中的类型1的LSA信息
show ip ospf database network //显示OSPF链路状态数据库中的类型2的LSA信息
show ip ospf database summary //显示OSPF链路状态数据库中的类型3的LSA信息
show ip ospf database asbr-summary //显示OSPF链路状态数据库中的类型4的LSA信息
show ip ospf database external //显示OSPF链路状态数据库中的类型5的LSA信息
show ip ospf database nssa-external //显示OSPF链路状态数据库中的类型7的LSA信息
注意:末节和完全末节区域需要满足以下条件
1.区域只有一个出口<