Help with only announcing routes

Hello there,

I managed to screw up my IPv6 routing table with BGP as this is the first time ever doing anything with BGP, so I’m trying to get it to import nothing, and announce my prefix upstream so that my router will be the next hop from upstream for that said prefix.

Current config:

 bgp 213021 {
     address-family {
         ipv6-unicast {
             network 2a0e:b107:6ec::/48 {
             }
         }
     }
     neighbor 2a0c:3b80:7b01:2bf::1 {
         address-family {
             ipv6-unicast {
                 capability {
                     dynamic
                 }
                 filter-list {
                     export own-as
                 }
             }
         }
         peer-group TBv6
         remote-as 58057
         update-source 2a0c:3b80:7b01:2bf::2
     }
     parameters {
         default {
         }
         router-id 100.67.1.26
     }
     peer-group TBv6 {
         address-family {
             ipv6-unicast {
             }
         }
     }
 }

Hi @samip537
In this is an example we export only prefix “2a0e:b107:6ec::/48” to ipv6 neighbor and importing “None”

set policy prefix-list6 OUT rule 10 action 'permit'
set policy prefix-list6 OUT rule 10 prefix '2a0e:b107:6ec::/48'

set policy route-map RMAP-IN rule 10 action 'deny'

set policy route-map RMAP-OUT rule 10 action 'permit'
set policy route-map RMAP-OUT rule 10 match ipv6 address prefix-list 'OUT'

set protocols bgp 213021 address-family ipv6-unicast network 2a0e:b107:6ec::/48
set protocols bgp 213021 neighbor 2a0c:3b80:7b01:2bf::1 address-family ipv6-unicast route-map export 'RMAP-OUT'
set protocols bgp 213021 neighbor 2a0c:3b80:7b01:2bf::1 address-family ipv6-unicast route-map import 'RMAP-IN'
set protocols bgp 213021 neighbor 2a0c:3b80:7b01:2bf::1 remote-as '58057'
set protocols bgp 213021 neighbor 2a0c:3b80:7b01:2bf::1 update-source '2a0c:3b80:7b01:2bf::2'
set protocols bgp 213021 parameters router-id '100.67.1.26'

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.