话不多说,直接贴代码! cd /etc/sysconfig touch static-routes //没有文件时添加此文件 vi /etc/sysconfig/static-routes //0.0.0.0代表任意ip,gw:网关 any net 0.0.0.0 gw 192.168.235.2