Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - DHCP IPv6 support: (5 Items)
   
DHCP IPv6 support  
Hi to enable DHCP Client for IPv4 

I am running below command and this works fine.
"dhcp.client -um -a -i en0 &"

Can you please help in enabling IPv6 address for dhcp.client



Re: DHCP IPv6 support  
dhcp.client is IPv4 only. Take a look at dhclient which supports IPv6.
Re: DHCP IPv6 support  
I am not able to find the IP address when i invoke command ifconfig tiw_sta0 after below command is successfully 
executed
Please help

 dhclient -v -4 tiw_sta0  
Internet Systems Consortium DHCP Client 4.1-ESV-R3
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

can't create /var/db/dhclient.leases: No such file or directory
execve (/sbin/dhclient-script, ...): No such file or directory
Listening on BPF/tiw_sta0/34:b1:f7:8c:5e:a1
Sending on   BPF/tiw_sta0/34:b1:f7:8c:5e:a1
Sending on   Socket/fallback
DHCPDISCOVER on tiw_sta0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on tiw_sta0 to 255.255.255.255 port 67 interval 15
DHCPREQUEST on tiw_sta0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.2.1
DHCPACK from 192.168.2.1
execve (/sbin/dhclient-script, ...): No such file or directory
can't create /var/db/dhclient.leases: No such file or directory
bound to 192.168.2.4 -- renewal in 738 seconds.


> dhcp.client is IPv4 only. Take a look at dhclient which supports IPv6.


Associations:
post110474:
              Re: DHCP IPv6 support - The command we have used is 
dhclient -v -6 tiw_sta0 -sf /tmp/dhclient-script -cf /tmp/dhclient-dhcpv6.conf -lf /tmp/dhclient.leases the above post have the typo error. just to clarify.. but I am facing the same issue as above logs - srikanth chandragiri(deleted)
            
Re: DHCP IPv6 support  
You need to fix your errors:

can't create /var/db/dhclient.leases: No such file or directory
execve (/sbin/dhclient-script, ...): No such file or directory

dhclient only negotiates with the server, it uses dhclient-script to apply the address to the interface.
Re: DHCP IPv6 support  
Hi 
As suggested, I am able to run dhclient v4 with scripts added Its giving proper IPv4 address. I am trying to do the same
 for dhclient IPv6 version. dhclient is hanging. Could you help

# ./dhclient -v -6 tiw_sta0 -lf /tmp/dhclient.leases -cf /tmp/dhclient.conf -sf /tmp/dhclient-script
Internet Systems Consortium DHCP Client 4.1-ESV-R3
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

dhclient-script ===
dhclient-script QNX DHCP client script called reason: PREINIT6
dhclient-script SOCK RESOLV_TO_MEMORY 0 MODIFY_RESOLV 1
dhclient-script NO_DEF_ROUTE 0
dhclient-script interface tiw_sta0 medium pid 5169235 SOCK
dhclient-script addr /
dhclient-script new_routers
dhclient-script new_static_routes
dhclient-script new_dhcp6_name_servers
dhclient-script new_domain_search
dhclient-script new_domain_name
dhclient-script new_domain_name_servers
dhclient-script new_interface_mtu
dhclient-script new_subnet_mask
dhclient-script ===
Wifi Interface!!
Bound to *:546
Listening on Socket/tiw_sta0
Sending on   Socket/tiw_sta0
PRC: Soliciting for leases (INIT).
XMT: Forming Solicit, 0 ms elapsed.


> You need to fix your errors:
> 
> can't create /var/db/dhclient.leases: No such file or directory
> execve (/sbin/dhclient-script, ...): No such file or directory
> 
> dhclient only negotiates with the server, it uses dhclient-script to apply the
>  address to the interface.


Associations:
post110383:
              Re: DHCP IPv6 support - The command we have used is 
dhclient -v -6 tiw_sta0 -sf /tmp/dhclient-script -cf /tmp/dhclient-dhcpv6.conf -lf /tmp/dhclient.leases the above post have the typo error. just to clarify.. but I am facing the same issue as above logs - srikanth chandragiri(deleted)