Adding static route in Ubuntu is not to hard. Its just a matter of changing the configuration file. Perhaps you already know what is the network routing you want to define.
To do this in Ubuntu 8.10 we need to change the network configuration file.
1. Login in the system with the system administrator privilege.
2. Open the network configuration file with a editor. I will be using “vi editor” in this case.
example : “vi /etc/network/interfaces“
3. Go to last line and add your routing.
example “up route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0“
4. Save your changes and exit the editor.
5. Restart the network service with “/etc/init.d/networking restart“
6. Verify your routing by sending “route” command.
Note: The “route add” command used by me in this article is just for example purpose. The way to define and use this is up to your network settings. My intension in this article is just to show you how to configure static route.