May 29

route.sh script to return normal routing on cPanel servers if server is fail to obtain network after reboot

@reboot /bin/sh /root/scripts/route.sh

#!/bin/bash
#deal with missing route after reboot, not the best way but can be used until i will find the root of the issue:
/usr/bin/sleep 300
/usr/sbin/ip route add 192.168.99.1 dev eno1
/usr/sbin/route add default gw 192.168.99.1 eno1


Copyright 2021. All rights reserved.

Posted 29 May 2024 by admin in category "simple memo

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.