Get DHCP relay interfaces IP address using DHCP

Hi All ,

please view the set up below:

 -------------------------------------------------------------------
 |  DHCP Server |-----------|   ROUTER & |-----------|     Clients  |
 | 192.168.99.1 |  - -<eth1>| DHCP-RELAY|<eth2>-- |   192.168.88.X  | 
  -------------------------------------------------------------------

The machine on the left is a windows machine running a DHCP server,
The server has two address pool 88 & 99.

The central machine is a linux machine having two network cards,
eth1 belongs to subnetwork 192.168.99.0/24
eth2 belongs to subnetwork 192.168.88.0/24
the linux machine serves as a router and also as a DHCP relay.

eth1 which is connected directly to the DHCP server broadcast its DHCP DISCOVERY directly to the server which allocating an IP address from the 99 pool.

my problem is regarding eth2,
I want to allocate its IP address dynamically from the 88 pool locate at the DHCP server.

is there a known way to do so ?

im using the dhclient command.

Thanks.

If you watch packets, the DHCP response must contain it:

Dynamic Host Configuration Protocol - Wikipedia, the free encyclopedia

dhcpinfo(1) [opensolaris man page]

Yes, you have to configure the router to be a DHCP relay.