cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cctsay
New Contributor

AOS: route with ebgp vs. ospf but ospf wins?

Please advise why it happened this way

=>169.1.11.0/24 is the ebgp route

=>169.1.11.0/24 is the ospf route

 

But EBGP admin distance is 20 while OSPF admin distance is 110 so EBGP route should be preferred and active right?

Why below showed that it’s active on OSPF?

Regards,

C.

NV3430-backup#sh ver

ADTRAN, Inc. OS version R13.2.2.E

  Mainline Version: ENM.17.94

  P4 Changelist: 651357

  Checksum: C7A7575E

 Built on: Mon Aug  6 03:09:45 2018

Boot ROM version 13.03.00.SB

  Checksum: 70C3

  Built on: Fri Nov 10 08:04:44 2006

  Compatibility Version: 0

Copyright (c) 1999-2018, ADTRAN, Inc.

Platform: NetVanta 3430, part number 1200820E1

Flash: 33554432 bytes  DRAM: 134217727 bytes

 

NV3430-backup uptime is 1 year, 5 weeks, 1 day, 1 hour, 29 minutes, 1 second

 

System returned to ROM by Soft Reset

Current system image file is "NV3430A-R13-2-2-E.biz"

Boot system image file is "NV3430A-R13-2-2-E.biz"

Primary system configuration file is "startup-config"

NV3430-backup#

 

NV3430-backup#$rf one ipv4 neighbors 30.10.17.1 received-routes | i 169.1.11 

*  169.1.11.0/24       30.10.17.1                         3549 3549 10753 3549 i

 

NV3430-backup#show bgp  vrf one ipv4 169.1.11.0

 

VRF: one, as-2byte 3549:201911

BGP routing table entry for 169.1.11.0

Paths: (2 available, best #1)

  Not advertised to any peer

  3549

    NLRI:

    20.10.17.1

      from 22.10.18.1 (22.10.18.1)

      Origin IGP, path length 1, LocPrf 100, valid, internal, best

  3549 3549 10753 3549

    NLRI:

    30.10.17.1

      from 30.10.17.1 (10.241.15.5)

      Origin IGP, path length 4, valid, external

                                          

NV3430-backup#sh ip route vrf one 169.1.11.1

Routing entry for 169.1.11.0/24

  Known via "OSPF 101", type external 1       <<<OSPF wins?

  Distance 110, metric 0/111

  Routing Next Hop(s):

     21.10.18.2, via eth 0/2.21

       Route metric is 0/111, tag is 20

 

NV3430-backup#show run router bgp

Building configuration...

!

!

router bgp 65024

  neighbor 10.241.15.17

    remote-as 3549

    no shutdown

    exit

  neighbor 192.168.13.2

    remote-as 65024

    no shutdown

    exit

  neighbor 2001:460:54:6E10::1

    remote-as 3549

    no shutdown

    exit

  address-family ipv4

    network 0.0.0.0 mask 0.0.0.0

    redistribute static

    redistribute connected route-map SET-MGMT-COMMUNITY-CONNECTED

    neighbor 10.241.15.17

      route-map BACKUP-WAN-FROM-PE in

      route-map BACKUP-WAN-TO-PE out

      send-community standard

      soft-reconfiguration inbound

      no shutdown

      exit

    neighbor 192.168.13.2

      next-hop-self

      send-community standard

      soft-reconfiguration inbound

      no shutdown

      exit

    exit

  address-family ipv6

    redistribute static

    redistribute connected

    neighbor 2001:460:54:6E10::1

      route-map BGP-POLICY-BACKUP-IN in

      route-map BGP-POLICY-BACKUP-OUT out

      no shutdown

      exit

    exit

  vrf one

    neighbor 22.10.18.1

      remote-as 65024

      no shutdown

      exit

    neighbor 30.10.17.1

      local-as 10753

      remote-as 3549

      no shutdown

      exit

    address-family ipv4

      network 0.0.0.0 mask 0.0.0.0

      redistribute ospf 101 route-map OSPF2BGP

      redistribute static

      redistribute connected

      neighbor 22.10.18.1

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      neighbor 30.10.17.1

        route-map BACKUP-WAN-FROM-PE in

        route-map BACKUP-WAN-TO-PE out

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      exit

    exit

  vrf two

    neighbor 22.20.18.1

      remote-as 65024

      no shutdown

      exit

    neighbor 30.20.17.1

      remote-as 3549

      no shutdown

      exit

    address-family ipv4

      network 0.0.0.0 mask 0.0.0.0

      redistribute ospf 102 route-map LAN_RECEIVE_FULL_OSPF

      redistribute static

      redistribute connected

      neighbor 22.20.18.1

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      neighbor 30.20.17.1

        route-map BACKUP-WAN-FROM-PE in

        route-map BACKUP-WAN-TO-PE out

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      exit

    exit

  vrf three

    neighbor 22.30.18.1

      remote-as 65024

      no shutdown

      exit

    neighbor 30.30.17.1

      remote-as 3549

      no shutdown

      exit

    address-family ipv4

      network 0.0.0.0 mask 0.0.0.0

      redistribute ospf 103 route-map LAN_RECEIVE_FULL_OSPF

      redistribute static

      redistribute connected

      neighbor 22.30.18.1

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      neighbor 30.30.17.1

        route-map BACKUP-WAN-FROM-PE in

        route-map BACKUP-WAN-TO-PE out

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      exit

    exit

  vrf four

    neighbor 22.40.18.1

      remote-as 65024

      no shutdown

      exit

    neighbor 30.40.17.1

      remote-as 3549

      no shutdown

      exit

    address-family ipv4

      network 0.0.0.0 mask 0.0.0.0

      redistribute ospf 104 route-map LAN_RECEIVE_FULL_OSPF

      redistribute static

      redistribute connected

      neighbor 22.40.18.1

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      neighbor 30.40.17.1

        route-map BACKUP-WAN-FROM-PE in

        route-map BACKUP-WAN-TO-PE out

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      exit

    exit

  vrf five

    neighbor 22.60.18.1

      remote-as 65024

      no shutdown

      exit

    neighbor 30.50.17.1

      remote-as 3549

      no shutdown

      exit

    address-family ipv4

      network 0.0.0.0 mask 0.0.0.0

      redistribute ospf 105 route-map LAN_RECEIVE_FULL_OSPF

      redistribute static

      redistribute connected

      neighbor 22.60.18.1

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      neighbor 30.50.17.1

        route-map BACKUP-WAN-FROM-PE in

        route-map BACKUP-WAN-TO-PE out

        send-community standard

        soft-reconfiguration inbound

        no shutdown

        exit

      exit

    exit

!

end

NV3430-backup#      

0 Kudos