Unix/Linux Go Back    

IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

Get DHCP relay interfaces IP address using DHCP

IP Networking

Thread Tools Search this Thread Display Modes
Old Unix and Linux 06-25-2013
gdangoor gdangoor is offline
Registered User
Join Date: Jun 2013
Last Activity: 25 June 2013, 3:38 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Get DHCP relay interfaces IP address using DHCP

Hi All ,

please view the set up below:

 |  DHCP Server |-----------|   ROUTER & |-----------|     Clients  |
 | |  - -<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
eth2 belongs to subnetwork
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.


Last edited by DukeNuke2; 06-25-2013 at 03:42 AM.. Reason: Fix setup display
Sponsored Links
Old Unix and Linux 06-27-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 Posts
If you watch packets, the DHCP response must contain it:

Dynamic Host Configuration Protocol - Wikipedia, the free encyclopedia

Sponsored Links
Old Unix and Linux 06-29-2013
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline
Registered User
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 475 Times in 437 Posts
Yes, you have to configure the router to be a DHCP relay.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Purpose of Static IP address through DHCP Sharath Kumar Red Hat 6 06-26-2011 03:36 PM
DHCP Server address cokedude Red Hat 6 06-09-2011 01:40 AM
DHCP server also acting as relay tomwolf IP Networking 4 08-24-2009 10:05 AM
dhcp configuration for MAC address ouzist IP Networking 2 01-30-2009 08:16 AM
How to grep dhcp ip address chongkls77 Shell Programming and Scripting 4 03-28-2007 09:27 AM

All times are GMT -4. The time now is 06:19 AM.