我正在尝试添加一些递归路由。以下想法在思科路由器上效果很好,但在 Linux(Ubuntu 14.04.5 LTS)上却不尽如人意
# ip -4 route add 1.1.1.1/32 dev eth4
# ip -4 route add 2.2.2.2/32 via 1.1.1.1
# ip -4 route add 3.3.3.3/32 via 2.2.2.2
RTNETLINK answers: Network is unreachable
# ip route
default via 10.122.197.1 dev eth4 metric 100
1.1.1.1 dev eth4 scope link
2.2.2.2 via 1.1.1.1 dev eth4