在 Ubuntu 20.04 LTS 焦点下
我之前配置了一个 net64 隧道来使用 HE-IPv6 服务。以下是我的配置:
.
├── 50-cloud-init.yaml
└── 51-he-ipv6.yaml
# 50-cloud-init.yaml
network:
version: 2
ethernets:
ens3:
dhcp4: true
match:
macaddress: xx:xx:xx:xx
set-name: ens3
# 51-he-ipv6.yaml
network:
version: 2
tunnels:
he-ipv6:
mode: sit
remote: 74.xx.xx.xx
local: 10.0.0.2
addresses:
- "2001:470:xx:xx::x/64"
gateway6: "2001:470:xx:xx::1"
当我使用 rclone 复制文件时,必须指定 10.0.0.2 的出口路由,否则就没有速度:
% rclone copy ... # no speed :(
% rclone copy --bind 10.0.0.2 ... # everything work
那么我应该为隧道配置路由度量吗?如果答案是肯定的,该如何配置?
更多信息:
% ip route show
default via 10.0.0.1 dev ens3 proto dhcp src 10.0.0.2 metric 100
10.0.0.0/24 dev ens3 proto kernel scope link src 10.0.0.2
xxx.xx.0.0/16 dev ens3 proto dhcp scope link src 10.0.0.2 metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
172.19.0.0/16 dev br-223351777777 proto kernel scope link src 172.19.0.1
172.25.0.0/16 dev br-0ad698888888 proto kernel scope link src 172.25.0.1
% ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::xxxx:xxxx prefixlen 64 scopeid 0x20<link>
ether xx:xx:xx:xx txqueuelen 1000 (Ethernet)
he-ipv6: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 8980
inet6 fe80::a00:2 prefixlen 64 scopeid 0x20<link>
inet6 2001:470:xx:xx:2 prefixlen 64 scopeid 0x0<global>
sit txqueuelen 1000 (IPv6-in-IPv4)