3-ipv6服务器之-dhcpv6(dibbler)

dibbler也是一个dhcpv6服务器,已经有了isc-dhcp-server为啥还要dibbler

isc-dhcp平常都可以正常使用,但是在配合pppoe的时候,发现isc-dhcp不能绑定到ppp接口,会提示Unsupported device type 512 for "ppp0",没办法只能换成dibbler再试下。

1. 安装dibbler服务器
sudo apt-get install dibbler-server

安装的时候会提示是否开机自启动,按自己的需求选择

2. 配置dibbler服务器

dibbler服务器的配置信息位于/etc/dibbler/server.conf

iface "eth0" {

 // also ranges can be defines, instead of exact values
 t1 180-200
 t2 270-300
 prefered-lifetime 180
 valid-lifetime 360

# assign addresses from this pool
 class {
   pool 2001:db8:1111::/64
 }

# assign temporary addresses from this pool

 ta-class {
    pool 2001:db8:2222::/96
 }

#assign /96 prefixes from this pool
 pd-class {
     pd-pool 2001:db8:3333::/64
     #pd-poll 2001:db8:4444::/80
     pd-length 64
 }
 
# provide DNS server location to the clients
 option dns-server 2000::ff,2000::fe

# provide their domain name
 option domain example.com

# provide vendor-specific info (vendor id=5678 will get first value,
# while vendor=1556 will get second value)
 option vendor-spec 5678-1-0x3031323334,1556-2-0x393837363534

# provide ntp-server information
 option ntp-server 2000::200,2000::201,2000::202

# provide timezone information
 option time-zone  CET

# provide VoIP parameter (SIP protocol servers and domain names)
 option sip-server 2000::300,2000::302,2000::303,2000::304
 option sip-domain sip1.example.com,sip2.example.com

# provide NIS information (server addresses and domain name)
 option nis-server 2000::400,2000::401,2000::404,2000::405,2000::405
 option nis-domain nis.example.com

# provide NIS+ information (server addresses and domain name)
 option nis+-server 2000::501,2000::502
 option nis+-domain nisplus.example.com

  • 正常dhcpv6是iface为eth0,当为pppoe拨号的时候,需要把iface改成拨号成功的端口,如ppp0
  • class里面填写再发的IP地址段
  • pd-class里面填写dhcp-pd给路由器下一级的地址段
3. 启动、停止

后台启动,dibbler-server的启动需要确保eth0/ppp0已经启动后再运行

sudo /etc/init.d/dibbler-server start

停掉

sudo /etc/init.d/dibbler-server stop

日志文件为

vim /var/log/dibbler/dibbler-server.log

如果出现问题不能启动的时候手动删除

sudo rm -rf /var/lib/dibbler/*
  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值