I cp "/usr/local/share/examples/wide-dhcpv6/dhcp6c.conf.sample" to "/etc/dhcp6c.conf"

----------------------------------------------------------------
interface fxp0 {
        send ia-na 0;
        send rapid-commit;
        send domain-name-servers;
};

id-assoc na {
};
----------------------------------------------------------------

then root@shell: /usr/local/sbin/dhcp6c -c /etc/dhcp6c.conf -Df fxp0

but can not get the ipv6 ip

sorry to ask that, but can anyone get me simple examples(dhcp6c.conf) to get ipv6 from my isp?
my english is bad, and i don't understand the man page.
please help, and thank you.

this is the output of ifconfig fxp0:
----------------------------------------------------------------
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:d0:b7:70:20:7f
        priority: 0
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::2d0:b7ff:fe70:207f%fxp0 prefixlen 64 scopeid 0x1
        inet 58.176.246.221 netmask 0xffffff00 broadcast 58.176.246.255
----------------------------------------------------------------

this is the output of the dhcp6c command:
-----------------------------------------------------------------
Mar/02/2011 19:23:58: get_duid: extracted an existing DUID from /var/db/dhcp6c_duid: 00:01:00:01:14:ff:cd:24:00:d0:b7:70:20:7f Mar/02/2011 19:23:58: dhcp6_ctl_authinit: failed to open /etc/dhcp6cctlkey: No such file or directory Mar/02/2011 19:23:58: client6_init: failed initialize control message authentication
Mar/02/2011 19:23:58: client6_init: skip opening control port
Mar/02/2011 19:23:58: cfdebug_print: <3>[interface] (9)
Mar/02/2011 19:23:58: cfdebug_print: <5>[fxp0] (4)
Mar/02/2011 19:23:58: cfdebug_print: <3>begin of closure [{] (1)
Mar/02/2011 19:23:58: cfdebug_print: <3>[send] (4)
Mar/02/2011 19:23:58: cfdebug_print: <3>[ia-na] (5)
Mar/02/2011 19:23:58: cfdebug_print: <3>[0] (1)
Mar/02/2011 19:23:58: cfdebug_print: <3>end of sentence [;] (1)
Mar/02/2011 19:23:58: cfdebug_print: <3>[send] (4)
Mar/02/2011 19:23:58: cfdebug_print: <3>[rapid-commit] (12)
Mar/02/2011 19:23:58: cfdebug_print: <3>end of sentence [;] (1)
Mar/02/2011 19:23:58: cfdebug_print: <3>[send] (4)
Mar/02/2011 19:23:58: cfdebug_print: <3>[domain-name-servers] (19)
Mar/02/2011 19:23:58: cfdebug_print: <3>end of sentence [;] (1)
Mar/02/2011 19:23:58: cfdebug_print: <3>end of closure [}] (1)
Mar/02/2011 19:23:58: cfdebug_print: <3>end of sentence [;] (1)
Mar/02/2011 19:23:58: cfdebug_print: <3>[id-assoc] (8)
Mar/02/2011 19:23:58: cfdebug_print: <13>[na] (2)
Mar/02/2011 19:23:58: cfdebug_print: <13>begin of closure [{] (1)
Mar/02/2011 19:23:58: cfdebug_print: <3>end of closure [}] (1)
Mar/02/2011 19:23:58: cfdebug_print: <3>end of sentence [;] (1)
Mar/02/2011 19:23:58: configure_pool: called
Mar/02/2011 19:23:58: add_options: invalid operation (0) for option type (16)
Mar/02/2011 19:23:58: clear_poolconf: called
Mar/02/2011 19:23:58: dhcp6_reset_timer: reset a timer on fxp0, state=INIT, timeo=0, retrans=383
Mar/02/2011 19:23:59: client6_send: a new XID (22c5da) is generated
Mar/02/2011 19:23:59: copy_option: set client ID (len 14)
Mar/02/2011 19:23:59: copyout_option: set identity association
Mar/02/2011 19:23:59: copy_option: set rapid commit (len 0)
Mar/02/2011 19:23:59: copy_option: set elapsed time (len 2)
Mar/02/2011 19:23:59: client6_send: send solicit to ff02::1:2%fxp0
Mar/02/2011 19:23:59: dhcp6_reset_timer: reset a timer on fxp0, state=SOLICIT, timeo=0, retrans=1088
Mar/02/2011 19:24:00: copy_option: set client ID (len 14)
Mar/02/2011 19:24:00: copyout_option: set identity association
Mar/02/2011 19:24:00: copy_option: set rapid commit (len 0)
Mar/02/2011 19:24:00: copy_option: set elapsed time (len 2)
Mar/02/2011 19:24:00: client6_send: send solicit to ff02::1:2%fxp0
Mar/02/2011 19:24:00: dhcp6_reset_timer: reset a timer on fxp0, state=SOLICIT, timeo=1, retrans=2151
Mar/02/2011 19:24:02: copy_option: set client ID (len 14)
Mar/02/2011 19:24:02: copyout_option: set identity association
Mar/02/2011 19:24:02: copy_option: set rapid commit (len 0)
Mar/02/2011 19:24:02: copy_option: set elapsed time (len 2)
Mar/02/2011 19:24:02: client6_send: send solicit to ff02::1:2%fxp0
Mar/02/2011 19:24:02: dhcp6_reset_timer: reset a timer on fxp0, state=SOLICIT, timeo=2, retrans=4283
-----------------------------------------------------------------------------------------------------

Reply via email to