ix-bird-config/bgp4.conf

50 lines
839 B
Plaintext
Raw Normal View History

template bgp dn42peer {
local as OWNAS;
2018-10-10 16:10:26 +00:00
table T_BGP;
path metric 1;
2018-10-13 18:49:35 +00:00
import keep filtered;
import where dn42peer_import_policy();
2018-10-13 18:28:29 +00:00
export filter {
if is_valid_network() then {
accept;
}
reject;
};
};
template bgp ibgppeer {
2018-09-14 20:30:58 +00:00
local as OWNAS;
2018-10-10 16:10:26 +00:00
hold time 15;
igp table T_OSPF;
2018-09-14 20:30:58 +00:00
path metric on;
import keep filtered;
import all;
2018-11-09 08:53:18 +00:00
export filter {
if is_self_net() then {
reject;
}
accept;
};
source address OWNIP;
2018-09-14 20:30:58 +00:00
next hop self;
}
template pipe iBGP_Pipe {
peer table master;
import all;
export all;
}
2018-11-09 08:53:18 +00:00
template pipe dn42peer_pipe {
peer table master;
import all;
export all;
}
protocol pipe P_BGP_to_Master {
2018-09-12 09:16:29 +00:00
table master;
2018-10-10 16:10:26 +00:00
peer table T_BGP;
2018-11-09 08:53:18 +00:00
import all;
2018-10-13 18:28:29 +00:00
export all;
2018-10-13 18:49:35 +00:00
}