FreeBSD PXE client not getting netmask config from DHCP server

vincenzo romero new2xen at gmail.com
Wed Mar 26 10:04:04 PDT 2008


I'd like to add another datapoint:

1.  It seems that a fedora PXE client, "honors" the netmask parameter
passed by the DHPC server:

 ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:A0:D1:E3:57:CA
          inet addr:192.168.16.12  Bcast:192.168.31.255  Mask:255.255.240.0
          inet6 addr: fe80::2a0:d1ff:fee3:57ca/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:74171 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45164 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:64499323 (61.5 MiB)  TX bytes:8111327 (7.7 MiB)
          Interrupt:23 Base address:0x2000

2.  However, the FreeBSD server, stubbornly insists towards the
255.255.255.0 subnet

Both clients boot against the same DHCP server.

Any thoughts?

- thanks in advance.

On Wed, Mar 26, 2008 at 9:25 AM, vincenzo romero <new2xen at gmail.com> wrote:
> 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
>



-- 
best,

Vince


More information about the freebsd-questions mailing list