how to configure DHCP relay with ISC.

Glenn Satchell glenn.satchell at uniq.com.au
Thu Apr 15 11:59:10 UTC 2010


On 04/15/10 17:11, Guo, Fei wrote:
> Hello All,
> can you give me an example about how to configure on the
> client/relay/server side, I have installed 4.1.1 version, a simple
> topology is the following:
> client ------------------------------------------ relay
> ------------------------------------------ server
> eth1 192.168.1.2 192.168.2.2 192.168.2.1
> I want get a IP address on client "eth1", it should be in net
> "192.168.1.x/24". thank you very much.
> Cheers
> Fei
>
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

A fairly minimal example would be something like this.

client ---------------------- relay ---------------------- server
  eth1                192.168.1.2 192.168.2.2            192.168.2.1

Relay configuration

The only important item to note is that you must listen on interfaces 
where you expect to recieve dhcp requests *and* listen for packets from 
the dhcp server. The default is to listen on all interfaces.

$ man dhcrelay
...
dhcrelay 192.168.2.1

Server Configuration

Configure local and remote subnets identically. The server automatically 
switches the incoming requests to the right subnet. The server must have 
a configuration for the local subnet, even if it is not used for any 
dhcp services.

$ man dhcpd.conf
...
EXAMPLES
...
# global settings for all subnets
option domain-name "windriver.com";
option domain-name-servers 192.168.2.1;
subnet 192.168.2.0 netmask 255.255.255.0 {
}
subnet 192.168.1.0 netmask 255.255.255.0 {
	# settings just for this subnet
	option routers 192.168.1.2;
	range 192.168.1.100 192.168.1.199;
}

Other man pages worth reading are dhcpd, dhcp-options, dhcp-eval. In 
total there would be close to 100 pages of documentation in the man 
pages. Of course, if there are any other questions please feel free to 
post them here,,,

HTH.

-- 
regards,
-glenn
--
Glenn Satchell                            |  Miss 9: What do you
Uniq Advances Pty Ltd, Sydney Australia   |  do at work Dad?
mailto:glenn.satchell at uniq.com.au         |  Miss 6: He just
http://www.uniq.com.au tel:0409-458-580   |  types random stuff.



More information about the dhcp-users mailing list