腾讯云vpc1(10.255.1.0/24):
服务器A(centos7.9) vpc网卡eth0 10.255.1.5 ZeroTier网卡 ztadhvb6qh 10.200.201.60
服务器B eth0 10.255.1.6
阿里云vpc2(10.2.1.0/24)
服务器C(centos7.9) vpc网卡eth0 10.2.1.48 ZeroTier网卡 ztadhvb6qh 10.200.201.231
服务器D eth0 10.2.1.43
只有服务器A和服务器C 安装ZeroTier,ZeroTier 网段10.200.201.0/24, 服务器A 和 服务器C 已经 可以实现使用ZeroTier网卡IP互PING
服务器B和D不安装ZeroTier和bird, 怎么在只有服务器A和服务器C 配置bird(2+版本)后
实现服务器B 10.255.1.6和服务器D 10.2.1.43 内网IP通信
想实现这么一个场景, 我这边最终还是没有实现服务器B 10.255.1.6和服务器D 10.2.1.43 内网IP通信
只实现了 我这边最终还是没有实现服务器A 10.255.1.5 和服务器C 10.255.1.6 内网IP通信
bird.conf如下
```bash
log "/var/log/bird.log" { debug, trace, info, remote, warning, error, auth, fatal, bug };
router id 10.255.1.5; # 设置Router ID为A的VPC网卡IP
protocol device {
scan time 10;
}
protocol direct {
ipv4;
ipv6;
}
protocol kernel {
ipv4 { # Connect protocol to IPv4 table by channel
table master4; # Default IPv4 table is master4
import all; # Import to table, default is import all
export all;
};
learn; # Learn alien routes from the kernel
scan time 2;
graceful restart;
merge paths on;
}
protocol kernel {
ipv6 { export all; };
merge paths on;
}
protocol bgp TX {
description "Connection to BGP peer";
local as 65001; # A的AS编号
neighbor 10.200.201.231 as 65002; # C的ZeroTier IP和AS编号
multihop;
graceful restart; # See comment in kernel section about graceful restart.
connect delay time 2;
connect retry time 5;
error wait time 5,30;
ipv4 {
next hop self;
gateway recursive; # This should be the default, but just in case.
import filter {
accept;
};
export all;
};
}
```