IPv6: Change Router's Local Link Address

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Wed Feb 22, 2023 21:04    Post subject: IPv6: Change Router's Local Link Address Reply with quote
Hello,

I'm running IPv6 and it works fine, however my router assigns itself a very long IPv6 Local Link address that seem MAC address based:

Code:
12: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether xx:xx:xx:xx:28:fa brd ff:ff:ff:ff:ff:ff
(...)
    inet6 fe80::xxxx:xxxx:xxxx:28fa/64 scope link
       valid_lft forever preferred_lft forever


For simplicity, is there a way to change this to lets say fe80::1?

Thank you.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Sponsor
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 1410

PostPosted: Thu Feb 23, 2023 0:04    Post subject: Reply with quote
use the ip command:

ip address add dev br0 scope link fe80::1/64

and delete the old one

ip address del dev br0 scope link fe80::(address)/64

I do not suggest you do this though
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 1410

PostPosted: Thu Feb 23, 2023 0:05    Post subject: Reply with quote
oh forgot to mention if you want this automatically you would need to put in startup script
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Thu Feb 23, 2023 12:48    Post subject: Reply with quote
Wildlion wrote:
use the ip command:

ip address add dev br0 scope link fe80::1/64

and delete the old one

ip address del dev br0 scope link fe80::(address)/64

I do not suggest you do this though


Yes, I was thinking about doing that as well, however I'm not sure about what might break in DD-WRT, for instance dnsmasq assumes the interface IPv6, will that keep the old IP or use the new one? There are a couple of other services that might pick on the OS assigned IP and never update it.

On a generic linux system, systemd or network manager allow to change the way the local link addr is generated and/or set something static when the interface is brought up. Is there similar, sanctioned way of doing this in DD-WRT?

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum