1.写到/etc/rc.local中(/etc/rc.local-->/etc/rc.d/rc.local)
route add default gw 10.0.0.1

2.写到网卡的配置文件里[root@t1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
加入
GATEWAY=10.0.0.1