This is a custom issue that we have to deal with… Our host provider is OVH and its common for your new ips to be separate from your gateway ip network… Nethserver has a very hard time with this…
We have been really trying to work with this by inserting the proper info in the web front end however it doesn’t seem to stick…
Here is what we are getting to work.
#!/bin/sh
sleep 30s
ifconfig eth1 10.10.10.218 netmask 255.255.255.255
sleep 2s
route add 192.168.1.254 dev eth1
route add default gw 192.168.1.254 eth1
sleep 2s
service httpd stop
cp -f /root/httpdbackup /etc/httpd/conf/httpd.conf
chmod 555 /etc/httpd/conf/httpd.conf
sleep 1s
service httpd start
Ips have been changed to protect our infrastructure publicly but you can get the idea…
These two commands some times ran after the reboot will some times correct things to the point where i am back online publicly but…