写到/etc/rc.local中 route add default gw 192.168.*.* dev eth* 需要重启后才生效 转载于:https://www.cnblogs.com/yanghaotai/p/9126121.html