安装DHCPv6服务器-dhcp-4.1.1-P1

原创 2018年04月16日 11:44:12

dhcp-4.1.1-P1

环境 ubuntu 12.04
工具 dhcp-4.1.1-P1.tar.gz或者dhcp-4.3.5.tar.gz等

1. 安装isc-dhcp

点击下载:https://www.isc.org/downloads/
编译安装
解压:

tar -xvf dhcp-4.1.1-P1.tar.gz

安装:

cd dhcp-4.1.1-P1
./configure
make
sudo make install

2. 配置文件

创建 /usr/local/etc/dhcp6.conf 作为配置文件:

Sample configuration file for ISC dhcpd
INTERFACES="eth0";
option domain-name "yl0880.yyy.com";
default-lease-time 6000;
max-lease-time 6000;
log-facility local7;

option dhcp6.autop-url code 230 = string;
option dhcp6.pcode code 41 = string;
option dhcp6.tcode code 42 = string;
option dhcp6.bootfile-url code 59 = string;

subnet6 fc00:1987:1007:2916::/64 {
    # address range
    range6 fc00:1987:1007:2916::0002 fc00:1987:1007:2916::fffe:fffe;

    # Default route
    # option dhcp6.next-hop fc00:1987:1007:2916::1;

    # DNS servers
    option dhcp6.name-servers fc00:1987:1007:2916::1,fc00:1987:1007:2916::2;
    #option dhcp6.name-servers fc00:1987:1007:2916::3,fc00:1987:1007:2916::4;

    # SIP servers
    option dhcp6.sip-servers-names "www.baidu.dddd";
    option dhcp6.sip-servers-addresses fc00:1987:1007:2916::300;

    # NIS servers
    option dhcp6.nis-servers fc00:1987:1007:2916::1;
    #option dhcp6.nis-domain-name www.baidu.com.;

    # NIS+ servers
    option dhcp6.nisp-servers fc00:1987:1007:2916::500;
    #option dhcp6.nisp-domain-name nisp1.yealink.com,nisp2.yealink.com;

    # SNTP servers
    option dhcp6.sntp-servers fc00:1987:1007:2916::600;

    #option dhcp6.server-id "dadas//xxoo";

    #option dhcp6.autop-url "http://[fc00:1987:1007:2916::fffe:fffc]:8888";
    option dhcp6.autop-url "http://www.sina.com.cn:8888";
    #option dhcp6.autop-url 64;
    option dhcp6.domain-search "dangdangdang";
    #option dhcp6.sntp-servers fc00:1987:1007:2916::1;


    #option dhcp6.tcode "China(Bei)";
    #option dhcp6.pcode "CST-8CDT,M3.1.6/9:00,M9.2.1/19:05";
    #option dhcp6.bootfile-url "http://10.3.15.126:8080/telnet.cfg";
}

创建空文件 /var/db/dhcp6.leases

3. 配置网卡

通过命令 ifconfig 获取当前网卡接口名称(eth0)
选择 fc00:1987:1007:2916::1/64作为 DHCP Server 的固定 IP(与 dhcpd6.conf 中的 subnet6 在同一网段即可)。

sudo ifconfig eth0 inet6 add fc00:1987:1007:2916::1/64   /*配置网卡静态IPv6地址*/

注:此处 eth0 为上文通过命令 ifconfig 获取的

4. 启动Server

dhcpd -6 -cf /usr/local/etc/dhcp6.conf -lf /var/db/dhcp6.leases  /*启动Server*/

注:一般需要关闭ubuntu的防火墙

sudo ufw disable

重启

5. 参考链接

ubuntu 搭建 IPv6 DHCP server: https://blog.csdn.net/rainforest_c/article/details/71172738
ISC-dhcp server for IPv6: http://xiaopangxiongyuan.blog.163.com/blog/static/12490117020116263115442/?COLLCC=2319623943&

dhcp-4.1.1-31.P1.el6.i686.rpm

  • 2016年07月07日 16:11
  • 818KB
  • 下载

DHCP源码分析-dhcpv6模块

dhcpv6主要流程: {   调用log_packet_in()记录接收包的信息;   调用build_dhcpv6_reply(&reply, packet)创建回复packet;   发送rep...
  • wuyongpeng0912
  • wuyongpeng0912
  • 2016-05-22 10:48:35
  • 1131

使用linux配置dhcp v6服务器

aptitude install -y wide-dhcpv6-server ## 配置文件 /etc/wide-dhcpv6/dhcp6s.conf   ## sample 配置文件 /...
  • petershina
  • petershina
  • 2013-07-24 13:39:24
  • 5187

DHCP V6 server配置

DHCPV6 server 配置 dhcp enable  ipv6 dhcpv6 pool HW  address prefix 3000::/64  excluded-address...
  • zjc801
  • zjc801
  • 2016-08-25 11:15:25
  • 1204

Ubuntu搭建dhcpv4+dhcpv6服务器(Kea DHCP Server V1.2.0)

kea dhcpv6 Ubuntu
  • u010687717
  • u010687717
  • 2017-08-27 09:46:33
  • 1186

DHCP v6

 DHCP v6 4.1 介绍 定义 IPv6 动态主机配置协议DHCPv6(Dynamic Host Configuration Protocol for IPv6)是针对I...
  • hisense20112784
  • hisense20112784
  • 2015-05-18 16:40:00
  • 6806

DHCPv6协议

DHCPv6协议     1. 定义 IPv6 动态主机配置协议DHCPv6(Dynamic Host Configuration Protocol for IPv6)是针对IPv6编址...
  • msdh_it
  • msdh_it
  • 2017-07-20 17:02:47
  • 1163

DHCPV4 VS DHCPV6

为了给网络客户机自动分配IP地址以及生成所需的配置参数,IETF分别给IPV4和IPV6网络定义了相关的协议标准,即DHCP(RFC2131)和DHCPV6(RFC3315),以及扩充的选项标准。本文...
  • chenlilong84
  • chenlilong84
  • 2011-12-09 15:41:42
  • 6807

ubuntu下radvd,dhcpv6

上篇讲了ipV4 DHCP server.本篇继续讲述ipV6 server。环境如下 A: Ubuntu 14.04 + 有线网卡(eth0) + 无线网卡(wlan0) B: Windows 7 ...
  • l0605020112
  • l0605020112
  • 2014-12-12 22:04:33
  • 5126

IPv6下的DHCP(DHCPv6)

IPv6下的DHCP(DHCPv6) 一、IPv6概述 IPv6在IPv4的基础上做了很多改进,如扩编地址(由32位扩编为128位)、支持无状态地址自动配置、简化报头、身份验证、支持新的网络服务(...
  • u013889753
  • u013889753
  • 2014-07-16 14:25:11
  • 5604
收藏助手
不良信息举报
您举报文章:安装DHCPv6服务器-dhcp-4.1.1-P1
举报原因:
原因补充:

(最多只允许输入30个字)