IOSだったらLoopbackインターフェースでip ospf network point-to-point
したら切り替えられるけど、IOS-XRvではだめだった。
RP/0/0/CPU0:XR2(config-ospf-ar-if)#do sh ospf interface Loopback100
Wed Apr 24 00:25:29.432 UTC
Loopback100 is up, line protocol is up
Internet Address 100.12.12.12/24, Area 0
Process ID 1, Router ID 12.12.12.12, Network Type LOOPBACK, Cost: 1
Loopback interface is treated as a stub Host
上記のLoopback100をIOSみたいにOSPFに/32以外で広報しようとpoint-to-pointにしてもそれではだめ。スタブネットワークとして広報できるようにする設定が必要。
RP/0/0/CPU0:XR2(config-ospf-ar-if)#do sh run router ospf 1 area 0 interface Lo$
Wed Apr 24 00:31:27.788 UTC
router ospf 1
area 0
interface Loopback100
network point-to-point
loopback stub-network enable ←これ。デフォルトはdisable
!
!
!
こうするとstub networkとして扱われ、Loopbackインターフェースに設定したプレフィックス長で広報されるようになる。
RP/0/0/CPU0:XR2(config-ospf-ar-if)#do sh ospf interface Loopback100
Wed Apr 24 00:29:02.728 UTC
Loopback100 is up, line protocol is up
Internet Address 100.12.12.12/24, Area 0
Process ID 1, Router ID 12.12.12.12, Network Type LOOPBACK, Cost: 1
Loopback interface is treated as a stub Network ←ここ
RP/0/0/CPU0:XR1(config-ospf-ar)#do sh route ospf
Wed Apr 24 00:25:09.413 UTC
O 12.12.12.12/32 [110/2] via 10.11.12.12, 00:21:24, GigabitEthernet0/0/0/0.1112
O 100.12.12.12/32 [110/2] via 10.11.12.12, 00:01:13, GigabitEthernet0/0/0/0.1112
O 100.112.112.112/32 [110/2] via 10.11.12.12, 00:01:13, GigabitEthernet0/0/0/0.1112
O 100.122.122.122/32 [110/2] via 10.11.12.12, 00:01:13, GigabitEthernet0/0/0/0.1112
O 192.168.101.0/24 [110/2] via 10.1.11.1, 00:13:35, GigabitEthernet0/0/0/0.111
O 192.168.102.0/24 [110/2] via 10.1.11.1, 00:13:30, GigabitEthernet0/0/0/0.111
O 192.168.103.1/32 [110/2] via 10.1.11.1, 00:13:30, GigabitEthernet0/0/0/0.111
上記の100.12.12.12/32が
RP/0/0/CPU0:XR1(config-ospf-ar)#do sh route ospf
Wed Apr 24 00:27:27.753 UTC
O 12.12.12.12/32 [110/2] via 10.11.12.12, 00:23:42, GigabitEthernet0/0/0/0.1112
O 100.12.12.0/24 [110/2] via 10.11.12.12, 00:00:30, GigabitEthernet0/0/0/0.1112
O 100.112.112.112/32 [110/2] via 10.11.12.12, 00:03:31, GigabitEthernet0/0/0/0.1112
O 100.122.122.122/32 [110/2] via 10.11.12.12, 00:03:31, GigabitEthernet0/0/0/0.1112
O 192.168.101.0/24 [110/2] via 10.1.11.1, 00:15:54, GigabitEthernet0/0/0/0.111
O 192.168.102.0/24 [110/2] via 10.1.11.1, 00:15:49, GigabitEthernet0/0/0/0.111
O 192.168.103.1/32 [110/2] via 10.1.11.1, 00:15:49, GigabitEthernet0/0/0/0.111
ちゃんと/32以外で広報される。
コメント