Community discussions

MikroTik App
 
shaunmccloud
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Tue Jun 02, 2015 5:06 pm

Automatically Update 6to4 Tunnel Local Address

Thu Aug 19, 2021 5:27 pm

For IPv6 connectivity, I need to use a HE.net tunnel. However, I would like to automatically update the Local Address on the tunnel when the WAN IP on my PPPoE connection changes. Is this possible to do?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Automatically Update 6to4 Tunnel Local Address  [SOLVED]

Thu Aug 19, 2021 5:54 pm

Is this possible to do?
Yes

Open pppoe-out1 client, or other name if is not the same,
on Dial Out read what "Profile" is used, close this window without change anything.
now go on the PPP / Profiles
open the used profile on pppoe-client,
go on Scripts section and on "On Up" field put the follow command, DO NOT CHANGE THE COMMAND, it is ready as it is, (do not write anything on "On Down" field):
/interface 6to4 set [find] local-address=$"local-address"
Save with OK,
next time you reconnect the pppoe-client, the command update the IP on 6to4 tunnel.
 
shaunmccloud
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Tue Jun 02, 2015 5:06 pm

Re: Automatically Update 6to4 Tunnel Local Address

Thu Aug 19, 2021 6:14 pm

Is this possible to do?
Yes

Open pppoe-out1 client, or other name if is not the same,
on Dial Out read what "Profile" is used, close this window without change anything.
now go on the PPP / Profiles
open the used profile on pppoe-client,
go on Scripts section and on "On Up" field put the follow command, DO NOT CHANGE THE COMMAND, it is ready as it is, (do not write anything on "On Down" field):
/interface 6to4 set [find] local-address=$"local-address"
Save with OK,
next time you reconnect the pppoe-client, the command update the IP on 6to4 tunnel.
Thank you. Should make life easier. I did move my Dynamic DNS stuff to a simple Linux VM just because it's easier for me.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Automatically Update 6to4 Tunnel Local Address

Thu Aug 19, 2021 6:31 pm

Work correctly?

If yes please mark my previous post as solved/solution for this topic
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: Automatically Update 6to4 Tunnel Local Address

Thu Aug 19, 2021 8:38 pm

Not sure why you want to update the local address, do you have a dual wan setup?

If not, just unset local-address and it will pick your external address automatically:
/interface 6to4 set [find] local-address=0.0.0.0

You could update the IPv4 endpoint on HE side by running a fetch command, e.g.:
viewtopic.php?f=9&t=66204

Who is online

Users browsing this forum: infabo and 40 guests