Unix Technical Forum

DHCPD problem - subnet confusion

This is a discussion on DHCPD problem - subnet confusion within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> I think your configuration is a little wrong. My interpretation of your config is that you have a system ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-16-2008, 06:08 AM
oracle
 
Posts: n/a
Default Re: DHCPD problem - subnet confusion

I think your configuration is a little wrong. My interpretation of your
config is that you have a system with two nics, one (192.168.1.13) which
talks to the router at 192.168.1.1, the other 192.168.2.101 is connected to
a different network. Again, I could be wrong, but what I think you're trying
to do is configure a dhcp server to serve IP address's on the second network
192.168.2.0/255.255.255.0.

What you need to do is firstly ensure routing is enabled on the host. Next
you need to configure a dhcp scope for the 192.168.2.0 network. With routing
enabled on the host, the default gateway for the scope will be
192.168.2.101. Your range of IP addresses can be anything valid within that
subnet. Thirdly, it would make sense that the dhcpd server only binds to the
interface in question, rl0.

My guess is the following configuration will work for you. Read up on the
lease times.

subnet 192.168.2.0 netmask 255.255.255.0
{
range 192.168.2.100 192.168.2.120;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option domain-name "somedomain";
one-lease-per-client on;
default-lease-time 14400;
max-lease-time 14401;
option ip-forwarding off;
option routers 192.168.2.101
option domain-name-servers <ip address of name servers>;
}

Have fun,

Brian.


"Sh4d03" <sh4d03@TPG.com.au> wrote in message
news:41650601$1@dnews.tpgi.com.au...
> Hi,
>
> I'm trying to configure an OpenBSD router which will be running DHCPD. At
> the moment my problem exists with setting up DHCPD. At boot time I receive
> the following error:
>
> Address range 192.168.2.100 to 192.168.2.199 not on net
> 192.168.2.1/255.255.255.0!
>
> My dhcpd.conf is:
>
>
> option domain-name "domain.cxm";
> option domain-name-servers 192.168.1.1;
>
> subnet 192.168.2.1 netmask 255.255.255.0 {
> option routers 192.168.1.1;
> range 192.168.2.100 192.168.2.199;
> }
>
> My physical setup is:
>
> Netcomm 1300 router/modem with internal IP of 192.168.1.1 - this device is
> not routing at present, nor do I want it doing the routing.
> red nic = rl1 = static IP 192.168.1.13
> green nic = rl0 = static IP 192.168.2.101
>
> My understanding of subnets is not very competent so please be patient.
> Any help would be greatly appreciated.
>
> Pf is not currently running either.
>
> Sh4d03
>
> --
> If you require more assistance or if my suggestion works please E-mail me
> at sh4d03 [at] TPG [dot] com [dot] au. Additionally, if you are able to
> provide assistance to me and wish to E-mail me directly please also feel
> free to contact me in this manner. Please ensure you include
> "Newsgroup_sh4d03" in the subject line. Please pay attention to the
> capitilisation!
> Thanks,
> Sh4d03



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com