可通过 ip 或 netstat 命令验证配置的新路由。以下是正确配置了路由时这些命令的输出示例:
# ip route list 153.64.209.92 via 153.64.107.254 dev eth4 153.64.106.78 via 153.64.107.254 dev eth5 153.64.106.79 via 153.64.107.254 dev eth5 153.64.209.91 via 153.64.107.254 dev eth4 127.0.0.0/8 dev lo scope link default via 153.64.107.254 dev eth2 # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 153.64.209.92 153.64.107.254 255.255.255.255 UGH 0 0 0 eth4 153.64.106.78 153.64.107.254 255.255.255.255 UGH 0 0 0 eth5 153.64.106.79 153.64.107.254 255.255.255.255 UGH 0 0 0 eth5 153.64.209.91 153.64.107.254 255.255.255.255 UGH 0 0 0 eth4 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 153.64.107.254 0.0.0.0 UG 0 0 0 eth2