<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Ramanathan.<br>
<br>
We do not currently support such prefix set (your route map)
filtering. But you can use the following approach instead:<br>
<br>
<pre wrap="" class="moz-quote-pre">if net.rd = 1:100 && net ~ [ 60.0.0.0/24 ] then ...</pre>
<br>
I hope this helps.<br>
Jana<br>
<br>
<pre class="moz-signature" cols="72">Jana Babovakova | BIRD Tech Support | CZ.NIC, z.s.p.o.</pre>
<div class="moz-cite-prefix">On 23. 02. 25 3:55, Ramanathan
Selvamani wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAA7UR+LZGbDZbb1UkDFM6DGH2bC-Qk_QAgCp67_EUWFkpoaJMw@mail.gmail.com">
<pre wrap="" class="moz-quote-pre">Hi Team,
I would like to filter a VPN4 address using route-map.
For example, I have the below VPN4 address learnt through BGP neighbor on
"L2VPN EVPN" channel.
Table vpntab4:
1:222 90.0.0.0/24 unicast [EVPN_4_4_4_4 2025-02-21] * (160)
1:100 60.0.0.0/24 unicast [BGP_4_4_4_4 17:45:37.617 from 4.4.4.4] * E
(156/1) [AS400?]
4.4.4.4:222 70.0.0.0/24 unicast [BGP_4_4_4_4 17:45:37.617 from 4.4.4.4] * E
(156/1) [AS400?]
1:111 151.1.1.0/24 unicast [EVPN_4_4_4_4 2025-02-21] * (160)
I want to create a route-map to accept only 1:100 60.0.0.0/24 and reject
all the rest.
When I tried the below configuration in route-map, I got a syntax error on
the below line.
if(net ~ [1:100 60.0.0.0/24]) then { return 2;}
Similarly, is there any way to filter the VPN4 address using its RD value ?
Thanks,
Ramanathan
</pre>
</blockquote>
<br>
</body>
</html>