找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 446|回复: 0

bird2配置ASN笔记

[复制链接]

114

主题

1

回帖

626

积分

管理员

积分
626
发表于 2024-5-16 13:47:58 | 显示全部楼层 |阅读模式
# 更新软件包列表并安装bird2
apt-get update -y && apt-get install -y bird2

# 编辑BIRD 2的配置文件
vim /etc/bird/bird.conf

配置文件demo见:https://gist.github.com/real-jia ... f8e77b3cfccd9f76f60

# 测试配置文件
bird -p

# 重启bird
systemctl restart bird

# 显示协议状态
birdc show protocols

# 编辑网卡,调整ipv6地址为分配给你的ipv6地址段中的任意一个ipv6地址
vim /etc/network/interfaces

# 关闭 eth0 网络接口并重新启动,这样可以应用网络配置的更改
ifdown eth0 && ifup eth0

其余命令:

# 详细启动所有网络接口,输出详细信息
ifup -V

# 安装 ifupdown2 工具
apt-get install -y ifupdown2

# 强制启动所有网络接口,并输出详细信息
ifup -fav
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|jiakai的Discuz! X

GMT+8, 2025-2-12 05:20 , Processed in 0.027841 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表