更新INET协议栈格式

This commit is contained in:
2025-11-08 21:38:35 +08:00
parent 1bd6e4b59e
commit 7510834a1e
6 changed files with 42 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
template bgp tpl_bgp_up {
template bgp tpl_inet4_up {
graceful restart;
local as LOCAL_ASN;
ipv4 {
@@ -19,6 +19,11 @@ template bgp tpl_bgp_up {
accept;
};
};
}
template bgp tpl_inet6_up {
graceful restart;
local as LOCAL_ASN;
ipv6 {
table inet6;
import filter {
@@ -39,7 +44,7 @@ template bgp tpl_bgp_up {
};
}
template bgp tpl_ibgp {
template bgp tpl_inet4_ibgp {
graceful restart;
local as LOCAL_ASN;
med metric;
@@ -61,6 +66,13 @@ template bgp tpl_ibgp {
accept;
};
};
}
template bgp tpl_inet6_ibgp {
graceful restart;
local as LOCAL_ASN;
med metric;
direct;
ipv6 {
table inet6;
next hop self;
@@ -79,4 +91,5 @@ template bgp tpl_ibgp {
};
};
}
include "/etc/bird/peers/inet/*";