[SOLVED] Can't get ipv6 address by dhcp for vmbr0

chineseswish

New Member
Nov 12, 2024
19
0
1
After upgrade to new version,I can't obtain ipv6 dhcp address again.How do it in the 9.0.11?

I try setup /etc/network/interfaces :
iface vmbr0 inet6 dhcp
Problem still exists.
I try use dhclient -6 vmbr0 and success.
I setup ipv6 address static

Code:
iface vmbr0 inet manual
        address 192.168.3.86/24
        gateway 192.168.3.1
        bridge-ports enp6s0
        bridge-stp off
        bridge-fd 0
        mtu 9000
 
Install "apt install isc-dhcp-client" should fix it.

 
Install "apt install isc-dhcp-client" should fix it.

Thanks for you help.I already install it but no ipv6 address assigned.

I current add a script use cron at boot to fix this issue.But I want a simple solution.
Code:
#!/bin/bash
until ip link show vmbr0 | grep "state UP" > /dev/null; do
        sleep 1
done
sudo dhclient -6 vmbr0

But this get IPv6 address is masked by /128:
Code:
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000
    link/ether 38:bc:01:93:7a:c2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.3.254/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 2408:8234:12:cb0::5/128 scope global dynamic
       valid_lft 259199sec preferred_lft 172799sec
    inet6 fe80::3abc:1ff:fe93:7ac2/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever

Normal get IPv6 address is /64.
 
Last edited:
Solution:
1. Install dhcpcd5
2. Edit /etc/dhcpcd.conf ,append my config.
Code:
allowinterfaces vmbr0

interface vmbr0
static ip_address=192.168.3.254/24
static routers=192.168.3.1
static domain_name_servers=192.168.3.1 1.2.4.8 223.5.5.5
ipv6rs
dhcp6
3. Reboot system and use ip a ,vmbr has correct IPv6 address.