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
    #1  
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:


Code:
 -------------------------------------------------------------------
 |  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.

Last edited by DukeNuke2; 06-25-2013 at 03:42 AM.. Reason: Fix setup display
Sponsored Links
    #2  
Old 06-27-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 15 October 2014, 5:08 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,455
Thanks: 8
Thanked 546 Times in 524 Posts
If you watch packets, the DHCP response must contain it:

Dynamic Host Configuration Protocol - Wikipedia, the free encyclopedia

http://www.unix.com/man-page/opensolaris/1/dhcpinfo/
Sponsored Links
    #3  
Old 06-29-2013
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 22 October 2014, 12:44 PM EDT
Location: /dev/ph
Posts: 4,822
Thanks: 64
Thanked 429 Times in 398 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 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:06 AM.