Skip to content

Instantly share code, notes, and snippets.

@jbweber
Created March 25, 2022 19:39
Show Gist options
  • Save jbweber/be8522adec41074aafa676370df99ab7 to your computer and use it in GitHub Desktop.
Save jbweber/be8522adec41074aafa676370df99ab7 to your computer and use it in GitHub Desktop.
router id 192.168.254.247;
filter export_bgp {
if ( (ifname ~ "vmmd-*") ) then {
if net != 0.0.0.0/0 then accept;
}
reject;
}
protocol device {
scan time 2;
}
protocol direct {
debug all;
interface "ns-*", "docker*", "br*", "em*", "en*", "eth*", "wlp*";
}
protocol kernel {
learn on;
persist on;
merge paths on;
import all;
export all;
scan time 2;
graceful restart;
}
protocol bgp 'unifi' {
description "unifi";
local as 65001;
source address 192.168.254.247;
neighbor 192.168.254.1 as 65000;
next hop self;
import none;
export filter export_bgp;
graceful restart;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment