The database of external routes is not filled after turning on NAT44 VPP.
I think it is necessary to somehow disable NAT44 for the OSPF protocol
set protocols ospf area 0.0.0.0 network '10.31.31.0/24' set protocols ospf interface eth1 mtu-ignore
set vpp nat44 address-pool translation address '1.120.251.0-1.120.251.255' set vpp nat44 exclude rule 10 external-interface 'eth0' set vpp nat44 exclude rule 10 local-port '22' set vpp nat44 exclude rule 10 protocol 'tcp' set vpp nat44 exclude rule 15 external-interface 'eth1' set vpp nat44 exclude rule 15 local-port '22' set vpp nat44 exclude rule 15 protocol 'tcp' set vpp nat44 exclude rule 20 local-address '2.200.60.11' set vpp nat44 exclude rule 20 protocol 'all' set vpp nat44 exclude rule 30 local-address '10.31.31.202' set vpp nat44 exclude rule 30 protocol 'all' set vpp nat44 interface inside 'eth1' set vpp nat44 interface outside 'eth0' set vpp settings cpu main-core '7' set vpp settings interface eth0 driver 'dpdk' set vpp settings interface eth1 driver 'dpdk' set vpp settings lcp netlink rx-buffer-size '536870912' set vpp settings memory main-heap-page-size 'default-hugepage' set vpp settings memory main-heap-size '4G' set vpp settings nat44 no-forwarding set vpp settings nat44 timeout icmp '30' set vpp settings nat44 timeout tcp-established '1800' set vpp settings nat44 timeout udp '30' set vpp settings physmem max-size '16G' set vpp settings statseg page-size 'default-hugepage' set vpp settings statseg size '256M' set vpp settings unix poll-sleep-usec '12'
#show ip ospf OSPF Routing Process, Router ID: 2.200.60.11 Supports only single TOS (TOS0) routes This implementation conforms to RFC2328 RFC1583Compatibility flag is disabled OpaqueCapability flag is disabled Initial SPF scheduling delay 200 millisec(s) Minimum hold time between consecutive SPFs 1000 millisec(s) Maximum hold time between consecutive SPFs 10000 millisec(s) Hold time multiplier is currently 1 SPF algorithm last executed 15h03m46s ago Last SPF duration 16 usecs SPF timer is inactive LSA minimum interval 5000 msecs LSA minimum arrival 1000 msecs Write Multiplier set to 20 Refresh timer 10 secs Maximum multiple paths(ECMP) supported 256 Administrative distance 110 Number of external LSA 0. Checksum Sum 0x00000000 Number of opaque AS LSA 0. Checksum Sum 0x00000000 Number of areas attached to this router: 1 Area ID: 0.0.0.0 (Backbone) Number of interfaces in this area: Total: 1, Active: 1 Number of fully adjacent neighbors in this area: 0 Area has no authentication SPF algorithm executed 2 times Number of LSA 1 Number of router LSA 1. Checksum Sum 0x00005ff5 Number of network LSA 0. Checksum Sum 0x00000000 Number of summary LSA 0. Checksum Sum 0x00000000 Number of ASBR summary LSA 0. Checksum Sum 0x00000000 Number of NSSA LSA 0. Checksum Sum 0x00000000 Number of opaque link LSA 0. Checksum Sum 0x00000000 Number of opaque area LSA 0. Checksum Sum 0x00000000
#show ip ospf neighbor Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL 172.16.1.1 128 2-Way/DROther 15h04m13s 35.010s 10.31.31.1 eth1:10.31.31.202 0 0 0 2.200.60.6 1 2-Way/DROther 15h04m12s 37.716s 10.31.31.101 eth1:10.31.31.202 0 0 0 2.200.60.8 1 2-Way/DROther 15h04m12s 37.716s 10.31.31.201 eth1:10.31.31.202 0 0 0 2.200.60.2 1 2-Way/DROther 15h04m12s 37.716s 10.31.31.245 eth1:10.31.31.202 0 0 0 2.200.60.14 1 2-Way/DROther 15h04m09s 33.383s 10.31.31.250 eth1:10.31.31.202 0 0 0 192.168.254.1 128 ExStart/Backup 15h04m12s 31.228s 10.31.31.253 eth1:10.31.31.202 0 0 0 2.200.60.9 180 ExStart/DR 15h04m12s 37.716s 10.31.31.254 eth1:10.31.31.202 0 0 0
show ip ospf interface eth1
eth1 is up
ifindex 6, MTU 1500 bytes, BW 40000 Mbit <UP,LOWER_UP,BROADCAST,RUNNING,MULTICAST>
Internet Address 10.31.31.202/24, Broadcast 10.31.31.255, Area 0.0.0.0
MTU mismatch detection: disabled
Router ID 2.200.60.11, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DROther, Priority 1
Designated Router (ID) 2.200.60.9 Interface Address 10.31.31.254/24
Backup Designated Router (ID) 192.168.254.1, Interface Address 10.31.31.253
Multicast group memberships: OSPFAllRouters
Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
Hello due in 3.012s
Neighbor Count is 7, Adjacent neighbor count is 0
Graceful Restart hello delay: 10s
LSA retransmissions: 0 OSPF Router with ID (2.200.60.11)
Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum Link count
2.200.60.11 2.200.60.11 1195 0x80000022 0x5ff5 1