Created
March 25, 2022 19:39
-
-
Save jbweber/be8522adec41074aafa676370df99ab7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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