Simple DHCPv6 server configuration

Simple DHCPv6 server configuration
On server
1. install DHCPv6 rpm package.
   # rpm -ivh dhcpv6-1.2.0-2.fc11.x86_64.rpm
2. Enable the IPv6 networking on the server.
   # vi /etc/sysconfig/network
     NETWORKING_IPV6=yes
3. The Interface for DHCPv6 server need to be specified IPV6 address.
   # vi /etc/sysconfig/network-script/ifcfg-eth0
     IPV6INIT=yes
     IPV6ADDR=3ffe:501:ffff:10::1
   Restart the network
   # service network restart
   # ifconfig eth0 | grep inet6
     inet6 addr: 3ffe:501:ffff:1::1/64 Scope:Global
     inet6 addr: fe80::223:aeff:fe9d:846f/64 Scope:Link

4. Enable forwarding of IPv6 packets:
   # sysctl -w net.ipv6.conf.all.forwarding=1
5. Specify the interface for DHCPv6 server.
   # vi /etc/sysconfig/dhcp6s
     DHCP6SIF=eth0
     DHCP6ARGS=
6. Edit the maim DHCPv6 server configuration file as following:
   # vi /etc/dhcp6s.conf
     interface eth0 {
         renew-time 1000;
         rebind-time 2400;
         prefer-life-time 2000;
         valid-life-time 3000;
         link AAA {
        range 3ffe:501:ffff:1::2 to 3ffe:501:ffff:1::10/64;
         };
      };
7. Disable the firewall.
   # ip6tables -F
8. Finally, we start DHCPv6 server.
   # dhcp6s -v -f eth0
   The output of the command is verbose debugging output.
   At the bottom of the output, we get that the DHCPv6 server is OK.
   "Dec/24/2009 16:44:08 interface definition for eth0 is ok"

On client
1. Instal DHCPv6 client rpm package.
   rpm -ivh dhcpv6-client-1.2.0-2.fc11.x86_64.rpm
2. Enable the IPv6 networking on the client.
   # vi /etc/sysconfig/network
     NETWORKING_IPV6=yes
3. Configure a interface as DHCPv6 client.
   # vi /etc/sysconfig/network-scripts/ifcfg-eth0
     IPV6INIT=yes
     DHCPV6C=yes
4. Edit the main DHCPv6 client configuration file as following:
   # vi /etc/dhcp6c.conf
     interface eth1{
     };
5. Disalbe the firewall on the client
   # ip6tables -F
6. Check the network before networking restart.
   # ifconfig eth0 | grep inet6
     inet6 addr: fe80::223:aeff:fe9d:8294/64 Scope:Link
7. Restart networking on the client.
   # service network restart
8. The client get the IPv6 address from DHCPv6 server.
   # ifconfig eth0 | grep inet6
     inet6 addr: 3ffe:501:ffff:1::2/64 Scope:Global
     inet6 addr: fe80::223:aeff:fe9d:8294/64 Scope:Link

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值