更新readme
This commit is contained in:
42
readme.md
42
readme.md
@@ -1,35 +1,37 @@
|
||||
# 这里是UNET推荐使用的bird配置文件
|
||||
# 这里是BRNET配置文件
|
||||
|
||||
## 目录格式
|
||||
|
||||
-- bird
|
||||
-- bird/var.conf # 配置节点基本信息
|
||||
-- bird/bird.conf
|
||||
-- bird/envvars
|
||||
-- bird/conf/ # 存放节点宣告IP机制
|
||||
-- bird/function/ # 存放基本函数、表配置项和其他公共部分
|
||||
-- bird/net/ # 定义网络模板
|
||||
-- bird/peers/ # 存放对等体的配置信息
|
||||
-- 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_pub,id:102,用途为:禁用ipv4动态转发的节点和客户端使用BRNET的IPV4网络(需配合策略路由使用)<br>
|
||||
2.路由表名:ipv4_bgp,id:103,用途为:启用ipv4动态转发的节点,动态IPV4路由导入表(需配合策略路由使用)
|
||||
|
||||
-- bird/function/
|
||||
-- bird/net/ # (可按需要disable)
|
||||
-- bird/bird.conf
|
||||
## BGP社区
|
||||
我们定义了以下BGP社区,请按照规则使用
|
||||
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/
|
||||
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
|
||||
cd && wget https://git.nia.ink/brnet/bird_config/raw/branch/master/update.sh && chmod +x update.sh && ./update.sh
|
||||
Reference in New Issue
Block a user