Jump to content
The Unraid Annual Cyber Weekend Sale is here 🔥 ×

Set IPv6 interface identifier


Recommended Posts

Posted (edited)

Since it seems UNRAID OS is generating IPv6 interface identifiers randomly (if not let me know how these are actually generated) it would be very nice to add the possibilities to:

1) set the IPv6 address freely (already there)

2) use/enforce DHCPv6

2) use/enforce SLAAC but allow

    2.1) setting the interface identifier accordingly to EUI-64

    2.2) set tokenized interface identifiers (see man-pages)

    2.3) setting the interface identifier randomized

Edited by fxp555
  • 4 months later...
Posted (edited)

https://www.cnblogs.com/osnosn/p/13771929.html

 

append a line in file:"config/go" , "/bin/sh /boot/cnofig/modify_dhcpcd.sh"

#!/bin/bash
# filename: config/modify_dhcpcd.sh
# usage: unraid-6.8.2 , modify dhcpcd.conf , duid
#      set SLAAC ipv6 in eui64, use own DUID.
#   create by yourself:"config/duid" (DUID) -> "05:0a:0c:12:13:14:15:16"
/bin/cp /boot/config/duid /var/lib/dhcpcd/duid
/bin/sed -i 's/^#slaac hwaddr/slaac hwaddr/g;s/^slaac private/#slaac private/g' /etc/dhcpcd.conf
if [ -f /run/dhcpcd-br0-6.pid ]; then
   kill $(cat /run/dhcpcd-br0-6.pid )
   dhcpcd -b -q -t 10 -h my_Tower_Name -C resolv.conf -6 br0
fi

 

Edited by osn

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...