Hi I have a BGP v6 session but I don’t getting any route in the pfx count
Can you help me ?
You can use action “permit” in prefix list, and action deny in route-map
set policy prefix-list6 BOGONS6 rule 10 action 'permit'
set policy prefix-list6 BOGONS6 rule 10 le '64'
set policy prefix-list6 BOGONS6 rule 10 prefix '100::/64'
set policy prefix-list6 BOGONS6 rule 20 action 'permit'
set policy prefix-list6 BOGONS6 rule 20 le '128'
set policy prefix-list6 BOGONS6 rule 20 prefix '2001:10::/28'
set policy route-map RMAP-IN rule 10 action 'deny'
set policy route-map RMAP-IN rule 10 match ipv6 address prefix-list 'BOGONS6'
set policy route-map RMAP-IN rule 20 action 'permit'
What I sent to this neighbor:
Network Next Hop Metric LocPrf Weight Path
*> 100::/64 :: 0 32768 i
*> 2001:10::/32 :: 0 32768 i
*> 2001:11::/32 :: 0 32768 i
*> 2001:12::/32 :: 0 32768 i
*> 2001:13::/32 :: 0 32768 i
*> 2001:14::/32 :: 0 32768 i
*> 2002:2222::/32 :: 0 32768 i
*> 2002:2223::/32 :: 0 32768 i
*> 2002:2224::/32 :: 0 32768 i
What I receive
vyos@r5-roll:~$ show ipv6 bgp neighbors 2001:db8::2 routes
BGP table version is 19, local router ID is 192.168.122.15, vrf id 0
Default local pref 100, local AS 65001
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 2002:2222::/32 fe80::5054:ff:fe43:b82a
0 0 65002 i
*> 2002:2223::/32 fe80::5054:ff:fe43:b82a
0 0 65002 i
*> 2002:2224::/32 fe80::5054:ff:fe43:b82a
0 0 65002 i