Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Bas on July 12, 2002, 01:21:56 PM
-
Hi,
Could someone please tell me how to make e-smith automaticly execute or set the following settings after reboot:
route add 10.0.0.138 dev eth0
route add default gw 10.0.0.138
I need this because my internet connection wont work without it, after each reboot i have to reset this.
-
*bump
Someone must know this, please help.
-
Hi,
it´s allways the same ...
Create a custom config for /etc/sysconfig/static-route:
1. Create a directory:
/etc/e-smith/templates-custom/etc/sysconfig/static-routes
2. In this directory create a file (e.g. 99my_routes)
3. Edit this file and add your routes:
eth0 192.168.99.0 netmask 255.255.255.0 gateway 192.168.1.5
(This add´s a static route to 192.168.99.0 with the gateway 192.168.1.5)
Save your work.
4. expand your custom-template:
/sbin/e-smith/expand-template /etc/sysconfig/static-routes
5. restart the network daemons:
/etc/rc.d/init.d/network restart
Your can review your work by using:
# netstat -rn
By this way you can customize nearly all settings.
Regards,
Peter Schubert