LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-18-2005, 01:34 AM   #1
jsnch
Member
 
Registered: May 2005
Posts: 42

Rep: Reputation: 15
Question how can config dhcp server?


i find i not use /usr/sbin/dhcp ,it clew dhcpconfig: Error - must specify one of 'D', 'R', 'U', 'N', 'C', 'X', or 'I'.
is there dhcp.conf? or other command?how can setting dhcp config file?

when i start dhcp server--user /etc/ini.d/dhcp start,but why can i not see course in ps -e ?

thanks
 
Old 06-18-2005, 04:15 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,784

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I suggest you to read the dhcp manual page.
 
Old 06-18-2005, 06:17 AM   #3
SML
Member
 
Registered: Dec 2002
Location: US
Distribution: Intel Clear Linux
Posts: 381

Rep: Reputation: 30
Yes. All the info is in the great sun documents. It is pretty easy to find and has a step-by-step approach.


Last edited by SML; 06-18-2005 at 09:02 AM.
 
Old 06-18-2005, 07:24 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,784

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Try a search for "how to enable the solaris dhcp client".
That search is not really the one I would have suggested for a dhcp server query, but who knows ...
 
Old 06-18-2005, 08:03 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,871

Rep: Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872
There is a nice gui tool named "dhcpmgr" to configure dhcp server in solaris. You can also use dhcpconfig (from command line). You can find them in:
/usr/sadm/admin/bin/dhcpmgr
/usr/sbin/dhcpconfig

Regards
 
Old 06-18-2005, 10:39 PM   #6
jsnch
Member
 
Registered: May 2005
Posts: 42

Original Poster
Rep: Reputation: 15
[QUOTE]Originally posted by bathory
[B]There is a nice gui tool named "dhcpmgr" to configure dhcp server in solaris. You can also use dhcpconfig (from command line). You can find them in:
/usr/sadm/admin/bin/dhcpmgr
/usr/sbin/dhcpconfig

Yes,i find dhcp administrator guide from sun website.thanks all


but,i have an another question,guide tell me use GUI to configuration, if i not to Xwindows,how can i use command line to configuration DHCP? i try use /usr/sbin/dhcpconfig
entry show :

# /usr/sbin/dhcpconfig
dhcpconfig: Error - must specify one of 'D', 'R', 'U', 'N', 'C', 'X', or 'I'.

dhcpconfig (options)

Where (options) is one of:

-D Configure the DHCP service Sub-options:
[-r (resource)]
[-p (path)]
[-u (uninterpreted data)]
[-h (host resource)]
[-y (host domain)]
[-l (lease length)]
[-n] Leases are not negotiable
[-d (DNS domain)]
[-a (DNS servers)]

-R (server addresses) Configure BOOTP relay service.

-U UnConfigure DHCP or BOOTP relay service. Sub-options:
[-f] No confirmation prompt
[-x] Delete dhcptab and network tables
[-h] Delete host entries

-N (network address) Configure network. Sub-options:
[-m (subnet mask)]
[-t (router addresses)]
[-y (NIS domain)]
[-a (NIS addreses)]
[-b] Network is point-to-point

-C Convert to new data store. Sub-options:
[-r (resource)]
[-p (path)]
[-u (uninterpreted data)]
[-f] No confirmation prompt
[-k] Do not delete original files

-X (export filename) Export data. Sub-options:
[-m (macro list)]
[-o (option list)]
[-a (network addresses)]
[-f] Overwrite an existing export file
[-x] Delete exported data

-I (import filename) Import data. Sub-options:
[-f] Overwrite existing data

Last edited by jsnch; 06-18-2005 at 11:10 PM.
 
Old 06-19-2005, 03:43 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,784

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
As already suggested, you can read the dhcpconfig manual page.
There is also the docs.sun.com site that certainly has examples.

By the way, do you really want to set a dhcp server or just configure a client to get its address from dhcp ?
 
Old 06-19-2005, 08:19 PM   #8
jsnch
Member
 
Registered: May 2005
Posts: 42

Original Poster
Rep: Reputation: 15
First set a DHCP server,Second set DHCP client,step by step . thaks
 
Old 06-19-2005, 08:35 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,784

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Start by reading:
http://docs.sun.com/app/docs/doc/816...aoq01qe?a=view
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
config dhcp server meysam39 Linux - Networking 1 08-07-2005 10:16 AM
DHCP config problems Fritz_Monroe Linux - Newbie 7 06-16-2005 01:23 PM
DHCP Server Config riluve Linux - Networking 1 01-27-2005 08:53 AM
DHCP server config problem Q25 Linux - Networking 2 07-18-2003 07:58 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration