Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

Is there a duration of an IP route that I have replace in a script ?

$
0
0

Hi All,

 

Is there a duration of an IP route that I had place when my ER-Lite3 boots

Note : I have to do that because the gateway is not in the same subnet mask that the IP address given by my ISP in DHCP. See the script described below I run, where XXX.X.XX.254 is my ISP gateway.

 

# command : sudo vi /config/scripts/post-config.d/start_route.sh
# insert the script below in start_route.sh file
# -----------------------------------------------------
#!/bin/bash
ip route replace XXX.X.XX.254/32 dev eth0
sleep 5
ip route replace default via XXX.X.XX.254 dev eth0
exit
# -----------------------------------------------------
# command : sudo chmod 777 /config/scripts/post-config.d/start_route.sh
# command : sudo chmod +x /config/scripts/post-config.d/start_route.sh

Unfortunatly, my ERLite-3 works perfectly since 14 or 15 days and stop working because the route doesn't work anyway. I have to run again this script in CLI command to have again Internet (without a reboot). So I suspected there is a duration of the route. The route is not positionning in a permanent manner ! 

Any idea ?

Thanks a lot for your help.

 

Regards,

 


Viewing all articles
Browse latest Browse all 20028

Trending Articles