Get DHCP relay interfaces IP address using DHCP | Unix Linux Forums | IP Networking

  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

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 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 04:42 AM.. Reason: Fix setup display
Sponsored Links
Old 06-27-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
Join Date: Oct 2010
Last Activity: 26 January 2015, 2:13 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,613
Thanks: 8
Thanked 572 Times in 546 Posts
If you watch packets, the DHCP response must contain it:

Dynamic Host Configuration Protocol - Wikipedia, the free encyclopedia
Sponsored Links
Old 06-29-2013
fpmurphy's Avatar
fpmurphy fpmurphy is online now Forum Staff  
Join Date: Dec 2003
Last Activity: 26 January 2015, 5:27 PM EST
Location: /dev/ph
Posts: 4,859
Thanks: 65
Thanked 439 Times in 407 Posts
Yes, you have to configure the router to be a DHCP relay.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:36 PM
DHCP Server address cokedude Red Hat 6 06-09-2011 02:40 AM
DHCP server also acting as relay tomwolf IP Networking 4 08-24-2009 11:05 AM
dhcp configuration for MAC address ouzist IP Networking 2 01-30-2009 09:16 AM
How to grep dhcp ip address chongkls77 Shell Programming and Scripting 4 03-28-2007 10:27 AM

All times are GMT -4. The time now is 06:27 PM.