|
HCIE3.0
1.OSPF术语
OSPF防环,关乎到ABR(区域边界路由器)--3类LSA
ASBR(自治系统域的边界路由器)---5类\7类LSA
邻居和邻接
RID,IPv4地址格式,比如0.0.0.1,1.1.1.1,在链路状态协议作用更突显(选举DR、选举主备设备)。
如果自动选举,无所谓环回接口是否启动OSPF,都会选为RID。
ospf 1 router-id 5.5.5.5 //一种标识而已,设备上可以没有这个地址
area 0.0.0.56
network 10.1.56.5 0.0.0.0
[R6]ospf 1 router-id 0.0.0.6
Info: The configuration succeeded. You need to restart the OSPF process to validate the new router ID
<R6>reset ospf process //变更路由器ID需要重置进程
Warning: The OSPF process will be reset. Continue? [Y/N]:y
!
[R5]router id 0.0.5.5
1)回车能否成功 2)是否需要重启OSPF进程使其生效
[R5]router id 0.0.5.5
Info: Router ID has been modified, please reset the relative protocols manually to update the Router ID
一个设备上不同进程可以配置相同的RID?可以的!
全局路由器ID可以让不同的OSPF进程共用吗?可以的!
全局路由器id也会用在isis上么?ISIS一定会手工配置RID(系统ID)的
配置了router-id 没配置ospf的id。然后修改全局router id 后。ospf进程id会不会修改?不会!
手工去配置RID!
2.OSPF的邻居和邻居拍错
2.1 邻居neighbor
两个设备相互认识了对方(交互了Hello报文。而且Hello包中包含了对方的RID),但没有交换LSA;如果在Hello包中看到了自身的RID,则进入了2way(邻居)
默认请问串行链路(ppp/hdlc)是否有2way状态?没有
报文:Hello;DBD;LSrequest;LSUpdate;LSAck
维护邻居关系:Hello间隔时间和死亡时间
<R6>dis ospf interface s2/0/0
OSPF Process 1 with Router ID 0.0.0.6
Interfaces
Interface: 10.1.56.6 (Serial2/0/0) --> 10.1.56.5
Cost: 48 State: P-2-P Type: P2P MTU: 1500
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
2.2 NBMA环境下的邻居关系
非广播多路访问,不支持广播/组播
MA,多路访问(支持广播和组播)
环境为部分互联,R1和R4通信,R1和R5通信,R4和R5不能直接通信
为什么抓不到OSPF报文呢?因为链路不支持组播
在接口开启OSPF的前提下,手工指定邻居
[R1-ospf-1]peer 10.1.1.4 //容易犯的错误是忘记在R4、R5指定R1,华为设备需要双向单播指定邻居
Jun 4 2018 21:39:01-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=4.1.1.10, NeighborEvent=Start, NeighborPreviousState=Down, NeighborCurrentState=Attempt) //尝试状态,在NBMA环境下存在
[R1-ospf-1]peer 10.1.1.5
Jun 4 2018 21:39:03-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes event: neighbor status changed. (ProcessId=256, NeighborAddress=5.1.1.10, NeighborEvent=Start, NeighborPreviousState=Down, NeighborCurrentState=Attempt)
先有attempt还是先有初始化状态?对!
DOWN--->attempt--->初始化
[R1]dis ospf peer brief
OSPF Process 1 with Router ID 10.1.15.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Serial1/0/0 0.0.4.4 Full
0.0.0.0 Serial1/0/0 5.5.5.5 Full
---------------------------------------------------------------------
在NBMA环境下即使成功的创建了邻居,有可能有2种问题:1)分支之间缺少路由
2)即使有路由也无法通信。
作业:完成R1、R4、R5的邻居,初步的得到路由
|
|