我尝试通过 etherip 创建隧道。我也阅读了手册页OpenBSD 中的 etherip。但这个例子在我的服务器上不能运行。
cat /etc/sysctl.conf
net.inet.etherip.allow=1
net.inet.ip.forwarding=1
cat /etc/hostname.etherip0
tunnel 10.0.0.2 10.0.0.1
up
cat /etc/hostname.rl2
inet 10.0.0.2 255.255.255.0
cat /etc/hostname.rl0
up
cat /etc/hostname.bridge0
add rl0
add etherip0
up link2
另一边几乎相同,只有一些差异。tcpdump 的输出
tcpdump -i rl2 proto 97
tcpdump: listening on rl2, link-type EN10MB
16:29:20.167386 etherip 10.0.0.1 > 10.0.0.2 ver unknown len 62 [tos 0x10]
16:29:20.212008 etherip 10.0.0.1 > 10.0.0.2 ver unknown len 108 [tos 0x10]
16:29:20.215037 etherip 10.0.0.1 > 10.0.0.2 ver unknown len 62 [tos 0x10]
16:29:20.482914 etherip 10.0.0.1 > 10.0.0.2 ver unknown len 108 [tos 0x10]
16:29:20.504005 etherip 10.0.0.1 > 10.0.0.2 ver unknown len 93 [tos 0x10]
16:29:20.504073 etherip 10.0.0.1 > 10.0.0.2 ver unknown len 93 [tos 0x10]
16:29:20.504099 etherip 10.0.0.1 > 10.0.0.2 ver unknown len 93 [tos 0x10]
我看不出哪里出了问题。为什么 EtherIP 隧道不起作用?