Odhcp6c ipv6 issue

Hi ,

We wanted to assign IPV6 address to one of our vlan id . So we are running odhcp6c command and trying to get the IPV6 address. Sometimes we able to get IP using odhcp6c. But sometimes it is stuck at "starting SOLICIT transaction". Also sometimes the IP address is released we are not able to find the IP in the interface.

Thank you,
Deepanraj.A

What's your question?

How are you doing this?

You didn't use the standard configuration files?

we have configured in the /etc/config/network file.we observe that odhcp6c is running by default but it is not able to get the IPV6 address. but as soon as i kill the odhcp6c and run again the odhcp6c again am able to get the IP address. But the obtained IP is also temporary ,it vanishes after some time. Please let me know how to configure IPV6 client .so that IPV6 address is assigned automatically

  1. Do you get IPv6 addresses on WAN?
  1. Are they Public or private?

we are not getting IPV6 address in WAN i.e eth0. IP address is private address only

(eth0 is usually LAN...intersting :thinking: )

If your ISP does not provide IPv6 then you would not have it. Are you referring to wanting private IPv6 addresses on the clients?

If so, provide the network and DHCP configs, please.

Sorry we are getting IPV6 address in eth0. it is a typo

root@OpenWrt:~# odhcp6c -s /lib/netifd/dhcpv6.script  -P0 -e -v -k br-lan1
odhcp6c[25654]: (re)starting transaction on br-lan1
Command failed: Not found
odhcp6c[25654]: Starting SOLICIT transaction (timeout 4294967295s, max rc 0)
odhcp6c[25654]: Got a valid reply after 24ms
odhcp6c[25654]: Starting REQUEST transaction (timeout 4294967295s, max rc 10)
odhcp6c[25654]: Send REQUEST message (elapsed 0ms, rc 0)
odhcp6c[25654]: Got a valid reply after 28ms
odhcp6c[25654]: entering stateful-mode on br-lan1
odhcp6c[25654]: Starting <POLL> transaction (timeout 1800s, max rc 0)
Command failed: Not found
Command failed: Not found
Command failed: Unknown error
sh: write error: Invalid argument
Command failed: Not found
Command failed: Unknown error
sh: write error: Invalid argument

Command failed: Not found
Command failed: Unknown error
sh: write error: Invalid argument
Command failed: Not found
Command failed: Unknown error
sh: write error: Invalid argument
odhcp6c[25654]: carrier => 0 event on br-lan1
odhcp6c[25654]: (re)starting transaction on br-lan1
Command failed: Not found
odhcp6c[25654]: Starting SOLICIT transaction (timeout 4294967295s, max rc 0)
root@OpenWrt:~#

I asked if you were using the configuration files...so it seems not.

I have no clue what this is - run:

cat /etc/config/network && cat /etc/config/dhcp

If you are making scripts to configure the device - that may be your issue. Use the normal UCI config files to setup OpenWrt.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.