Shared Network Configuration

Sean Higgins seanhiggs at gmail.com
Thu Nov 8 23:20:26 UTC 2007


Thanks for the quick turnaround Simon. Much appreciated.
 One last question , if it is not too much trouble.
 Do I need to explicitly create a class for all other clients and then
create a pool which allows that class in the second subnet or will all other
clients besides the initially defined class go there by default.

Thanks and Regards,

Sean

 i.e. Same poor syntax example as before with deltas in bold font.


 # File name: dhcpd.conf
# Global option definitions common for all supported networks...
default-lease-time 300;
max-lease-time 7200;
 # Declaring a class for VoIP terminals
 class "voip-clients" {
match if substring (option dhcp-client-identifier, 1, 3) = "voip";
}
*class "others" { *
*match if not substring (option dhcp-client-identifier, 1, 3) = "voip"; *
*}*
 {}
# Declaring a shared network
# This is to accommodate two different subnets on the same
# physical network; see dhcpd.conf.man5 for more details
shared-network "Network"
{
# Declaring subnet for public clients
subnet 142.166.xxx.0 netmask 255.255.255.0
option routers 142.166.xxx.1 ;
{
# Pool addresses for voip  clients
pool
{
allow members of "voip-clients";
range 142.166.xxx.2 142.166.xxx.254;
 }
}
 # Declaring subnet for private clients
subnet 192.168.1.0 netmask 255.255.255.0
option routers 192.168.1.1;
{
*{ *
*# Pool addresses for non -voip  clients *
*pool *
*{ *
*allow members of "others"; *
*range 192.168.1.10  192.168.1.254; *
**
**
*}*
 }
}
 On Nov 8, 2007 3:38 PM, Simon Hobson <dhcp1 at thehobsons.co.uk> wrote:
> Sean Higgins wrote:
>
> <snip>
> >I
> >would really appreciate some guidance as to whether the basica concept
> >is OK or if my thinking is fundamentally flawed.
>
> Almost spot on - just move your routers statement up from the pool
> level to the subnet level unless you intend offering different
> routers to different clients.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20071108/c3b4451e/attachment.html>


More information about the dhcp-users mailing list