Help with a script.

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

muffintastic

Senior Member
Hello.

I need help making a script that can flush old routing table ips specific from the WAN side but keeping everything up-to-date in there.

I am running Sky (UK ISP) and if I make specific changes in the router like change DNS or disable UPNP etc it will change the WAN IP and it will leave the old routing IP in the routing table.

The only way around at the moment is to do it the manual way using “ip route flush <IP>” manually removing the old entries.

I have tried “ip route flush cache” but still persistent also tried “ip route flush table main” but the router hangs / freezes.

Looking for something than can detect changes, flush accordingly and automatically upon change.
 
Last edited:

ColinTaylor

Part of the Furniture
If the old route isn't being removed when your WAN interface restarts it sounds like you need to fix that problem rather than trying to write a script to botch a way around it.
 

muffintastic

Senior Member
If the old route isn't being removed when your WAN interface restarts it sounds like you need to fix that problem rather than trying to write a script to botch a way around it.
Could you possibly help or link me to a thread that has an option for this? It's on a RTAC86U
 

ColinTaylor

Part of the Furniture
I'm assuming you have a PPPoE connection? I don't have that type of connection so I can't offer any specific advice. But AFAIK even with a PPPoE connection you shouldn't need any work arounds, the firmware should handle everything automatically. If it isn't it sounds like a bug. Look at the syslog to determine what is happening (or not happening).
 

muffintastic

Senior Member
N
I'm assuming you have a PPPoE connection? I don't have that type of connection so I can't offer any specific advice. But AFAIK even with a PPPoE connection you shouldn't need any work arounds, the firmware should handle everything automatically. If it isn't it sounds like a bug. Look at the syslog to determine what is happening (or not happening).
Nope not running PPPOE. Just automatic IP.
I've set Sky and its Option 61 details.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top