I have a network which has no ipv6 connectivity to the internet. But I'd like to play a little with private networking.
So I want to use ULAs for my devices and automatically distribute the prefix.
I know that ipv6 uses router advertisement to do so. But (hence the name…) it advertises a router, too. In my case using dnsmasq it's the address of the server running it. So it ends up in my clients as a default route.
Since I don't have a router and don't want my clients to have a default route is there a way to dynamically assign ula prefixes without a router?
And even more "advanced": Is there a way to use dhcpv6 without a router?
Best Answer
This is possible.
According to RFC 4861 (Neighbor Discovery in IPv6) Section 4.2. Router Advertisement Message Format:
Using radvd this can be done with e.g.:
With dnsmasq this is what it could look like:
(note the ra-param. The second zero is the router's lifetime) (although note that eth0 is configured to have fd10:1::XX/64)
Both result in an assigned prefix on the client used for stateless autoconfiguration which results in addresses like fd10:1::c00l:cafe:baad:food. No default route is set.