LDP session down in OcNOS


issue at LDP
R3
ldp issue
Leaf3#show mpls ldp session
Codes: m - MD5 password is not set/unset.
       g - GR configuration not set/unset.
       t - TCP MSS not set/unset.
       Session has to be cleared manually

Code  Peer IP Address      IF Name    My Role    State      KeepAlive  UpTime
       1.1.1.1            eth3       Active    OPERATIONAL   30    00:10:56
       1.1.1.4            eth6       Passive   NON_EXISTENT  30        DOWN
       1.1.1.2            eth2       Active    NON_EXISTENT  30        DOWN

R3
missing route learn from OSPF
Leaf3#show ip route ospf
IP Route Table for VRF "default"
O            1.1.1.1/32 [110/2] via 10.10.13.1, eth3, 00:37:18
O            10.10.12.0/24 [110/2] via 10.10.23.2, eth2, 00:37:31
                           [110/2] via 10.10.13.1, eth3
O            10.10.14.0/24 [110/2] via 10.10.34.4, eth6, 00:37:31
                           [110/2] via 10.10.13.1, eth3
O            10.10.24.0/24 [110/2] via 10.10.23.2, eth2, 00:37:31
                           [110/2] via 10.10.34.4, eth6

Gateway of last resort is not set

R4
show mpls ldp session
Leaf4#show mpls ld session
Codes: m - MD5 password is not set/unset.
       g - GR configuration not set/unset.
       t - TCP MSS not set/unset.
       Session has to be cleared manually

Code  Peer IP Address      IF Name    My Role    State      KeepAlive  UpTime
       1.1.1.3            eth6       Active    NON_EXISTENT  30        DOWN
       1.1.1.1            eth2       Active    NON_EXISTENT  30        DOWN
       1.1.1.2            eth3       Active    NON_EXISTENT  30        DOWN


ip ospf interface
Leaf4#show ip ospf  interface brief
Interface    PID   Area            Intf ID    Cost  State           Neighbors  Status
eth2         1     0.0.0.0         4          1     Point-To-Point  1            Up

eth3         1     0.0.0.0         5          1     Point-To-Point  1            Up

eth6         1     0.0.0.0         8          1     Point-To-Point  1            Up



missing interface lo
Solution

wrong ip address
interface lo
 ip address 127.0.0.1/8
 ip address 10.20.30.4/32 secondary  <<<<<<<<<<<< wrong iP address
 ipv6 address ::1/128
 enable-ldp ipv4
!





Leaf3 config

MPLS LDP config
Leaf3#show running-config ldp
!
router ldp
 router-id 1.1.1.3
 inter-area-lsp lo
 session-protection
 targeted-peer ipv4 1.1.1.1
  exit-targeted-peer-mode
 targeted-peer ipv4 1.1.1.2
  exit-targeted-peer-mode
 transport-address ipv4 1.1.1.3
!
!
interface eth2
 enable-ldp ipv4
!
interface eth3
 enable-ldp ipv4
!
interface eth6
 enable-ldp ipv4
!
Leaf3#show running-config mpls
!
. . . 
!
interface eth2
 label-switching
!
interface eth3
 label-switching
!
interface eth6
 label-switching
!
!
!