Man*_*265 3 iptables routing network-bridge 14.04
我使用 Ubuntu 机器作为服务器,它有两个网络接口。一个是10.10.10.0/ 24范围,另一个是192.168.0.0 /24范围。我试图桥接这些网络接口,因为第二个接口有互联网。我通过选择共享 Internet 选项使用了网络连接选项,但它不起作用。我取消了更改,而是使用了启用 IP 转发的脚本,并在 IP 表中添加了伪装选项。但是现在每次10.10.10.0 /24启动时,192.168.0.0 /24接口都被标记为UH并且无法使用,直到我运行一个脚本来删除所有默认网关并读取 192 个。这可能是什么原因,我该如何摆脱它?
TL;DR 路由表中的 UH 标志意味着:
不同的标志是:
Run Code Online (Sandbox Code Playgroud)1 RTF_PROTO1 Protocol specific routing flag #1 2 RTF_PROTO2 Protocol specific routing flag #2 3 RTF_PROTO3 Protocol specific routing flag #3 B RTF_BLACKHOLE Just discard pkts (during updates) b RTF_BROADCAST The route represents a broadcast address D RTF_DYNAMIC Created dynamically (by redirect) G RTF_GATEWAY Destination requires forwarding by intermediary H RTF_HOST Host entry (net otherwise) L RTF_LLINFO Valid protocol to link address translation M RTF_MODIFIED Modified dynamically (by redirect) R RTF_REJECT Host or net unreachable S RTF_STATIC Manually added U RTF_UP Route usable X RTF_XRESOLVE External daemon translates proto to link address
例如,您可以在此处找到有关它们含义的讨论。