i can set one gateway and dns by manuel of setup.networking setting.gateway, on the other hand, i can also set gateway by
route add -net default gateway 192.168.0.1 dev eth0

my problem is , what differences with this two way? why the linux can remember the fore one and i has to reset the behind one, after the network restart???

thanks for your tips,
frederick