What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Restore IPv6 Gateway Script Help.

muffintastic

Senior Member
Hello.

I've been having issues with my ISP (YouFibre) UK and their shoddy IPv6 (They won't admit it) (https://www.ispreview.co.uk/index.p...-2-56-million-uk-premises.html#comment-326015). I've now managed to fix this myself by using the command:

route -A inet6 add default gw fe80::aa7:41ff:feff:480c eth0

It seems their RA is all messed right now and RT-BE86U fails to acknowledge it but picks everything else up in regards IPv6 just not the gateway, don't worry this isn't a Merlin/Router issue. It is a Native based IPv6

How do I go about making this surviving a reboot or manually disconnecting my WAN or restore access if my WAN goes down. I would just like a script to auto do it. If someone could help me that would be great.
 
I have no idea whether this will work because I don't have IPv6. But my guess would be that you'd need a wan-event script something like this:
Code:
#!/bin/sh

if [ "$1" = "0" ] && [ "$2" = "connected" ]; then
    logger -t "$(basename $0)" "Adding route"
    route -A inet6 add default gw fe80::aa7:41ff:feff:480c eth0
fi
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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