shared-network question...

Jason Gerfen jason.gerfen at scl.utah.edu
Fri Jan 2 14:59:03 UTC 2009


I would like to know which available options are available for the 
shared-network definition.

As I read the dhcpd.conf man page I see a brief notation regarding 
shared network definitions. As such:

The shared-network statement

shared-network name {
   [ parameters ]
   [ declarations ]
}

The shared-network statement is used to inform the DHCP server that some 
IP subnets actually share the same physical network. Any subnets in a 
shared network should be declared within a shared-network statement. 
Parameters specified in the shared-network statement will be used when 
booting clients on those subnets unless parameters provided at the 
subnet or host level override them. If any subnet in a shared network 
has addresses available for dynamic allocation, those addresses are 
collected into a common pool for that shared network and assigned to 
clients as needed. There is no way to distinguish on which subnet of a 
shared network a client should boot.

Name should be the name of the shared network. This name is used when 
printing debugging messages, so it should be descriptive for the shared 
network. The name may have the syntax of a valid domain name (although 
it will never be used as such), or it may be any arbitrary name, 
enclosed in quotes.

My question is what are the available [ parameters ] available for the 
shared-network definition. Are they everything that is available in the 
dhcpd-options man page?

The reason I am asking is I have a need to define a common gateway for 
various shared-network subnet definitions. Currently I have the 
following defined in my dhcpd.conf:

#### Shared Network Definitions ####

### Shared Network 'MySharedNetwork' ###
shared-network MySharedNetwork {

      ## 'Vlan-022' Subnet Definition ##
      subnet 155.97.241.0 netmask 255.255.255.0 {
           option domain-name-servers 155.97.15.2, 155.97.18.2;
           option routers 155.97.241.1;
           option ip-forwarding off;
      }

      ## 'mac_mmc_staff' Subnet Definition ##
      subnet 155.97.16.0 netmask 255.255.255.128 {
           option domain-name-servers 155.101.115.10, 155.101.201.10;
           option routers 155.97.16.1;
           option ip-forwarding off;
      }

      ## 'mac_union_lvl_2' Subnet Definition ##
      subnet 155.101.211.192 netmask 255.255.255.192 {
           option domain-name-servers 155.101.115.10, 155.101.201.10;
           option routers 155.101.211.193;
           option ip-forwarding off;
      }
}

What I would like to do is something similar to the following:

#### Shared Network Definitions ####

### Shared Network 'MySharedNetwork' ###
shared-network MySharedNetwork {

  option routers 192.168.241.1, 192.168.16.1, 192.168.211.1

      ## 'Vlan-022' Subnet Definition ##
      subnet 192.168.241.0 netmask 255.255.255.0 {
           option domain-name-servers 192.168.15.2, 192.168.18.2;
           option ip-forwarding off;
      }

      ## 'mac_mmc_staff' Subnet Definition ##
      subnet 192.168.16.0 netmask 255.255.255.128 {
           option domain-name-servers 192.168.115.10, 192.168.201.10;
           option ip-forwarding off;
      }

      ## 'mac_union_lvl_2' Subnet Definition ##
      subnet 192.168.211.192 netmask 255.255.255.192 {
           option domain-name-servers 192.168.115.10, 192.168.201.10;
           option ip-forwarding off;
      }
}

-- 
Jas



More information about the dhcp-users mailing list