LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 04-13-2008, 04:33 AM   #1
a.toraby
Member
 
Registered: Sep 2006
Location: tehran
Distribution: open suse & open solaris
Posts: 102

Rep: Reputation: 15
how do i disable DHCP client in solaris9?


i have installed solaris9. during installation i chosen DHCP. but noa i need to specify IP and host name manually. and i want to speed up startup precess. so how can i delete DHCP query at the startup?
how do i disable DHCP client in solaris9 and set network interface IP and name manually for ever? In suse this configurations implemented in a text file named eth0 in sysconfig directory. is exist such file in solaris?
thanks for your helps.
 
Old 04-13-2008, 05:17 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,482

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You simply need to remove the /etc/dhcp.<your-interface-name> file and create a file named /etc/hostname.<your-interface-name> containing the static IP you want to set.

You'll probably also need to set /etc/defaultrouter, /etc/nsswitch.conf and /etc/resolv.conf.
 
Old 04-15-2008, 05:35 AM   #3
supremedalek
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
You can also define the name of your machine in the /etc/hostname.<interface> and then associate it with its ip in /etc/hosts. For instance for my own solaris 9 box, kushana, I have

raub@kushana-109>cat /etc/hostname.hme0
kushana
raub@kushana-110>
 
Old 04-15-2008, 07:09 AM   #4
a.toraby
Member
 
Registered: Sep 2006
Location: tehran
Distribution: open suse & open solaris
Posts: 102

Original Poster
Rep: Reputation: 15
thanks for your helps friends
 
  


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
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
DHCP server and DHCP client in same box Eicos Linux - Networking 3 03-03-2007 01:28 PM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
how do you disable dhcp?? samills70 Linux - Software 6 05-20-2004 05:08 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


All times are GMT -5. The time now is 04:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration