Re: Fail to get a IP from dhcpcd

2013-05-28 Thread Stephen Borrill

On Fri, 24 May 2013, Francisco Valladolid H. wrote:

Recently I installed NetBSD 6.1 release in a old PIII/440BX chipset MB with
intel Fast Ethernet card (fxp driver), whenever when try to get a IP from
dhpcd it don't work correctly and no IP is associated to the nic.

Whenever if the IP is set manually, it work correcly.

This is a bug ?


You should check that you have a carrier on the fxp card with ifconfig. 
Unlike dhclient, dhcpcd will (by default) only look for a lease on an 
interface with a live connection. Compare the status lines here (I 
removed the capabilities lines for clarity):


wm1: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
enabled=0
address: 00:1b:21:6e:42:16
media: Ethernet autoselect
status: active
bge0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
enabled=0
address: 00:1c:c4:d7:79:83
media: Ethernet autoselect (none)
status: no carrier

If your interface shows no carrier, but is connected and works when a 
manual address is configured, then this is a driver bug (not a dhcpcd 
bug).


You can use the -K flag to dhcpcd to skip the carrier test.

--
Stephen



Fail to get a IP from dhcpcd

2013-05-24 Thread Francisco Valladolid H.
Hi folks

Recently I installed NetBSD 6.1 release in a old PIII/440BX chipset MB with
intel Fast Ethernet card (fxp driver), whenever when try to get a IP from
dhpcd it don't work correctly and no IP is associated to the nic.

Whenever if the IP is set manually, it work correcly.

This is a bug ?

Regards.

-- 
Francisco Valladolid H.
 -- http://blog.bsdguy.net - Jesus Christ follower.


Re: Fail to get a IP from dhcpcd

2013-05-24 Thread Andy Ruhl
On Fri, May 24, 2013 at 9:52 AM, Francisco Valladolid H.
fic...@gmail.comwrote:


 Hi folks

 Recently I installed NetBSD 6.1 release in a old PIII/440BX chipset MB
 with intel Fast Ethernet card (fxp driver), whenever when try to get a IP
 from dhpcd it don't work correctly and no IP is associated to the nic.

 Whenever if the IP is set manually, it work correcly.

 This is a bug ?




What does /var/log/messages show when the dhcp client tries to get an
address?

My dhcp server is running on NetBSD so I can look at the log file to see
what happened. If you can look at the dhcpd logfile, this might help.

Andy