ISC DHCP : route add problem

Glenn Satchell Glenn.Satchell at uniq.com.au
Wed Jun 3 14:18:55 UTC 2009


>Date: Wed, 03 Jun 2009 18:53:26 +0545
>From: Dibas Neupane <neupane at nrb.org.np>
>To: dhcp-users at lists.isc.org
>Subject: ISC DHCP : route add problem
>Content-Disposition: inline
>X-BeenThere: dhcp-users at lists.isc.org
>
>I just installed Opensolaris
>uname  -a
>SunOS opensolaris 5.11 snv_101b i86pc i386 i86pc Solaris
>
>My system has two Network Interfaces bnx0 (has Public IP 202.70.81.21)  
>and bnx1 has 192.168.160.1 and bnx:1 is having 192.168.161.1 with /24  
>network each.
>
># netstat -rn
>
>Routing Table: IPv4
>   Destination           Gateway           Flags  Ref     Use     Interface
>-------------------- -------------------- ----- ----- ---------- ---------
>default              202.70.81.1          UG        1        166
>192.168.160.0        192.168.160.1        U         1          0 bnx1
>192.168.161.0        192.168.161.1        U         1          0 bnx1:1
>202.70.81.0          202.70.81.21         U         1          6 bnx0
>127.0.0.1            127.0.0.1            UH        1         84 lo0
>
>Routing Table: IPv6
>   Destination/Mask            Gateway                   Flags Ref   Use    If
>--------------------------- --------------------------- ----- ---  
>------- -----
>::1                         ::1                         UH      1       0 lo0
>
>
>I have installed CSWdhcp(ISC DHCP server) with
>
>/opt/csw/bin/pkg-get install CSWdhcp
>
>dhcp - ISC DHCP reference implementation(i386) 4.1.0,REV=2009.01.27
>
>successfully installed.
>
>I configured the dhcpd.conf with a range of IP and DHCP can be started  
>normally. But it doees not allocate any IP address. In redame document  
>I found the I have to issue a route add command looks like:
>
>route add -host 255.255.255.255 dev bnx1
>
>It is saying "bnx1: bad value"
>
>I want to send all reply to DHCP Offer from bnx1 for multiple subnets  
>like some  IP range of 192.168.160.0 and 192.168.161.0 Network.
>
>Please advise me what exact configuration do I need to do ?
>
>
>Ram Chandra

I think you will find the route add command is in the Linux section of
the README file. For Solaris and OpenSolaris no such command is
required.

Suggest you look at the /var/adm/messages file to see any errors from
dhcpd. You may need to add an empty declaration for bnx1.

Oh and I just saw you have version 4.1.0. My experience with dhcpd on
Solaris 10 is that you need 4.1.1b1 or newer to get around a bug in the
network layer. This probably applies to OpenSolaris as well.

If you need to build from source, the defaults are all ok on Solaris at
least.

regards,
-glenn




More information about the dhcp-users mailing list