Files
bird_config/readme.md
2025-11-13 15:26:55 +08:00

37 lines
1.7 KiB
Markdown
Raw 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/ # 存放节点宣告IP机制 (用户配置)
-- bird/function/ # 存放基本函数、定义表和IP范围
-- bird/net/ # 定义网络(按需启用)
-- bird/peers/ # 存放对等体的配置信息 (用户配置)
-- bird/template/ # 定义BGP模板
-- bird/bird.conf # bird核心配置
-- bird/envvars # 环境变量
-- bird/var.conf # 配置节点基本信息 (用户配置)
## 路由表
在维护网络时请注意统一全网路由表的id号码
1.路由表名ipv4_pubid:102用途为禁用ipv4动态转发的节点和客户端使用BRNET的IPV4网络需配合策略路由使用<br>
2.路由表名ipv4_bgpid:103用途为启用ipv4动态转发的节点动态IPV4路由导入表需配合策略路由使用
## BGP社区
我们定义了以下BGP社区请按照规则使用<br>
1.不允许导出到内核:(ASN,3,0) 对公网和UNET均生效<br>
2.不允许传输到IBGP(ASN,1,0) 对公网和UNET均生效<br>
3.允许传输到EBGP(ASN,200,0) 对公网和UNET均生效<br>
4.允许导出到OSPF(UNET_ASN,301,0) 仅对UNET生效依赖UNET<br>
请注意进入我网和经过我网的路由条目都会《社区消消乐》我会把相关BGP社区全删了。
## 快速应用
cd && git clone https://git.nia.ink/brnet/bird_config.git && rm -rf /etc/bird && mv bird_config/bird /etc/
## 注意
请务必修改下在输入birdc c
## 全服更新使用脚本
cd && wget https://git.nia.ink/brnet/bird_config/raw/branch/master/update.sh && chmod +x update.sh && ./update.sh