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/*
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章