From bd999815ed95da9291c763bc9cfb809149518291 Mon Sep 17 00:00:00 2001 From: graffen Date: Fri, 14 Sep 2018 20:30:58 +0000 Subject: [PATCH] Add iBGP peer template --- bgp.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/bgp.conf b/bgp.conf index ccc7e68..651c7ad 100644 --- a/bgp.conf +++ b/bgp.conf @@ -14,6 +14,27 @@ template bgp dnpeers { #source address 172.20.170.192; }; +template bgp iBGP_Peer { + local as OWNAS; + igp table T_OSPF; + path metric on; + import keep filtered; +# import where iBGP_import_peer_policy(); +# export where iBGP_export_peer_policy(); + import all; + export all; + source address OWNIP; + next hop self; +} + +template pipe iBGP_Pipe { + # table name will come from peer definition + peer table master; + import all; + export all; +} + + protocol pipe { table master; peer table T_BGP4;