You are currently viewing EdgeRouter BGP sample configuration – part 3

EdgeRouter BGP sample configuration – part 3

set policy prefix-list AS44901-OUT rule 10 action permit
set policy prefix-list AS44901-OUT rule 10 prefix 85.118.94.0/24
set policy prefix-list AS44901-OUT rule 20 action permit
set policy prefix-list AS44901-OUT rule 20 prefix 85.118.95.0/24
set policy prefix-list AS44901-OUT rule 30 action permit
set policy prefix-list AS44901-OUT rule 30 prefix 88.203.248.0/22
set policy prefix-list AS44901-OUT rule 40 action permit
set policy prefix-list AS44901-OUT rule 40 prefix 93.155.130.0/24
set policy prefix-list AS44901-OUT rule 50 action permit
set policy prefix-list AS44901-OUT rule 50 prefix 93.155.131.0/24
set policy prefix-list AS44901-OUT rule 60 action permit
set policy prefix-list AS44901-OUT rule 60 prefix 93.155.162.0/24
set policy prefix-list AS44901-OUT rule 70 action permit
set policy prefix-list AS44901-OUT rule 70 prefix 93.155.169.0/24
set policy prefix-list AS44901-OUT rule 80 action permit
set policy prefix-list AS44901-OUT rule 80 prefix 193.150.67.0/24
set policy prefix-list AS44901-OUT rule 10000 action deny
set policy prefix-list AS44901-OUT rule 10000 le 32
set policy prefix-list AS44901-OUT rule 10000 prefix 0.0.0.0/0

set policy prefix-list AS47453-OUT rule 10 action deny
set policy prefix-list AS47453-OUT rule 10 prefix 91.92.249.0/24
set policy prefix-list AS47453-OUT rule 20 action deny
set policy prefix-list AS47453-OUT rule 20 le 32
set policy prefix-list AS47453-OUT rule 20 prefix 192.168.0.0/16
set policy prefix-list AS47453-OUT rule 30 action deny
set policy prefix-list AS47453-OUT rule 30 prefix 0.0.0.0/0
set policy prefix-list AS47453-OUT rule 10000 action permit
set policy prefix-list AS47453-OUT rule 10000 le 32
set policy prefix-list AS47453-OUT rule 10000 prefix 0.0.0.0/0

set policy prefix-list6 AS44901-v6-OUT rule 10 action permit
set policy prefix-list6 AS44901-v6-OUT rule 10 prefix '2001:678:904::/48'
set policy prefix-list6 AS44901-v6-OUT rule 20 action permit
set policy prefix-list6 AS44901-v6-OUT rule 20 prefix '2a07:1c44:2400::/40'
set policy prefix-list6 AS44901-v6-OUT rule 10000 action deny
set policy prefix-list6 AS44901-v6-OUT rule 10000 le 128
set policy prefix-list6 AS44901-v6-OUT rule 10000 prefix '::/0'

set policy route-map AS44901-IN rule 10 action permit
set policy route-map AS44901-IN rule 10 set ip-next-hop 93.155.130.18

set policy route-map AS44901-OUT rule 10 action permit
set policy route-map AS44901-OUT rule 10 set as-path-prepend 209362

set policy route-map AS44901-v6-IN rule 10 action permit
set policy route-map AS44901-v6-IN rule 10 set ipv6-next-hop local '2001:678:904::5:2'

set policy route-map AS47453-IN rule 10 action permit
set policy route-map AS47453-IN rule 10 set ip-next-hop 93.155.130.37

set policy route-map AS47453-v6-IN rule 10 action permit
set policy route-map AS47453-v6-IN rule 10 set ipv6-next-hop local '2001:678:904::1'

set protocols bgp 47453 address-family ipv6-unicast redistribute connected
set protocols bgp 47453 address-family ipv6-unicast redistribute static

set protocols bgp 47453 neighbor 93.155.130.18 maximum-prefix 10000
set protocols bgp 47453 neighbor 93.155.130.18 nexthop-self
set protocols bgp 47453 neighbor 93.155.130.18 prefix-list export AS44901-OUT
set protocols bgp 47453 neighbor 93.155.130.18 remote-as 44901
set protocols bgp 47453 neighbor 93.155.130.18 route-map export AS44901-OUT
set protocols bgp 47453 neighbor 93.155.130.18 route-map import AS44901-IN
set protocols bgp 47453 neighbor 93.155.130.18 soft-reconfiguration inbound
set protocols bgp 47453 neighbor 93.155.130.18 update-source 93.155.130.17

set protocols bgp 47453 neighbor 93.155.130.37 maximum-prefix 10000
set protocols bgp 47453 neighbor 93.155.130.37 nexthop-self
set protocols bgp 47453 neighbor 93.155.130.37 prefix-list export AS47453-OUT
set protocols bgp 47453 neighbor 93.155.130.37 remote-as 47453
set protocols bgp 47453 neighbor 93.155.130.37 route-map import AS47453-IN
set protocols bgp 47453 neighbor 93.155.130.37 soft-reconfiguration inbound
set protocols bgp 47453 neighbor 93.155.130.37 update-source 93.155.130.38

set protocols bgp 47453 neighbor '2001:678:904::1' address-family ipv6-unicast maximum-prefix 10000
set protocols bgp 47453 neighbor '2001:678:904::1' address-family ipv6-unicast soft-reconfiguration inbound
set protocols bgp 47453 neighbor '2001:678:904::1' remote-as 47453

set protocols bgp 47453 neighbor '2001:678:904::5:2' address-family ipv6-unicast maximum-prefix 10000
set protocols bgp 47453 neighbor '2001:678:904::5:2' address-family ipv6-unicast prefix-list export AS44901-v6-OUT
set protocols bgp 47453 neighbor '2001:678:904::5:2' address-family ipv6-unicast route-map import AS44901-v6-IN
set protocols bgp 47453 neighbor '2001:678:904::5:2' address-family ipv6-unicast soft-reconfiguration inbound
set protocols bgp 47453 neighbor '2001:678:904::5:2' remote-as 44901

set protocols bgp 47453 parameters distance global external 20
set protocols bgp 47453 parameters distance global internal 20
set protocols bgp 47453 parameters distance global local 20
set protocols bgp 47453 parameters router-id 93.155.130.38
set protocols bgp 47453 redistribute connected
set protocols bgp 47453 redistribute static

set protocols static route 0.0.0.0/0 next-hop 93.155.130.37
set protocols static route6 '::/0' next-hop '2001:678:904::1'

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.