Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipv6 #53

Open
seancmalloy opened this issue Jul 28, 2023 · 0 comments
Open

ipv6 #53

seancmalloy opened this issue Jul 28, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@seancmalloy
Copy link

seancmalloy commented Jul 28, 2023

how can i add the ipv6 address to the interface being used by this add-on. dnsmasq assigns ipv4 & ipv6 addesses to clients but not to interface. it looks like this is required to add matter (over thread) devices.

update - i am attempting to add this in fork

added option for v6 in config

ADDRESS6=$(jq --raw-output ".address6" $CONFIG_PATH)
NETMASK6=$(jq --raw-output ".netmask6" $CONFIG_PATH)

...

logger "Add to /etc/network/interfaces: iface $INTERFACE inet6 static" 1
echo "iface $INTERFACE inet6 static"$'\n' >> /etc/network/interfaces

Setup interface

logger "# Setup interface:" 1
logger "Add to /etc/network/interfaces: iface $INTERFACE inet static" 1

Create and add our interface to interfaces file

echo "iface $INTERFACE inet static"$'\n' >> /etc/network/interfaces

logger "Run command: nmcli dev set $INTERFACE managed no" 1
nmcli dev set $INTERFACE managed no

logger "Run command: ip link set $INTERFACE down" 1
ip link set $INTERFACE down

logger "Add to /etc/network/interfaces: address $ADDRESS" 1
echo "address $ADDRESS"$'\n' >> /etc/network/interfaces
logger "Add to /etc/network/interfaces: netmask $NETMASK" 1
echo "netmask $NETMASK"$'\n' >> /etc/network/interfaces
logger "Add to /etc/network/interfaces: broadcast $BROADCAST" 1
echo "broadcast $BROADCAST"$'\n\n' >> /etc/network/interfaces

logger "Add to /etc/network/interfaces: iface $INTERFACE inet6 static" 1
echo "iface $INTERFACE inet6 static"$'\n' >> /etc/network/interfaces

logger "Add to /etc/network/interfaces: address $ADDRESS6" 1
echo "address $ADDRESS6"$'\n' >> /etc/network/interfaces
logger "Add to /etc/network/interfaces: netmask $NETMASK6" 1
echo "netmask $NETMASK6"$'\n' >> /etc/network/interfaces

logger "Run command: ip link set $INTERFACE up" 1
ip link set $INTERFACE up

i have confirmed that the inet6 entry exits in /etc/network/interfaces, but doesnt bind to interface

update - no luck took /etc/network/interface out of equation and used ifconfig

Setup interface

logger "# Setup interface:" 1

logger "Run command: nmcli dev set $INTERFACE managed no" 1
nmcli dev set $INTERFACE managed no

logger "Run command: ip link set $INTERFACE up" 1
ip link set $INTERFACE up

ip -4 addr add $ADDRESS"/"$NETMASK dev $INTERFACE
ip -4 addr add broadcast $BROADCAST dev $INTERFACE
ip -6 addr add $ADDRESS6"/"$NETMASK6 dev $INTERFACE

@ROBOT0-VT ROBOT0-VT self-assigned this Mar 26, 2024
@ROBOT0-VT ROBOT0-VT added enhancement New feature or request help wanted Extra attention is needed labels Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants