How to get /64 as prefix length when using DHCPv6 and radvd?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












For our networking course we were asked to set up a DHCPv6 server in a virtual machine. I choose to work on a virtual machine(on VMware) running Ubuntu Desktop 16.04 and Lubuntu 14.04 as test client with network adapters set for a specific LAN. I started by configuring isc-dhcp-server to function for IPv6 as described in this post and I ended up with a functioning dhcpv6 with a configuration file( /etc/dhcp/dhcpd6.conf) containing this lines:



ddns-update-style none;
default-lease-time 100;
max-lease-time 200;
subnet6 2001:4340:4532:0400::/64
range6 2001:4340:4532:0400::0004 2001:4340:4532:0400::0006;



I also made the necessary changes to the init script to set the .conf, the .pid, the lease file and configured the interface ens33 with a static address as shown here : static ip set through gui



The problem is that the client is receiving a /128 address.



After some research I found-out that the DHCPv6 server doesn't give information about prefix length and that it must be broadcasted using Router Advertisements. So, I installed radvd on the same VM, enabled forwarding, disabled ufw and configured it with this config file :



interface ens33{
#this is important :
AdvSendAdvert on;
MaxRtrAdvInterval 6;
MinRtrAdvInterval 4;
#this is important to :
AdvManagedFlag on;
AdvOtherConfigFlag off;
prefix 2001:4340:4532:400::/64


AdvOnLink on;
AdvAutonomous off;
;


And I get this on the client side : ifconfig on client I'm also using this as network settings on this client : enter image description here. When I enable the AdvAutonomous or change settings in the Editing wired connection window I do get a /64 address with the right prefix through SLAAC indicating that the RAs are received and doing there work but that is not what I'm looking for.



I've been stuck with this for quit some time and please keep in mind that I'm a new to networking and Linux so please forgive my lack of knowledge.







share|improve this question




















  • Please don't cross-post.
    – Michael Hampton
    May 15 at 20:51














up vote
0
down vote

favorite












For our networking course we were asked to set up a DHCPv6 server in a virtual machine. I choose to work on a virtual machine(on VMware) running Ubuntu Desktop 16.04 and Lubuntu 14.04 as test client with network adapters set for a specific LAN. I started by configuring isc-dhcp-server to function for IPv6 as described in this post and I ended up with a functioning dhcpv6 with a configuration file( /etc/dhcp/dhcpd6.conf) containing this lines:



ddns-update-style none;
default-lease-time 100;
max-lease-time 200;
subnet6 2001:4340:4532:0400::/64
range6 2001:4340:4532:0400::0004 2001:4340:4532:0400::0006;



I also made the necessary changes to the init script to set the .conf, the .pid, the lease file and configured the interface ens33 with a static address as shown here : static ip set through gui



The problem is that the client is receiving a /128 address.



After some research I found-out that the DHCPv6 server doesn't give information about prefix length and that it must be broadcasted using Router Advertisements. So, I installed radvd on the same VM, enabled forwarding, disabled ufw and configured it with this config file :



interface ens33{
#this is important :
AdvSendAdvert on;
MaxRtrAdvInterval 6;
MinRtrAdvInterval 4;
#this is important to :
AdvManagedFlag on;
AdvOtherConfigFlag off;
prefix 2001:4340:4532:400::/64


AdvOnLink on;
AdvAutonomous off;
;


And I get this on the client side : ifconfig on client I'm also using this as network settings on this client : enter image description here. When I enable the AdvAutonomous or change settings in the Editing wired connection window I do get a /64 address with the right prefix through SLAAC indicating that the RAs are received and doing there work but that is not what I'm looking for.



I've been stuck with this for quit some time and please keep in mind that I'm a new to networking and Linux so please forgive my lack of knowledge.







share|improve this question




















  • Please don't cross-post.
    – Michael Hampton
    May 15 at 20:51












up vote
0
down vote

favorite









up vote
0
down vote

favorite











For our networking course we were asked to set up a DHCPv6 server in a virtual machine. I choose to work on a virtual machine(on VMware) running Ubuntu Desktop 16.04 and Lubuntu 14.04 as test client with network adapters set for a specific LAN. I started by configuring isc-dhcp-server to function for IPv6 as described in this post and I ended up with a functioning dhcpv6 with a configuration file( /etc/dhcp/dhcpd6.conf) containing this lines:



ddns-update-style none;
default-lease-time 100;
max-lease-time 200;
subnet6 2001:4340:4532:0400::/64
range6 2001:4340:4532:0400::0004 2001:4340:4532:0400::0006;



I also made the necessary changes to the init script to set the .conf, the .pid, the lease file and configured the interface ens33 with a static address as shown here : static ip set through gui



The problem is that the client is receiving a /128 address.



After some research I found-out that the DHCPv6 server doesn't give information about prefix length and that it must be broadcasted using Router Advertisements. So, I installed radvd on the same VM, enabled forwarding, disabled ufw and configured it with this config file :



interface ens33{
#this is important :
AdvSendAdvert on;
MaxRtrAdvInterval 6;
MinRtrAdvInterval 4;
#this is important to :
AdvManagedFlag on;
AdvOtherConfigFlag off;
prefix 2001:4340:4532:400::/64


AdvOnLink on;
AdvAutonomous off;
;


And I get this on the client side : ifconfig on client I'm also using this as network settings on this client : enter image description here. When I enable the AdvAutonomous or change settings in the Editing wired connection window I do get a /64 address with the right prefix through SLAAC indicating that the RAs are received and doing there work but that is not what I'm looking for.



I've been stuck with this for quit some time and please keep in mind that I'm a new to networking and Linux so please forgive my lack of knowledge.







share|improve this question












For our networking course we were asked to set up a DHCPv6 server in a virtual machine. I choose to work on a virtual machine(on VMware) running Ubuntu Desktop 16.04 and Lubuntu 14.04 as test client with network adapters set for a specific LAN. I started by configuring isc-dhcp-server to function for IPv6 as described in this post and I ended up with a functioning dhcpv6 with a configuration file( /etc/dhcp/dhcpd6.conf) containing this lines:



ddns-update-style none;
default-lease-time 100;
max-lease-time 200;
subnet6 2001:4340:4532:0400::/64
range6 2001:4340:4532:0400::0004 2001:4340:4532:0400::0006;



I also made the necessary changes to the init script to set the .conf, the .pid, the lease file and configured the interface ens33 with a static address as shown here : static ip set through gui



The problem is that the client is receiving a /128 address.



After some research I found-out that the DHCPv6 server doesn't give information about prefix length and that it must be broadcasted using Router Advertisements. So, I installed radvd on the same VM, enabled forwarding, disabled ufw and configured it with this config file :



interface ens33{
#this is important :
AdvSendAdvert on;
MaxRtrAdvInterval 6;
MinRtrAdvInterval 4;
#this is important to :
AdvManagedFlag on;
AdvOtherConfigFlag off;
prefix 2001:4340:4532:400::/64


AdvOnLink on;
AdvAutonomous off;
;


And I get this on the client side : ifconfig on client I'm also using this as network settings on this client : enter image description here. When I enable the AdvAutonomous or change settings in the Editing wired connection window I do get a /64 address with the right prefix through SLAAC indicating that the RAs are received and doing there work but that is not what I'm looking for.



I've been stuck with this for quit some time and please keep in mind that I'm a new to networking and Linux so please forgive my lack of knowledge.









share|improve this question











share|improve this question




share|improve this question










asked May 15 at 18:46









Jugurtha

1




1











  • Please don't cross-post.
    – Michael Hampton
    May 15 at 20:51
















  • Please don't cross-post.
    – Michael Hampton
    May 15 at 20:51















Please don't cross-post.
– Michael Hampton
May 15 at 20:51




Please don't cross-post.
– Michael Hampton
May 15 at 20:51















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036657%2fhow-to-get-64-as-prefix-length-when-using-dhcpv6-and-radvd%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1036657%2fhow-to-get-64-as-prefix-length-when-using-dhcpv6-and-radvd%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?