openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
161 stars 98 forks source link

which model of the odhcpd i should to use? #39

Open zjwd5 opened 9 years ago

zjwd5 commented 9 years ago

I use the openwrt trunk r45001. I got a ipv6 address on wan, and i can ping ipv6.google.com. But i can not got a ipv6 address on my PC with win7 64bit. I tried all the models of the odhcpd, but it seems not to work. I use the commond "ifstatus wan6" , and i got this { "up": true, "pending": false, "available": true, "autostart": true, "uptime": 76, "l3_device": "eth0.2", "proto": "dhcpv6", "device": "eth0.2", "updated": [ "addresses", "routes", "data" ], "metric": 0, "delegation": true, "ipv4-address": [

],
"ipv6-address": [
    {
        "address": "2001:250:5004:200b::5a92",
        "mask": 128,
        "preferred": 172724,
        "valid": 259124
    }
],
"ipv6-prefix": [

],
"ipv6-prefix-assignment": [

],
"route": [
    {
        "target": "::",
        "mask": 0,
        "nexthop": "fe80::3600:a3ff:fedd:eb59",
        "metric": 1024,
        "valid": 1724,
        "source": "::/128"
    },
    {
        "target": "::",
        "mask": 0,
        "nexthop": "fe80::3600:a3ff:fedd:eb59",
        "metric": 1024,
        "valid": 1724,
        "source": "2001:250:5004:200b::5a92/128"
    }
],
"dns-server": [
    "2001:da8:1003:1::10"
],
"dns-search": [

],
"inactive": {
    "ipv4-address": [

    ],
    "ipv6-address": [

    ],
    "route": [

    ],
    "dns-server": [

    ],
    "dns-search": [

    ]
},
"data": {
    "passthru": "0017001020010da8100300010000000000000010"
}

}

How to configure the odhcpd to make sure i can use the ipv6 on lan? Thank you very much! I'm sorry, my English is not good.

dedeckeh commented 9 years ago

For IPv6 connectivity on the LAN you need to delegate a prefix to the lan. In order to delegate a prefix you need to receive a prefix on the WAN; above output shows no prefix is received on the wan6 interface as the ipv6-prefix field is empty alas no IPv6 connectivity on the lan. Either the upstream DHCPv6 server on the wan network is not configured to give an IPv6 prefix or the DHCPv6 client is not requesting a prefix.

zjwd5 commented 9 years ago

First of all, thank you very much for your answer. As you see, my school internet server doesn't provide a prefix for DHCPv6 client. Is there any way i can use to use the ipv6 on lan? My router is lenovo newifi mini. I can only use Barrier Breaker or CC, which ipv6 address can only get from odhcpd? I tried ipv6 NAT and Radvd, my pc got a ipv6 address, but can not ping ipv6.google.com. Can you give me some instructions? Thanks again!