Files
bird_config/readme.md
2026-01-11 17:48:01 +08:00

24 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 这里是BRNET配置文件
## 目录格式
-- bird
-- bird/conf/ # 存放需要使用BGP协议宣告的静态规则库 (用户配置)
-- bird/first/ # 定义内部IP范围 (用户配置)
-- bird/function/ # 定义表、网络IP范围等
-- bird/net/ # 定义网络同步规则
-- bird/peers/ # 存放对等体的配置信息 (用户配置)
-- bird/template/ # 定义BGP模板
-- bird/bird.conf # bird核心配置
-- bird/envvars # 环境变量
-- bird/var.conf # 配置节点基本信息 (用户配置)
## BGP社区
最近我们要对BGP社区进行大改请注意相关细节的变更。
我们定义了以下BGP社区请按照规则使用<br>
1.不允许导出到内核:(ASN,3,0) 对公网和UNET均生效<br>
2.不允许传输到IBGP(ASN,1,0) 对公网和UNET均生效<br>
3.允许传输到EBGP(ASN,200,0) 对公网和UNET均生效<br>
3.允许传输到EBGP流经IX(ASN,200,1) (公网生效)<br>
4.允许导出到OSPF(UNET_ASN,301,0) 仅对UNET生效依赖UNET<br>
请注意进入我网和经过我网的路由条目都会《社区消消乐》我会把相关BGP社区全删了。