Professional Documents
Culture Documents
DHCP Server Config
DHCP Server Config
By : Santosh Yadav
IIT Kanpur
IPv6 Dynamic Host
Configuration Protocol
Overview
Evolution Of DHCPv6
DHCPv6 Concepts
Installation
Configuration
Evolution Of DHCPv6
IPv6 auto-configuration
Stateless
nodes configure addresses themselves with
information from routers (if available);
no managed addresses
Stateful
nodes use DHCPv6 to obtain addresses.
Duplicate address detection (DAD) used to avoid
duplicated addresses
Dhcpv6 Concepts
What is DHCPv6 ?
SOLICIT RELEASE
ADVERTISE DECLINE
REQUEST RECONFIGURE
CONFIRM INFORMATION-REQUEST
RENEW RELAY-FORW
REBIND RELAY-REPL
REPLY
Message Type Option
Message Type Meaning
SOLICIT(1) A client sends a Solicit message to locate servers.
ADVERTISE (2) A server sends an Advertise message to indicate that it is
available for DHCP service, in response to a Solicit message
received from a client.
REQUEST (3) A client sends a Request message to request configuration
parameters, including IP addresses, from a specific server.
REPLY (4) A server sends a Reply message containing assigned
addresses and configuration parameters in response to a
Solicit, Request, Renew, Rebind message received from a
Client.
RENEW (5) A client sends a Renew message to the server that originally
provided the client's addresses and configuration parameters
to extend the lifetimes on the addresses assigned to the
client.
REBIND (6) A client sends a Rebind message to any available
server to extend the lifetimes on the addresses
assigned to the client.
Dhcpv6 Concepts
DHCP Messages
All_DHCP_Relay_Agents_and_Servers
Link-scoped multicast address used by a client to
communicate with on-link relay agents and servers
FF02::1:2
All_DHCP_Servers
Site-scoped multicast address used by a relay agent to
communicate with servers
FF05::1:3
Dhcpv6 Concepts
Identity Association
SOLICIT
ADVERTISE ADVERTISE
TIME
REQUEST
Client select
one advertise REPLY
server B Client Now use address and
parameter for lifetime
DHCP DHCP DHCP
server client Client renew life time server
A RENEW B
REPLY
Dhcpv6 operation :
Client sends messages to link-local multicast address
Server unicasts response to client
Information-Request / Reply - provide client configuration
information but no addresses
Confirm / Reply - assist in determining whether client moved
Reconfigure - allow servers to initiate a client reconfiguration
Basic client/server authentication capabilities in base
standard.
DHCP Unique Identifier (DUID) used to identify clients &
servers
Identity Association ID (IAID) used to identify a collection of
addresses
Relay Agents used when server not on-link
Relay Agents may be chained
Ongoing Project
Dhcpv6 server :
Dhcpv6 client :
File : /etc/sysconfig/dhcp6s
Specify the interface for dhcp6s
DHCP6SIF=eth0
Configuration
Server configuration...
File : /etc/dhcp6s.conf
interface eth0 {
server-preference 255;
renew-time 60;
rebind-time 90;
prefer-life-time 130;
valid-life-time 200;
allow rapid-commit;
link BBB {
pool{
range 2001:0E30:1402:2::4 to 2001:0E30:1402:2::ffff/64;
prefix 2001:0E30:1402::/48;
};
};
};
Configuration
File : /etc/sysconfig/network-scripts/ifcfg-eth0
IPV6INIT=yes
DHCP6C=yes
Configuration
client configuration...
File : /etc/dhcp6c.conf
interface eth0 {
#information-only;
send rapid-commit;
#request prefix-delegation;
#request temp-address;
address {
2001:0E30:1402:1:9656:3:4:56/64;
};
};
Testing
Any Question?