免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 10956 | 回复: 11
打印 上一主题 下一主题

DHCP-4.1.1架设服务器for IPV6 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-05 14:47 |只看该作者 |倒序浏览
服务器端和客服端dhcp6s.conf,dhcp6c.conf怎么写

论坛徽章:
0
2 [报告]
发表于 2010-03-05 14:56 |只看该作者
服务器端的配置我是这么写的
[root@work server]# more dhcp6s.conf
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
option dhcp6.name-servers 2001:0db8:00ac:1e32::0015;
option dhcp6.domain-search "qacc.net";
subnet6 2001:db8:00ac:18c8::/64 {
        range6 2001:db8:00ac:18c8:1::1 2001:db8:00ac:18c8:1::ffff;
        prefix6 2001:db8:00ac:18c8:: 2001:db8:00ac:18c8:: /64;
        }
有执行ip6tables -F
服务器端:
[root@work server]# ifconfig eth0 inet6 add 2001:db8:00ac:18c8:1::10
[root@work server]# ./dhcpd -6 -f -d -cf dhcp6s.conf eth0
Internet Systems Consortium DHCP Server 4.1.1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.
Bound to *:547
Listening on Socket/5/eth0/2001:db8:ac:18c8::/64
Sending on   Socket/5/eth0/2001:db8:ac:18c8::/64


客服端:
./dhclient -6 eth0

问题:客服端没有获得IPV6的地址

提示1:
Listening on Socket/5/eth0/2001:db8:ac:18c8::/64
Sending on   Socket/5/eth0/2001:db8:ac:18c8::/64
Confirm message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0xDCE80700
Sending Reply to fe80::21e:90ff:fe7c:efd6 port 546
Renew message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0xBEEBBE00
Discarding Renew from fe80::21e:90ff:fe7c:efd6; not our server identifier (CLIENTID 00:01:00:01:13:21:ed:2b:00:1e:90:7c:ef:d6, SERVERID 00:01:00:01:13:21:da:61:00:1e:90:7c:ef:d6, server DUID 00:01:00:01:13:21:ec:52:00:1a:4b:75:18:b7)
Renew message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0xBEEBBE00
Discarding Renew from fe80::21e:90ff:fe7c:efd6; not our server identifier (CLIENTID 00:01:00:01:13:21:ed:2b:00:1e:90:7c:ef:d6, SERVERID 00:01:00:01:13:21:da:61:00:1e:90:7c:ef:d6, server DUID 00:01:00:01:13:21:ec:52:00:1a:4b:75:18:b7)
Renew message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0x6990AE00
Discarding Renew from fe80::21e:90ff:fe7c:efd6; not our server identifier (CLIENTID 00:01:00:01:13:21:ed:2b:00:1e:90:7c:ef:d6, SERVERID 00:01:00:01:13:21:da:61:00:1e:90:7c:ef:d6, server DUID 00:01:00:01:13:21:ec:52:00:1a:4b:75:18:b7)
Renew message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0x1ED83B00

提示2:
Listening on Socket/5/eth0/2001:db8:ac:18c8::/64
Sending on   Socket/5/eth0/2001:db8:ac:18c8::/64
Confirm message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0x57597700
Sending Reply to fe80::21e:90ff:fe7c:efd6 port 546
Confirm message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0x57597700
Sending Reply to fe80::21e:90ff:fe7c:efd6 port 546
Confirm message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0x57597700
Sending Reply to fe80::21e:90ff:fe7c:efd6 port 546
Confirm message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0x57597700
Sending Reply to fe80::21e:90ff:fe7c:efd6 port 546
Solicit message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0x7E8B6800
Picking pool address 2001:db8:ac:18c8:1::c3bc
Sending Advertise to fe80::21e:90ff:fe7c:efd6 port 546
Request message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0xC60C3200
Sending Reply to fe80::21e:90ff:fe7c:efd6 port 546
Renew message from fe80::21e:90ff:fe7c:efd6 port 546, transaction ID 0x66823800
Sending Reply to fe80::21e:90ff:fe7c:efd6 port 546


请帮忙看看

论坛徽章:
0
3 [报告]
发表于 2010-03-05 15:06 |只看该作者
环境:两台pc都是fedora10的

再问以下就是如何在xp或者win7下设置让系统自动获得IPv6(现在不确定是我的服务器有问题还是客服端配置有问题)

论坛徽章:
0
4 [报告]
发表于 2010-03-05 21:53 |只看该作者
环境:两台pc都是fedora10的

再问以下就是如何在xp或者win7下设置让系统自动获得IPv6(现在不确定是我的服 ...
jxq19881013 发表于 2010-03-05 15:06


wireshark抓包看

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
5 [报告]
发表于 2010-03-06 08:36 |只看该作者
检查下dhcp的日志

论坛徽章:
0
6 [报告]
发表于 2010-03-12 15:21 |只看该作者
已确定server端是没问题的,因为我的windows7和linux下的dibber-client能获得ipv6 address,但是我用原来的client端还是获取不到ipv6地址,有谁知道怎么配置ipv6 client吗

论坛徽章:
0
7 [报告]
发表于 2010-03-16 11:24 |只看该作者
问题找到方法了,其实我的client有获得配置信息,只是全部保存在client.lease文件中。后来我去源码中找的时候发现是因为我没有指定一个脚本(script/linux),这个脚本就是用来使配置生效的。
但是我又遇到一个问题就是我的server里面的网关不知道怎么配置,就是option选项不知道怎么写

论坛徽章:
0
8 [报告]
发表于 2010-03-18 15:54 |只看该作者
结贴,dhcp-4.1.1server里面不提供route information,由radvd(Router Advertisement Daemon)这个程序提供。

论坛徽章:
0
9 [报告]
发表于 2010-03-18 16:22 |只看该作者

论坛徽章:
0
10 [报告]
发表于 2010-07-13 16:05 |只看该作者
回复 7# jxq19881013


    你好,我现在想在开发板上运行一个DHCPV6的客户端,我之前用的是dibbler-0.7.3-src.tar.gz,但是在交叉编译时有问题,就是把Makefile.inc里面的CXX和CC给改了,但是实际上却没有交叉编译成功,生成的可执行命令还是之前的,不是二进制形式的,你知道怎么对dibbler交叉编译吗?要改动哪些呢??谢谢!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP