April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

IPV6 DHCP Server on CentOS 7

Without any talk we can go straight to configure IPV6 DHCP server .

IPV6 NS : 2015:9:19:ffff::1

IPV6 DHCP SERVER : 2015:9:19:ffff::2

 

# yum install dhcp -y

# cp /usr/share/doc/dhcp-4.2.5/dhcpd6.conf.example /etc/dhcp/dhcpd6.conf

# cat /etc/dhcp/dhcpd6.conf

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;
dhcpv6-lease-file-name “/var/lib/dhcpd/dhcpd6.leases”;

 

subnet6 2015:9:19:ffff::/64 {
range6 2015:9:19:ffff::10 2015:9:19:ffff::1000;
option dhcp6.name-servers 2015:9:19:ffff::1;
option dhcp6.domain-search “iptechnics.ae”;
}

# cat /etc/sysconfig/network-scripts/ifcfg-enp3s0

DEVICE=enp3s0
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
TYPE=Ethernet
NETMASK=255.255.255.192
IPADDR=10.254.254.154
GATEWAY=10.254.254.129
IPV6INIT=yes
IPV6ADDR=”2015:9:19:ffff::2/64?
IPV6_AUTOCONF=yes

# systemctl start dhpcd6

# systemctl enable dhcpd6

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>