Sponsored Content
Special Forums IP Networking Get DHCP relay interfaces IP address using DHCP Post 302825717 by gdangoor on Tuesday 25th of June 2013 03:12:40 AM
Old 06-25-2013
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 04:42 AM.. Reason: Fix setup display
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to grep dhcp ip address

Hi, I have a script that my operators use as a login profile. As they need to export their display in order to access the GUI of the data protector program in HPUX machine. Anyone can advise how I can grep (eg. who -r) the dynamically assigned IP address and automatically put it as a variable... (4 Replies)
Discussion started by: chongkls77
4 Replies

2. Solaris

Unix terminal re-assigned with wrong IP address from window's DHCP

Hi all, I have this problem that puzzles me, i have setup all the right DHCP configuration in Windows Server. The reservation IP address in windows for this specific unix terminal. However, when i rebooted the unix terminal the IP which was already assigned for this box somehow change to a total... (0 Replies)
Discussion started by: tlee
0 Replies

3. IP Networking

dhcp configuration for MAC address

hi I need a dhcp congfigured to give some of my clients IP regarding their MAC addresses and rest should get any IP from same pool. I am not sure what to add dhcpd.conf to provide such a pool or group or class. I tried with this but seems not good enough. <<<<dhcpd.conf>>>> ... (2 Replies)
Discussion started by: ouzist
2 Replies

4. UNIX for Advanced & Expert Users

How to get DHCP address change event notification programmatically?

Hello Experts, I am working on a software that has network client-server architecture. I need to have a mechanism that notifies me upon change of dhcp address change locally or at remote machine. Windows have IP Helper APIs to get address change notification. Is there something similar in Unix?... (3 Replies)
Discussion started by: GajendraSharma
3 Replies

5. IP Networking

DHCP server also acting as relay

Hi. I want to use the DHCP server that comes with vxWorks 6.4. The DHCP server implementation has a table that contains addresses of DHCP servers that will receive a copy of all the client requests that the local server gets, thus the server acts as a dhcp relay at the same time. Can anyone... (4 Replies)
Discussion started by: tomwolf
4 Replies

6. Debian

Question on the dhcp-server configuration for a fixed IP address.

Hi , when i configure my server with a fixed ip address in dhcpd.conf as below subnet 172.21.151.0 netmask 255.255.255.0 { range 172.21.151.66 172.21.151.66; } host switch { hardware ethernet 00:05:30:02:DB:31; fixed-address 172.21.151.66; } when i start dhcpd server , it... (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies

7. UNIX for Advanced & Expert Users

Doubt on fixed ip address assinged by dhcp server?

we can assign a dynamic and fixed ip address for a dhcp_client through dhcp server , if it is dynamic ip address , it would be having lease time and renews after half of the leasetime gets over. would the same funda applies for fixed ip address to .. i dont think so ... please confirm on the... (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

8. Red Hat

DHCP Server address

Where can you find your DHCP Server address? I checked all of the files that this mentioned with no luck. Quick HOWTO : Ch08 : Configuring the DHCP Server - Linux Home Networking (6 Replies)
Discussion started by: cokedude
6 Replies

9. Red Hat

Purpose of Static IP address through DHCP

Hi All, Could you please explain the purpose of assigning the static IP by using the DHCP Concept. Like by using the clients MAC address we assign the static IP Address. Waiting for your reply. Thanks in Advance. (6 Replies)
Discussion started by: Sharath Kumar
6 Replies

10. Shell Programming and Scripting

WLAN receiving DHCP-IP Address doesn't work

Hey guys, I run my raspberry pi with a TP-Link Wlan-USB stick. The stick works out of the box with the pi-modded debian. But eventhough the automatic connection to one of the saved WLAN-networks in the file /etc/wpa_supplicant/wpa_supplicant.conf works, my PI doesn't request or receive an... (4 Replies)
Discussion started by: zitronenschwarz
4 Replies
namepool(4)						     Kernel Interfaces Manual						       namepool(4)

NAME
namepool - DHCP server database DESCRIPTION
The namepool database provides joind with names that are available for dynamic assignment to clients of the DHCP protocol. For each DHCP server and domain name (NIS or DNS), the database contains a collection of names available for allocation to DHCP clients within those domains. One name plays a distinguished role - it is used as a prefix when the pool has been exhausted. Names are generated from the pre- fix by appending a number, 1,2.., and a trailing 'd'. The namepool file is read whenever joind starts. Names within the database must not be allocated to hosts which are not DHCP clients, and if the administration of a domain is shared between several DHCP servers, the name- pools that each has must be disjoint. Names may be added and removed from the namepool file. If a name is removed from the file it remains bound to the client to which it was allocated; if no such binding is in effect the name is excised from the server's pool the next time the server starts. Once a name is dynamically bound to a host it will never be reused even if that host subsequently acquires a new name, but there is no need to remove it from namepool. FORMAT Blank lines and lines beginning with a number sign (#) are ignored. A new entry must begin in column one and has one of the following for- mats: domain server domain server name_prefix The domain variable is the domain in which the names which follow are assigned. The server variable is the name or IP address of the server in charge of allocating these names to clients. The prefix variable is the prefix that will be used when the pool is exhausted. Succeeding lines contain one or more names for domains that are to be allocated by the server. Each of these succeeding lines must begin with at least one white space character. FILES
/etc/join/namepool RELATED INFORMATION
joind(8), join.ipaddresses(4) delim off namepool(4)
All times are GMT -4. The time now is 09:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy