NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

dhcpcd query



Hi,

I've been using dhcpcd on a few machines running -current (i386 and
amd64). I noticed lately on my amd64 laptop when I boot it in the
office I first get an IP address from the DHCP pool, instead of the
predefined fixed address; I have to manually restart /etc/rc.d/dhcpcd
to get the right one, as in:

[lisa] ~ # ifconfig wm0
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        
capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        address: 00:21:86:98:14:30
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet 10.0.33.77 netmask 0xff000000 broadcast 10.255.255.255
<------- from the DHCP pool
        inet6 fe80::221:86ff:fe98:1430%wm0 prefixlen 64 scopeid 0x1
[lisa] ~ # /etc/rc.d/dhcpcd restart
Stopping dhcpcd.
Waiting for PIDS: 260.
Starting dhcpcd.
[lisa] ~ # ifconfig wm0
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        
capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        address: 00:21:86:98:14:30
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet 10.1.1.43 netmask 0xff000000 broadcast 10.255.255.255   <-------
the fixed address I usually have
        inet6 fe80::221:86ff:fe98:1430%wm0 prefixlen 64 scopeid 0x1

My /etc/dhcpcd.conf follows:


#       $NetBSD: dhcpcd.conf,v 1.5 2009/10/25 23:35:41 roy Exp $
#
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Inform the DHCP server of our hostname for DDNS.
hostname
# To share the DHCP lease across OSX and Windows a ClientID is needed.
# Enabling this may get a different lease than the kernel DHCP client.
# Some upstream DHCP servers may also require a ClientID, such as FRITZ!Box.
#clientid

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname

interface wm0
arping 10.0.8.253

profile 10.0.8.253
static ip_address=10.1.1.43/8
static routers=10.0.8.253
static domain_name=delcam.local
static domain_name_servers=10.0.1.22 10.0.1.23 10.0.1.30
-----

Any timing issues may be? This wasn't the case a few weeks ago, as far
as I remember it. The system is a ThinkPad T61p running

[lisa] ~ # uname -a
NetBSD lisa 5.99.49 NetBSD 5.99.49 (GENERIC) #3: Mon Apr 18 12:15:42
BST 2011  root@lisa:/usr/src/sys/arch/amd64/compile/GENERIC amd64

Chavdar Ivanov

-- 
----


Home | Main Index | Thread Index | Old Index