Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2007 09:33:32 +0200
From:      Kim Attree <kim.attree@za.verizonbusiness.com>
To:        freebsd-stable@FreeBSD.ORG,  kim.attree@za.verizonbusiness.com
Subject:   Re: Server setup as a Diskless Server on reboot sends DHCP Discover packets out
Message-ID:  <466CFACC.7080007@za.verizonbusiness.com>
In-Reply-To: <200706081022.l58AM9FC065701@lurza.secnetix.de>
References:  <200706081022.l58AM9FC065701@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Oliver,

This worked a charm :)

Kim Attree

Oliver Fromme wrote:
> Kim Attree wrote:
>  > I've setup a machine as a diskless server, using PXEBoot with ihc-dhcpd
>  > to offer dhcp and dhcp configuration information. I did a test reboot on
>  > the server, and found to my dismay that the server NIC's are sending out
>  > dhcp discover packets and trying to get an address.
>  > 
>  > The NIC's IP info is captured correctly in /etc/rc.conf:
>  > [...]
>  > and the /etc/dhclient.conf file is empty. I thought maybe it was the
>  > /conf directory used in the diskless Root structure creation, so I
>  > renamed it out of the way, but that made no difference.
>  > 
>  > I can't seem to find where the definition is that makes the NIC's ask
>  > for DHCP info.
>  >  
>  > Shortened output of /var/run/dmesg.boot pertaining to the DHCP Discover
>  > packets:
>  > 
>  > <snip>
>  > Sending DHCP Discover packet from interface bge0 (00:0b:db:e6:a9:33)
>  > Sending DHCP Discover packet from interface bge1 (00:0b:db:e6:a9:35)
>
> That's the kernel itself trying to perform BOOTP/DHCP.
> It does that before mounting the root file system (which
> might be mounted via NFS anyway, requiring an IP address
> to be obtained via BOOTP or DHCP).
>
> If you don't want that, then remove "options BOOTP" from
> your kernel config file and rebuild your kernel.
>
> Best regards
>    Oliver
>
>   




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?466CFACC.7080007>