Configure IPV6 DHCP SERVER ON CENTOS

Configure IPV6 DHCP SERVER ON CENTOS.

Example Link This.

If you have 2 different subnet in ipv6 network.

For Ex:

1.260c:xxxx:xxx:xx:xx:xxxx:3000/112.

2.260c:xxxx:xxx:xx:xx:xxxx:4000/112.

Step to configure ipv6 dhcp server.

Install dhcp package on centos.

Yum install dhcpd

Once you installed dhcpd package on centos

Open vi /etc/dhcp/dhcpd6.conf  file.

Go to the last page using ctrl+g

And edit the config file like this

subnet6 260c:xxxx:xxx:xx:xx:xxxx:3000::/112 {
range6 260c:xxxx:xxx:xx:xx:xxxx :3000:2 260c:xxxx:xxx:xx:xx:xxxx :100;
prefix6 260c:xxxx:xxx:xx:xx:xxxx::3000  2620:0:22c0:111:0:100:3000::/112;
option dhcp6.name-servers 260c:xxxx:xxx:xx:xx:xxxx :3000:250;
}
And save the file

Restart dhcpd6 service

/etc/init.d/dhcpd6 restart

Go to Any Linux client box.

Get a ipv6 ipaddress using   dhclient -6 etho -v

After that You will be getting ipv6 ipaddress ex:  260c:xxxx:xxx:xx:xx:xxxx :3000:15/64

You won’t get 112 subnet But you can ping any ipv6 add with in 3000/112 Network.

If You want to ping other ipv6 subnet ex: 260c:xxxx:xxx:xx:xx:xxxx:4000/112.

You Need to add route using this below cmd.

ip -6 route add 260c:xxxx:xxx:xx:xx:xxxx:3000:0/112 dev eth0

ip -6 route add default via 260c:xxxx:xxx:xx:xx:xxxx:3000:1

And stop ip6tables service.

Done

 

 

 

 

 

 

 

 

 

 

 

Leave a Reply