Init ibgp routing
This commit is contained in:
@@ -57,6 +57,8 @@
|
||||
|
||||
ipv6 table ospf6;
|
||||
ipv4 table ospf4;
|
||||
ipv6 table bgp6;
|
||||
ipv4 table bgp4;
|
||||
|
||||
protocol direct direct_lo {
|
||||
interface "lo";
|
||||
@@ -128,6 +130,40 @@
|
||||
};
|
||||
}
|
||||
|
||||
template bgp ibgp6 {
|
||||
local as 4200002574;
|
||||
graceful restart on;
|
||||
source address ${ (lib.head config.networking.interfaces.lo.ipv6.addresses).address };
|
||||
ipv6 {
|
||||
table bgp6;
|
||||
next hop self;
|
||||
import keep filtered;
|
||||
import all;
|
||||
export all;
|
||||
};
|
||||
}
|
||||
|
||||
template bgp ibgp4 {
|
||||
local as 4200002574;
|
||||
graceful restart on;
|
||||
source address ${ (lib.head config.networking.interfaces.lo.ipv4.addresses).address };
|
||||
ipv4 {
|
||||
table bgp4;
|
||||
next hop self;
|
||||
import keep filtered;
|
||||
import all;
|
||||
export all;
|
||||
};
|
||||
}
|
||||
|
||||
protocol bgp bgp_nonat from ibgp6 {
|
||||
neighbor fd00:152:152:103::1 as 4200002574;
|
||||
}
|
||||
|
||||
protocol bgp bgp_porter from ibgp6 {
|
||||
neighbor fd00:152:152:102::1 as 4200002574;
|
||||
}
|
||||
|
||||
protocol device {
|
||||
scan time 10;
|
||||
}
|
||||
|
Reference in New Issue
Block a user