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

BGP Prefix-list & Route-map Functionality ?

kamal.malkari
Level 1
Level 1

Hi All,

I am currently working on filtering static & connected route updates between two(R1 & R2) IBGP neighbours.

I have static & connected routes in R1 from which I want to send only limited routes to R2.

Satic & Connected routes in R1:

<table>

Prot Type Dest Address/Mask Next-hop Age Distance Metric Tag Interface name
---- ---- ----------------- -------- --- -------- ------ ---------- --------------
static 10.1.1.1/32 0.0.0.0 1h41m11s 0 0 0 utun
connected 10.2.1.0/24 10.2.1.1 1h41m16s 0 0 0 ueth1
local 10.2.1.1/32 0.0.0.0 1h41m16s 0 0 0 directly connected
connected 10.3.0.0/16 10.3.5.1 1h41m16s 0 0 0 ueth2
local 10.3.5.1/32 0.0.0.0 1h41m16s 0 0 0 directly connected
connected 10.10.246.0/24 10.10.246.13 1h41m16s 0 0 0 eth0
local 10.10.246.13/32 0.0.0.0 1h41m17s 0 0 0 directly connected
static 192.168.1.0/24 10.10.246.40 1h41m12s 1 1 0 eth0
static 192.168.2.0/24 10.10.246.40 1h41m12s 1 1 0 eth0
static 192.168.3.0/24 10.10.246.40 1h41m12s 1 1 0 eth0
static 192.168.4.0/24 10.10.246.40 1h41m12s 1 1 0 eth0
static 192.168.5.0/24 10.10.246.40 1h41m12s 1 1 0 eth0
static 192.168.10.0/24 10.10.246.40 1h41m12s 1 1 0 eth0

<table>

<table>

R1 configuration:

router bgp 65000
vrf global
administrative-status up
router-id 192.0.0.10

prefix-list pl-con
seq 1
permit
address-family ipv4 unicast
192.168.2.0/24
exit-address-family
!
!
!
route-map rm-con 1
permit
set-community 1:65535
set-community-action set-specific
set-local-preference 150
match-ip nlri prefix-list pl-con
!

route-policy rp1
export-route-map rm-con

neighbor 10.10.246.14 remote-as 65000
route-policy rp1

redistribute connected address-family ipv4

redistribute static address-family ipv4

<table>


With the above configuration I can see R1 advertises 192.168.2.0/24 alone to R2.

But here comes my problem, when I add new prefix-list & route-map to neighbor 10.10.246.14 then I can see all the static & connected routes advertised to it(UPDATE Messages)

<table>

prefix-list pl-con-2
seq 1
permit
address-family ipv4 unicast
192.168.10.0/24
exit-address-family
!
!
!
route-map rm-con 2
permit
set-community 1:65535
set-community-action set-specific
set-local-preference 150
match-ip nlri prefix-list pl-con-2
!

<table>

After some time R1 sends Route withdraw messages to R2 & R2 will have updates to 192.168.2.0/24 & 192.168.10.0/24.

My question is when I add new prefix-list & route-map is this the expected behaviour by R1 or R1 shall update only 192.168.2.0/24 & 192.168.10.0/24 to R2.

0 Replies 0