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

Clash 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.
16.04 networking vmware ipv6 dhcpv6
add a comment |Â
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.
16.04 networking vmware ipv6 dhcpv6
Please don't cross-post.
â Michael Hampton
May 15 at 20:51
add a comment |Â
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.
16.04 networking vmware ipv6 dhcpv6
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.
16.04 networking vmware ipv6 dhcpv6
asked May 15 at 18:46
Jugurtha
1
1
Please don't cross-post.
â Michael Hampton
May 15 at 20:51
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Please don't cross-post.
â Michael Hampton
May 15 at 20:51