FreeBSD PXE client not getting netmask config from DHCP server
vincenzo romero
new2xen at gmail.com
Wed Mar 26 09:25:19 PDT 2008
Hello Erik,
Thanks for the response. I have followed your recommendation as follows:
1. In effect my dhcpd.conf now looks like this:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.16.0 netmask 255.255.240.0 {
option routers 192.168.16.1;
option subnet-mask 255.255.240.0;
range dynamic-bootp 192.168.16.10 192.168.16.30;
default-lease-time 21600;
max-lease-time 43200;
host r02s01 {
hardware ethernet 00:A0:D1:E3:58:38;
fixed-address 192.168.17.11;
filename "pxeboot";
option root-path "192.168.17.1:/export/images/NFSroot_gold/freebsd7_x64";
option host-name "r02s01";
}
}
next-server 192.168.17.1;
2. Thereafter, I restarted the dhcpd service, and then rebooted my
freebsd client (r02s01) . Upon logging in, I checked its
configuration, and still the netmask reflects the 255.255.255.0
subnet:
r02s01# ifconfig -a
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
1500 options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:a0:d1:e3:58:38
inet 192.168.17.11 netmask 0xffffff00 broadcast 192.168.17.255
inet6 fe80::2a0:d1ff:fee3:5838%nfe0 prefixlen 64 scopeid 0x1
media: Ethernet autoselect (1000baseTX <full-duplex,flag2>)
** netmask 0xffffff00 - which means this, right:
Name Example
CIDR /24
Netmask 255.255.255.0
Netmask (hex) 0xffffff00
Wilcard Bits 0.0.0.255
*sigh* ... am I missing something in my client side?
thanks in advance!
On Wed, Mar 26, 2008 at 4:24 AM, Erik Norgaard <norgaard at locolomo.org> wrote:
>
> vincenzo romero wrote:
> > Hello all,
> >
> > I wanted to check and test my PXE clients - where I have:
> >
> > - Cent OS 5.1 - PXE/DHCP/TFTP/NFS server with the root-NFS-images
> > - client - FreeBSD 7:
> > uname -a
> > FreeBSD r02s01 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Mon Mar 3 21:52:54
> > PST 2008 root at Freebsdtest.maxiscale.com:/usr/src/sys/amd64/compile/CUSTOMKRNL
> > amd64
> >
> > ...
> >
> > 1. My /etc/dhcpd.conf server has defined a gateway/router and subnet mask
> >
> > cat /etc/dhcpd.conf
> > ddns-update-style interim;
> > ignore client-updates;
> >
> > subnet 192.168.16.0 netmask 255.255.240.0 {
> > # --- default gateway
> > option routers 192.168.16.1;
> > option subnet-mask 255.255.240.0;
> >
> > range dynamic-bootp 192.168.16.10 192.168.16.30;
> > default-lease-time 21600;
> > max-lease-time 43200;
> > }
> >
> >
> > 2. freebsd test server parameters defined as such:
> >
> > host r02s01 {
> > hardware ethernet 00:A0:D1:E3:58:38;
> > fixed-address 192.168.17.11;
> > filename "pxeboot";
> > option root-path "192.168.17.1:/export/images/NFSroot_gold/freebsd7_x64";
> > option host-name "r02s01";
> > }
> >
> > 3. PROBLEM - when the client boots and I login ..... i notice that
> > the netmask it is configured with is 255.255.255.0 ...
> >
> > Am I missing something in my configuration? I am not having these
> > issues (i think) with my diskless Fedora, Ubuntu clients ...
> >
> > Any help will be greatly appreciated
> >
> If your host declaration is outside the subnet declation the subnet
> parameters are not sent, the client should then default to the netmask
> /24 since 192.168 is in the old class C network range. Place the host
> declaration inside the subnet declaration.
>
> BR, Erik
>
>
> --
> Erik Nørgaard
> Ph: +34.666334818 http://www.locolomo.org
>
--
best,
Vince
More information about the freebsd-questions
mailing list