Search this Blog

Friday, November 15, 2013

iBGP, next-hop inaccessible, no routes installed.


Trying to set up a new border gateway but the iBGP routes are not being installed and next hop is inaccessible. I use loopback interfaces and update-source. Am I missing something obvious?

Router 1 is ISR 2821, 12.4
Router 2 is 7301, 12.3

### gets all prefixes, not installed in routing table. next-hop is inaccessible.

rtr2#show ip bgp 8.8.8.8
BGP routing table entry for 8.8.8.0/24, version 0
Paths: (1 available, no best path)
  Not advertised to any peer
  33885 15169
    84.246.88.35 (inaccessible) from 100.100.0.1 (195.67.149.10)
      Origin IGP, metric 10, localpref 80, valid, internal

## No bgp routes in table
rtr2#show ip route | inc B
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
rtr2#



## config router 1

100.100.0.2     4        39302      21   77340 291227447    0    0 00:17:30        0

interface Loopback0
ip address 100.100.0.1 255.255.255.255
!
!
interface GigabitEthernet0/0.27
description iBGP link
encapsulation dot1Q 27
ip address 10.255.255.1 255.255.255.0
no ip proxy-arp
!
router bgp 65535
bgp router-id 195.67.149.10
no bgp fast-external-fallover
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 100.100.0.2 remote-as 65535
neighbor 100.100.0.2 ebgp-multihop 2
neighbor 100.100.0.2 update-source Loopback0
!
  no synchronization
  network 100.100.0.0 mask 255.255.224.0
  neighbor 100.100.0.2 activate
  default-metric 1
  no auto-summary
exit-address-family
!
ip route 100.100.0.2 255.255.255.255 10.255.255.2





## config router 2

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
100.100.0.1    4 65535  154518      41   943080    0    0 00:16:57   469741


interface Loopback0
ip address 100.100.0.2 255.255.255.255
!
interface GigabitEthernet0/1.27
description iBGP link
encapsulation dot1Q 27
ip address 10.255.255.2 255.255.255.0
no ip proxy-arp
no snmp trap link-status
!
router bgp 65535
bgp router-id 100.100.0.2
no bgp fast-external-fallover
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 100.100.0.1 remote-as 65535
neighbor 100.100.0.1 description router01
neighbor 100.100.0.1 ebgp-multihop 2
neighbor 100.100.0.1 update-source Loopback0
!
address-family ipv4
neighbor 100.100.1 activate
no auto-summary
no synchronization
exit-address-family
!
ip route 212.112.0.1 255.255.255.255 10.255.255.1

Yes , on r1 you are missing the following :
router bgp 65535
neighbor 100.100.0.2 next-hop-self


Citation - This blog post does not reflect original content from the author. Rather it summarizes content that are relevant to the topic from different sources in the web. The sources might include any online discussion boards, forums, websites and others.

No comments :

Post a Comment

 
/* Google Analytics begin ----------------------------------------------- */ /* Google Analytics end ----------------------------------------------- */