Skip to content

Instantly share code, notes, and snippets.

@highgain86j
Created April 1, 2018 13:36
Show Gist options
  • Save highgain86j/e653bdef1e68d871422849cddc283edb to your computer and use it in GitHub Desktop.
Save highgain86j/e653bdef1e68d871422849cddc283edb to your computer and use it in GitHub Desktop.
ospf use on
ospf area backbone
bgp use on
bgp autonomous-system 64759
bgp log neighbor packet
bgp neighbor 1090 64656 10.1.255.90 gateway=tunnel9 local-address=10.2.255.200
bgp neighbor 2010 64759 10.2.255.10 local-address=10.2.255.200
bgp neighbor 2020 64759 10.2.255.20 local-address=10.2.255.200
bgp neighbor 2200 64759 10.2.255.200 local-address=10.2.255.200
bgp router id 10.2.255.200
bgp import filter 110 reject include 10.2.255.0/24
bgp import filter 119 include 10.2.0.0/16
bgp import filter 129 include 10.255.0.0/16
bgp import filter 190 reject include 10.0.0.0/8
bgp import filter 191 reject include 172.16.0.0/12
bgp import filter 192 reject include 192.168.0.0/16
bgp import filter 198 reject equal 0.0.0.0/0
bgp import filter 199 reject include 0.0.0.0/0
bgp import filter 210 reject include 10.2.255.0/24
bgp import filter 219 include 10.2.0.0/16
bgp import filter 229 reject include 10.255.0.0/16
bgp import filter 290 reject include 10.0.0.0/8
bgp import filter 291 reject include 172.16.0.0/12
bgp import filter 292 reject include 192.168.0.0/16
bgp import filter 298 reject equal 0.0.0.0/0
bgp import filter 299 reject include 0.0.0.0/0
bgp import filter 300 reject include 10.2.0.0/16
bgp import filter 301 include 10.0.0.0/8
bgp import 64656 static filter 210 219 229 290 291 292 298 299
bgp import 64656 bgp 64759 filter 210 219 229 290 291 292 298 299
bgp import 64759 static filter 110 119 129 190 191 192 198 199
bgp import 64759 bgp 64656 filter 300 301
bgp export filter 110 reject include 10.2.255.0/24
bgp export filter 119 include 10.2.0.0/16
bgp export filter 129 include 10.255.0.0/16
bgp export filter 190 reject include 10.0.0.0/8
bgp export filter 191 reject include 172.16.0.0/12
bgp export filter 192 reject include 192.168.0.0/16
bgp export filter 198 reject equal 0.0.0.0/0
bgp export filter 199 refines 0.0.0.0/0
bgp export filter 300 reject include 10.2.0.0/16
bgp export filter 301 include 10.0.0.0/8
bgp export 64656 filter 300 301
bgp export 64759 filter 110 119 129 190 191 192 198 199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment