You are not logged in.

#1 2022-07-07 15:48:21

annebright
Member
Registered: 2022-07-06
Posts: 6

[RESOLVED] Why it cannot get ipv6 address by dhcpv6?

A archlinux machine can only get link-local address, although dhcpv6 feature of dnsmasq is enabled on a archlinux server. What's wrong with it?

dnsmasq conf is:

interface=ens33
domain-needed
bogus-priv
local=//
local=/localdomain/
dhcp-range=192.168.74.129,192.168.74.160,24h
dhcp-range=::2c81,::2ca0,constructor:ens33,24h
enable-ra

'ip address show dev ens33' on archlinux machine output:

3: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:b6:da:fa brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet6 fe80::20c:29ff:feb6:dafa/64 scope link
       valid_lft forever preferred_lft forever

Network conf of archlinux machine (/etc/systemd/network/20-ens33.network) is:

[Match]
Name=ens33

[Link]
ActivationPolicy=up

[Network]
LinkLocalAddressing=ipv6
IPv6AcceptRA=yes
DHCP=ipv6

Last edited by annebright (2022-07-09 14:22:56)

Offline

#2 2022-07-07 16:22:57

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,193

Re: [RESOLVED] Why it cannot get ipv6 address by dhcpv6?

Are you connecting to a router?  Do you control the router?  Do other machines on your network get IPv6 addresses?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2022-07-08 09:43:51

annebright
Member
Registered: 2022-07-06
Posts: 6

Re: [RESOLVED] Why it cannot get ipv6 address by dhcpv6?

The archlinux machine and archlinux server are two vms connected to a virtual network. The host is connected to the virtual network too. The host cannot get ipv6 address either.

Offline

#4 2022-07-08 14:22:53

-thc
Member
Registered: 2017-03-15
Posts: 685

Re: [RESOLVED] Why it cannot get ipv6 address by dhcpv6?

Maybe the virtual network doesn't transport IPv6.

From the console of your virtual server check:

ping fe80::20c:29ff:feb6:dafa%enXXX

You have to replace "enXXX" with the correct ethernet interface name on the server.

Offline

#5 2022-07-09 14:22:11

annebright
Member
Registered: 2022-07-06
Posts: 6

Re: [RESOLVED] Why it cannot get ipv6 address by dhcpv6?

It works now. The dhcpv6 port was blocked in firewall.

Offline

Board footer

Powered by FluxBB