Compare commits
4 Commits
014376b09d
...
6b9114ddca
Author | SHA1 | Date |
---|---|---|
graffen | 6b9114ddca | |
graffen | 0b2795ea90 | |
graffen | bd999815ed | |
graffen | 76161cbefb |
21
bgp.conf
21
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;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
router id 172.20.170.192;
|
||||
|
||||
define OWNAS = 4242423934;
|
||||
define OWNIP = fd62:77fb:94bf::;
|
||||
define OWNIP = fd62:77fb:94bf::2300;
|
||||
define DN42_REGION = 41;
|
||||
|
||||
function is_self_net() {
|
||||
|
|
16
ospf.conf
16
ospf.conf
|
@ -6,6 +6,9 @@ protocol ospf {
|
|||
area 0 {
|
||||
interface "wg-ospf-*" {
|
||||
};
|
||||
|
||||
interface "wg-uk-lon1" {
|
||||
};
|
||||
|
||||
interface "lo" {
|
||||
stub;
|
||||
|
@ -13,6 +16,14 @@ protocol ospf {
|
|||
};
|
||||
}
|
||||
|
||||
protocol direct {
|
||||
table T_OSPF;
|
||||
import where is_self_net();
|
||||
export none;
|
||||
|
||||
interface "lo";
|
||||
}
|
||||
|
||||
filter filter_OSPF {
|
||||
ospf_metric1 = 1000;
|
||||
if source = RTS_STATIC then accept;
|
||||
|
@ -21,6 +32,7 @@ filter filter_OSPF {
|
|||
|
||||
protocol pipe {
|
||||
peer table T_OSPF;
|
||||
import all;
|
||||
export filter filter_OSPF;
|
||||
import filter filter_OSPF;
|
||||
export none;
|
||||
# export filter filter_OSPF;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#protocol bgp B_dn42_jonas from dnpeers {
|
||||
# neighbor 172.20.39.65 as 4242420789;
|
||||
# import where dn42_import_filter(4,23,33);
|
||||
# export where dn42_export_filter(4,23,33);
|
||||
#};
|
||||
protocol bgp B_dn42_jonas from dnpeers {
|
||||
neighbor 172.20.39.65 as 4242420789;
|
||||
import where dn42_import_filter(4,23,33);
|
||||
export where dn42_export_filter(4,23,33);
|
||||
};
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
table T_IBGP_UK_LON1;
|
||||
|
||||
protocol bgp iB_uk_lon1 from iBGP_Peer {
|
||||
table T_IBGP_UK_LON1;
|
||||
neighbor 172.20.170.196 as 4242423934;
|
||||
import where dn42_import_filter(3,24,34);
|
||||
export where dn42_export_filter(3,24,34);
|
||||
};
|
||||
|
||||
protocol pipe P_IBGP_UK_LON1 from iBGP_Pipe {
|
||||
table T_IBGP_UK_LON1;
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
#protocol bgp B_dn42_jonas from dnpeers {
|
||||
# neighbor fe80::10:1 % 'wg-jonas' as 4242420789;
|
||||
# import where dn42_import_filter(4,23,33);
|
||||
# export where dn42_export_filter(4,23,33);
|
||||
#};
|
||||
protocol bgp B_dn42_jonas from dnpeers {
|
||||
neighbor fe80::10:1 % 'wg-jonas' as 4242420789;
|
||||
import where dn42_import_filter(4,23,33);
|
||||
export where dn42_export_filter(4,23,33);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue