cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1366
Views
0
Helpful
2
Replies

Advertising directly connected routes to MP-BGP

amonge123
Level 1
Level 1

Hello,

 

I have a very simple configuration:

 

vrf VRF-A
 address-family ipv4 unicast
  import route-policy PASS-ALL
  import route-target
   65000:100
  !
  export route-policy PASS-ALL
  export route-target
   65000:100
  !
 !
!

route-policy PASS-ALL
  pass
end-policy

router bgp 65000
 address-family ipv4 unicast
 !
 address-family vpnv4 unicast
 !
 neighbor-group RR
  remote-as 65000
  update-source Loopback0
  address-family vpnv4 unicast
  !
 !
 neighbor 172.16.5.5
  use neighbor-group RR
 !
 neighbor 172.16.6.6
  use neighbor-group RR
 !
 vrf VRF-A
  rd 65000:1
  address-family ipv4 unicast
  !
  neighbor 10.0.11.2
   remote-as 65001
   address-family ipv4 unicast
    route-policy PASS-ALL in
    route-policy PASS-ALL out
   !
  !

===============

 

Only the routes learned via EBGP are readvertised towards the vpnv4 Route Reflectors:

 

RP/0/0/CPU0:PE1#show route vrf VRF-A                      
Sun Jun 22 17:32:00.080 UTC

Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
       U - per-user static route, o - ODR, L - local, G  - DAGR
       A - access/subscriber, a - Application route, (!) - FRR Backup path

Gateway of last resort is not set

C    10.0.11.0/30 is directly connected, 00:02:20, GigabitEthernet0/0/0/0.11101
L    10.0.11.1/32 is directly connected, 00:02:20, GigabitEthernet0/0/0/0.11101
B    10.0.120.0/24 [20/0] via 10.0.11.2, 00:01:02
B    10.1.1.1/32 [20/0] via 10.0.11.2, 00:01:02
C    10.1.21.0/30 is directly connected, 00:19:13, GigabitEthernet0/0/0/1
L    10.1.21.1/32 is directly connected, 00:19:13, GigabitEthernet0/0/0/1


RP/0/0/CPU0:PE1#show bgp vpnv4 unicast advertised summary
Sun Jun 22 17:32:01.770 UTC
Network            Next Hop        From            Advertised to
Route Distinguisher: 65000:1
10.0.120.0/24      172.16.1.1      10.0.11.2       172.16.5.5
                                   10.0.11.2       172.16.6.6
10.1.1.1/32        172.16.1.1      10.0.11.2       172.16.5.5
                                   10.0.11.2       172.16.6.6

 

===============

 

Do you know how I can advertise the directly connected routes? Sorry if my question is too basic but I'm kind of stuck.


Thanks!

1 Accepted Solution

Accepted Solutions

kszarkowicz
Level 1
Level 1

you need to add 'redistribute connected' to your BGP config:

 

router bgp 65000
 vrf VRF-A
  address-family ipv4 unicast
   redistribute connected
  !
 !
!

View solution in original post

2 Replies 2

amonge123
Level 1
Level 1

I sent the question twice, so I deleted the other discussion. Please answer to this one :)

kszarkowicz
Level 1
Level 1

you need to add 'redistribute connected' to your BGP config:

 

router bgp 65000
 vrf VRF-A
  address-family ipv4 unicast
   redistribute connected
  !
 !
!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: