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


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
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:


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 Unix and Linux 06-27-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 17 February 2015, 1:56 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,671
Thanks: 8
Thanked 586 Times in 559 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 Unix and Linux 06-29-2013
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 30 June 2015, 11:39 AM EDT
Location: /dev/ph
Posts: 4,937
Thanks: 69
Thanked 459 Times in 426 Posts
Yes, you have to configure the router to be a DHCP relay.
Sponsored Links
Closed Linux or Unix Question

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 12:48 PM.