Re: dhcp server with 2 interfaces and 2 different subnets

2007-06-13 Thread demuel
Hello,

Your current /etc/dhcpd.conf configuration will not work no matter how hard you 
test it
. Hint? You should not create a shared-network amongst two different ip blocks 
and
rather instead allocate a specific subnet per ip blocks. Trust me, this will 
work
because I been there done that.


Demuel

 Hi,

 I am trying to setup a DHCP server on a multi-homed firewall. One of the
 interfaces is vr0 and should supply addresses 172.16.255.x/24. The other
 is sk0 and should supply 200.232.140.x/24.

 My /etc/dhcpd.interfaces looks like

 sk0
 vr0

 My /etc/dhcpd.conf looks like

 shared-network LOCAL-NET {
   option domain-name-servers 200.232.140.1;

   subnet 200.232.140.0 netmask 255.255.255.0 {
  option routers 200.232.140.1;
  range 200.232.140.20 200.232.140.200;
   }


   subnet 172.16.255.0 netmask 255.255.255.0 {
  option routers 172.16.255.1;
  range 172.16.255.20 172.16.255.200;
   }
 }

 Now how can I tell the dhcp server to only allocate 172.16.255
 addresses to vr0 and 200.232.140.0 to sk0?

 Thank you very much.

 Jeff

 --
 Get a Free E-mail Account at Mail.com!
 Choose From 100+ Personalized Domains
 Visit http://www.mail.com today



Re: dhcp server with 2 interfaces and 2 different subnets

2007-06-12 Thread Brian A. Seklecki

The following:

$ sudo tcpdump -i vr0 port bootpc || port bootps  tcpdump -i sk0 port 
bootpc || port bootps


$ sudo dhcpd -vf

$ sudo netstat -tan|egrep -i 67|68

~BAS

On Tue, 12 Jun 2007, Jeff Santos wrote:


Hi,

I am trying to setup a DHCP server on a multi-homed firewall. One of the
interfaces is vr0 and should supply addresses 172.16.255.x/24. The other
is sk0 and should supply 200.232.140.x/24.

My /etc/dhcpd.interfaces looks like

sk0
vr0

My /etc/dhcpd.conf looks like

shared-network LOCAL-NET {
 option domain-name-servers 200.232.140.1;

 subnet 200.232.140.0 netmask 255.255.255.0 {
option routers 200.232.140.1;
range 200.232.140.20 200.232.140.200;
 }


 subnet 172.16.255.0 netmask 255.255.255.0 {
option routers 172.16.255.1;
range 172.16.255.20 172.16.255.200;
 }
}

Now how can I tell the dhcp server to only allocate 172.16.255
addresses to vr0 and 200.232.140.0 to sk0?

Thank you very much.

Jeff

--
Get a Free E-mail Account at Mail.com!
Choose From 100+ Personalized Domains
Visit http://www.mail.com today




l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
   http://www.spiritual-machines.org/

Guilty? Yeah. But he knows it. I mean, you're guilty.
You just don't know it. So who's really in jail?
~Maynard James Keenan



Re: dhcp server with 2 interfaces and 2 different subnets

2007-06-12 Thread Jussi Peltola
#/etc/dhcpd.conf
 
option domain-name-servers 200.232.140.1;

subnet 200.232.140.0 netmask 255.255.255.0 {
   option routers 200.232.140.1;
   range 200.232.140.20 200.232.140.200;
}

subnet 172.16.255.0 netmask 255.255.255.0 {
   option routers 172.16.255.1;
   range 172.16.255.20 172.16.255.200;
}



Re: dhcp server with 2 interfaces and 2 different subnets

2007-06-12 Thread Jeff Santos
Hi,

Thank you.

Although I did not understand your recommendation.

My problem is that for some reason, DHCP server is allocating IP
addresses from the subnet 200.232.140.0 for stations in the
172.16.255.0 segment. I would like to control which addresses
should be given to each segment.

Regards,

Jeff.

- Original Message -
From: Brian A. Seklecki
To: Jeff Santos
Subject: Re: dhcp server with 2 interfaces and 2 different subnets
Date: Tue, 12 Jun 2007 16:25:24 -0400 (EDT)



The following:

$ sudo tcpdump -i vr0 port bootpc || port bootps  tcpdump -i
sk0 port bootpc || port bootps

$ sudo dhcpd -vf

$ sudo netstat -tan|egrep -i 67|68

~BAS

On Tue, 12 Jun 2007, Jeff Santos wrote:

 Hi,

 I am trying to setup a DHCP server on a multi-homed firewall. One of the
 interfaces is vr0 and should supply addresses 172.16.255.x/24. The other
 is sk0 and should supply 200.232.140.x/24.

 My /etc/dhcpd.interfaces looks like

 sk0
 vr0

 My /etc/dhcpd.conf looks like

 shared-network LOCAL-NET {
  option domain-name-servers 200.232.140.1;

  subnet 200.232.140.0 netmask 255.255.255.0 {
 option routers 200.232.140.1;
 range 200.232.140.20 200.232.140.200;
  }


  subnet 172.16.255.0 netmask 255.255.255.0 {
 option routers 172.16.255.1;
 range 172.16.255.20 172.16.255.200;
  }
 }

 Now how can I tell the dhcp server to only allocate 172.16.255
 addresses to vr0 and 200.232.140.0 to sk0?

 Thank you very much.

 Jeff

 --
 Get a Free E-mail Account at Mail.com!
 Choose From 100+ Personalized Domains
 Visit http://www.mail.com today



l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
   http://www.spiritual-machines.org/

 Guilty? Yeah. But he knows it. I mean, you're guilty.
 You just don't know it. So who's really in jail?
 ~Maynard James Keenan


--
Get a Free E-mail Account at Mail.com!
Choose From 100+ Personalized Domains
Visit http://www.mail.com today



Re: dhcp server with 2 interfaces and 2 different subnets

2007-06-12 Thread Peter N. M. Hansteen
Jeff Santos [EMAIL PROTECTED] writes:

 Now how can I tell the dhcp server to only allocate 172.16.255
 addresses to vr0 and 200.232.140.0 to sk0?

The two ranges are not subnets of a larger net you control. Put them
in separate 'shared-network' definitions and see if that doesn't get
you what you want.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
First, we kill all the spammers The Usenet Bard, Twice-forwarded tales
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: dhcp server with 2 interfaces and 2 different subnets

2007-06-12 Thread Stuart Henderson
On 2007/06/12 16:41, Jeff Santos wrote:
 My problem is that for some reason, DHCP server is allocating IP
 addresses from the subnet 200.232.140.0 for stations in the
 172.16.255.0 segment. I would like to control which addresses
 should be given to each segment.

Well, describing the problem is a good start and was missing from
your first message...

  shared-network LOCAL-NET {

This is only needed in rare cases as described in dhcpd.conf(5),
try removing it and restarting dhcpd.

If this doesn't help, please send ifconfig -A (and if any bridges
are configured, also brconfig -A).