Sponsored Content
Full Discussion: Obtaining IP address
Special Forums IP Networking Obtaining IP address Post 2727 by alwayslearningunix on Thursday 31st of May 2001 01:12:53 PM
Old 05-31-2001
You can configure a UNIX machine to get it's IP address from a DHCP server. In each flavour of UNIX there is a file which details hostname information as well as info relating to the ip address, subnet mask, broadcast address etc for each NIC card. In HP-UX this is the netconf file.

Each entry for each NIC card should have a DHCP enable function which you can set. That interface will then obtain it's IP address from the DHCP server either as the machine boots up, or you can restart network services to have it pick it up. This is on the UNIX side of things, I'm not sure how the Win 2k server would be configured, but I assume it would pretty self explanatory.

One thing to take into consideration is that unless you add more complex rules to IP address allocation on the DHCP server (such as range address allocation) DHCP is not entirely suited to a server since clients generally connect on one or two IP addresses, which is not good if those are constantly in flux. However DHCP can be tightened down, as I suggested, to hand over a certain range IP addresses to certain machines. Take a look at this.

Hope this helps.

Regards.
alwayslearningunix
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Obtaining A Process ID (PID)

Is there any way I can get UNIX to return the Process ID of a process when I actually issue the command to invoke the process? For example, if I was to launch an emacs process in batch mode, by issuing the UNIX command : % emacs file.txt& then UNIX would return the Process ID (PID).... (7 Replies)
Discussion started by: 1cuervo
7 Replies

2. SCO

Looking for guidance in obtaining a job in Unix Administration

I recently took a training through a college, and have obtained the CUSA certification, but I've been looking and don't see any jobs in unix out there! Does anyone know of hidden job markets in the unix administration area, located in the Detroit - Michigan area? (4 Replies)
Discussion started by: pkali290
4 Replies

3. Programming

Obtaining Process information on AIX

I have written a program to collect some performance metrics on and AIX box, but I'm having difficultly getting the process information. I'm lead to believe that I'm not getting the correct information because I'm trying to run the program on AIX 5.1 (5100-03), but I'm not convinced as the... (0 Replies)
Discussion started by: StuBob
0 Replies

4. What is on Your Mind?

Obtaining Security Clearance

I'm looking to move down to the Baltimore, MD area and have been looking for a job for about a week. Many of the opportunities require some form of security clearance, because many of the jobs are government work. My question is how do I go about obtaining the proper clearance? I'm a U.S.... (6 Replies)
Discussion started by: dangral
6 Replies

5. Shell Programming and Scripting

obtaining a line number in ksh programming

Hi People, how do i obtain the line number of a ksh shell script that i am working on For example in C,when u key in __LINE__ will return u the current line number of the src code. regards wilson (1 Reply)
Discussion started by: wilsontan
1 Replies

6. Shell Programming and Scripting

obtaining a particular day

hello guys am totally new to this script programming so help me i want to write a script that obtain a particular day and schedule a task that day at particular time .. my problem is i don't know to get time and particular day in script ... 2. how i ll print the time taken by executing a... (2 Replies)
Discussion started by: johnray31
2 Replies

7. IP Networking

Obtaining IP address from both my network interface

HI folks, I am developing a software which one of the module is to interchange the ip address of another active network interface's when making a socket connection. I would like to know whether there is any function call that would enable me to retrieve the ip address that is obtained by a... (2 Replies)
Discussion started by: citiz3n
2 Replies

8. IP Networking

Obtaining your external IP address using a Unix Utility

Hello, this is my first post on the Unix forums. This is something that's been bothering me for a while, is there any particular UNIX/Linux application that will allow you to see you external IP address? :confused: ( The address beyond your router ) Thank you in advance, I could not find a... (4 Replies)
Discussion started by: inquen
4 Replies

9. Shell Programming and Scripting

Obtaining day before a given date

Hi all, is there a way using GNU (Solaris 8) methods of obtaining the day before a given day? i.e. 2007-09-09.... I would like the date a day before it so output would be 2007-09-08. Format YYYY-MM-DD I know I can subtract the day number using cut and expr but it would get tricky if the... (3 Replies)
Discussion started by: muay_tb
3 Replies
dhcpmgr(1M)						  System Administration Commands					       dhcpmgr(1M)

NAME
dhcpmgr - graphical interface for managing DHCP service SYNOPSIS
/usr/sadm/admin/bin/dhcpmgr DESCRIPTION
dhcpmgr is a graphical user interface which enables you to manage the Dynamic Host Configuration Protocol (DHCP) service on the local sys- tem. It performs the functions of the dhcpconfig, dhtadm, and pntadm command line utilities. You must be root to use dhcpmgr. The dhcpmgr Help, available from the Help menu, contains detailed information about using the tool. USAGE
You can perform the following tasks using dhcpmgr: Configure DHCP service Use dhcpmgr to configure the DHCP daemon as a DHCP server, and select the data store to use for storing network configuration tables.. Configure BOOTP relay service Use dhcpmgr to configure the DHCP daemon as a BOOTP relay. Manage DHCP or BOOTP relay service Use dhcpmgr to start, stop, enable, disable or unconfigure the DHCP service or BOOTP relay service, or change DHCP server parameters. Manage DHCP addresses Use dhcpmgr to add, modify, or delete IP addresses leased by the DHCP service. Manage DHCP macros Use dhcpmgr to add, modify or delete macros used to supply configuration parameters to DHCP clients. Manage DHCP options Use dhcpmgr to add, modify or delete options used to define parameters deliverable through DHCP. Convert to a new DHCP data store Use dhcpmgr to configure the DHCP server to use a different data store, and convert the DHCP data to the format used by the new data store. Move DHCP data to another server Use dhcpmgr to export data from one Solaris DHCP server and import data onto another Solaris DHCP server. EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWdhcm | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
dhcpconfig(1M), dhtadm(1M), pntadm(1M), in.dhcpd(1M), dhcpsvc.conf(4), dhcp_network(4), dhcptab(4), attributes(5), dhcp(5), dhcp_modules(5) Solaris DHCP Service Developer's Guide System Administration Guide: IP Services SunOS 5.10 13 Mar 2001 dhcpmgr(1M)
All times are GMT -4. The time now is 11:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy