The comman line is like follows:
dtcpc -t network -u hoge -d dtcp.example.orgWhen you excute dtcpc, you are asked your password. Answer it.Server: dtcp.example.org
User: hoge (-u)
network tunnel type (-t)
Debug output (-d)
When connection is established, a tunnel should be established and an IPv6 default route should be set up toward a tunnel. The following is an example output under FreeBSD:
An interface for an IPv6 over IPv4 tunnel should be set up toward an interface specified by TUNIF. If you wish to custmize this behavior, specify an appropriate interface by -i option.ume@cheer:1003% ifconfig gif0 gif0: flags=8051mtu 1280 tunnel inet 218.45.20.185 --> 210.161.150.9 inet6 fe80::240:c7ff:fe99:81eb%gif0 prefixlen 64 scopeid 0x4 ume@cheer:1004% netstat -rnfinet6 | grep gif0 default ::1 UGSc gif0 fe80::%gif0/64 link#4 UC gif0 fe80::240:c7ff:fe99:81eb%gif0 link#4 UHL lo0 ff02::%gif0/32 link#4 UC gif0
If you don't want the behavior that an IPv6 default route is set up automatically, specify appropriate routes by -R option.
The dtcpc doesn't set an IPv6 global address up automatically with above settings. If you know a prefix delegated from a server. you can set it up statically. Or, please refer Configuring Prefix Delegetion.