dhcpv6 default gateway

Issues related to configuring your network
Post Reply
waranty92
Posts: 10
Joined: 2017/02/04 06:35:05

dhcpv6 default gateway

Post by waranty92 » 2017/02/27 13:34:18

I have an issue with dhcpv6 this is configuration of /etc/dhcp/dhcpd6.conf file.

Code: Select all

default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
allow leasequery;
option dhcp6.info-refresh-time 21600;



subnet6 2000::/64 {
range6 2000::10 2000::100;
option dhcp6.name-servers 2000::1;
}
this is interface configuration

Code: Select all

TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
NM_CONTROLLED=no
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp6s0
UUID=5d43c626-514d-4b36-85e6-6465a6701gf3
DEVICE=enp6s0
ONBOOT=yes
IPV6ADDR=2000::1/64
PEERDNS=yes
PEERROUTES=yes
DHCPv6 clients get ip and DNS information but are not getting default gateway ip.
Last edited by TrevorH on 2017/02/27 17:17:44, edited 1 time in total.
Reason: typo in subject

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dhcpv6 default gateway

Post by TrevorH » 2017/02/27 17:18:42

Shouldn't your dhcp config have the default gw in it for it to send out?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

waranty92
Posts: 10
Joined: 2017/02/04 06:35:05

Re: dhcpv6 default gateway

Post by waranty92 » 2017/02/28 07:10:24

I could not find such option for dhcpv6 I think gateway information should be advertised with ipv6 router advertisement ICMP message not by dhcp server.

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: dhcpv6 default gateway

Post by jlehtone » 2017/02/28 09:02:46

waranty92 wrote:I could not find such option for dhcpv6 I think gateway information should be advertised with ipv6 router advertisement ICMP message not by dhcp server.
Correct.
More on that:
https://community.infoblox.com/t5/IPv6- ... /ba-p/3416
https://www.edge-cloud.net/2013/08/07/i ... t-gateway/
(The latter has a "Hall of shame".)

Anyway, do we agree that dhcpd6 is not the problem and you should ask what your router is configured to do?

waranty92
Posts: 10
Joined: 2017/02/04 06:35:05

Re: dhcpv6 default gateway

Post by waranty92 » 2017/02/28 10:10:14

this router should be gateway of that network so it need to introduce itself by RA-s, how should I make it do so

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: dhcpv6 default gateway

Post by avij » 2017/02/28 10:31:27

As an aside, I'm not sure if your 2000::/64 address was merely censored to hide your actual IPv6 address or if you are actually using that address. Please consider using unique local addresses instead if you can't use globally routable IPv6 addresses.

For advertising your server as a router, you will need to install and run radvd. For reference, here's my /etc/radvd.conf:

Code: Select all

interface eth0
{
	AdvSendAdvert on;
	MinRtrAdvInterval 30;
	MaxRtrAdvInterval 100;
	prefix 2001:2003:xxxx:xxxx::/64
	{
		AdvOnLink on;
		AdvAutonomous on;
		AdvRouterAddr off;
	};

};

waranty92
Posts: 10
Joined: 2017/02/04 06:35:05

Re: dhcpv6 default gateway

Post by waranty92 » 2017/02/28 12:20:30

thank you radvd worked properly for me

Post Reply