问题描述
四台路由器分别运行在两个ospf进程下OSPF100,OSPF400,其中SW2,SW4作为两个ospf进程的边界路由器ASBR。将ospf100中的5类LSA重发布进OSPF400中,观察SW1上学习到的5类LSA 10.1.0.0/16的通告路径
1)SW2、SW4作为ASBR将OSPF 100重发布进OSPF 400:
SW2:
#
ospf 400 router-id 2.2.2.2
import-route ospf 100 cost 10
area 0.0.0.0
network 192.168.12.2 0.0.0.0
network 192.168.24.2 0.0.0.0
#
SW4:
ospf 400 router-id 4.4.4.4
import-route ospf 100 cost 10
area 0.0.0.0
network 192.168.14.4 0.0.0.0
network 192.168.24.4 0.0.0.0
#
2)SW1上观察ospf 400下所学习到的5类LSA 10.1.0.0/16:
[SW1]dis ip routing-table 10.1.0.0
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Table : Public
Summary Count : 1
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.0.0/16 O_ASE 150 10 D 192.168.12.2 GigabitEthernet0/0/0
[SW1]dis ospf lsdb ase 10.1.0.0
OSPF Process 400 with Router ID 192.168.12.1
Link State Database
Type : External
Ls id : 10.1.0.0
Adv rtr : 2.2.2.2
Ls age : 1090
Len : 36
Options : E
seq# : 80000002
chksum : 0x8c27
Net mask : 255.255.0.0
TOS 0 Metric: 10
E type : 2
Forwarding Address : 0.0.0.0
Tag : 1
Priority : Low
从上述SW1上查看的10.1.0.0/16的ADV路由器可以看出,此时只有SW2向ospf 400中通告5类的LSA。
(2)为了验证这一判断,断开SW1和SW2之间的线路,再次查看SW1上ospf 400中lsdb 10.1.0.0/16的ADV路由器:
[SW1]dis ospf lsdb ase 10.1.0.0
OSPF Process 400 with Router ID 192.168.12.1
Link State Database
Type : External
Ls id : 10.1.0.0
Adv rtr : 2.2.2.2
Ls age : 1693
Len : 36
Options : E
seq# : 80000002
chksum : 0x8c27
Net mask : 255.255.0.0
TOS 0 Metric: 10
E type : 2
Forwarding Address : 0.0.0.0
Tag : 1
Priority : Low
在SW4上观察此条LSA的ADV路由器:
<SW4>dis ospf lsd ase 10.1.0.0
OSPF Process 100 with Router ID 192.168.14.4
Link State Database
Type : External
Ls id : 10.1.0.0
Adv rtr : 192.168.23.3
Ls age : 846
Len : 36
Options : E
seq# : 80000003
chksum : 0xd67e
Net mask : 255.255.0.0
TOS 0 Metric: 1000
E type : 2
Forwarding Address : 0.0.0.0
Tag : 1
Priority : Low
OSPF Process 400 with Router ID 4.4.4.4
Link State Database
Type : External
Ls id : 10.1.0.0
Adv rtr : 2.2.2.2
Ls age : 1763
Len : 36
Options : E
seq# : 80000002
chksum : 0x8c27
Net mask : 255.255.0.0
TOS 0 Metric: 10
E type : 2
Forwarding Address : 0.0.0.0
Tag : 1
Priority : Low
从上述可以看出,此时5类LSA 10.1.0.0/16仍然是由SW2产生并在ospf 400中宣告
解决方案
在OSPF中当存在两台ASBR同时宣告5类LSA时,将仅仅由router-id较小的ASBR负责宣告5类LSA。