LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-11-2005, 03:26 AM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
won't change ip address


Hi, i'm running Solaris 10,

Currently, its ip address is set to 192.168.0.4, and i'm trying to change it to 192.168.0.3. Everytime i run
Code:
ifconfig hme0 set 192.168.0.3
, It works, but everytime i reboot the machine, it goes back to the old .4 ip address..

What gives? How can i make the change permanant?

Thanks =)
 
Old 05-11-2005, 03:43 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
/etc/hostname.hme0
 
Old 05-13-2005, 03:04 PM   #3
youwhoi
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
They changed this up a bit in Solaris 10. You need to make that ifconfig change and then make sure that you have also made the changes to /etc/hosts and /etc/inet/ipnodes. You will be good to go then... Changing or adding an IP address to the hostname.hme0 file will do nothing for you. That file is just to let the system know that you will be using that device. Inside the file you could have donald duck and it would still serve its purpose.

Last edited by youwhoi; 05-13-2005 at 03:07 PM.
 
Old 05-14-2005, 02:57 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You're right /etc/hosts and /etc/ipnodes must match the new address, this is obvious, but where is the "donald duck" feature you describe documented ???

When I look in the /lib/svc/method/net-physical script, I see the same use of the hostname.<interface> file to set the IP address as it used to be previous versions ...
 
Old 05-14-2005, 04:11 AM   #5
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
I actually followed jlliagre's reply, and stuck my address in /etc/hostname.hme0. It changed it on my next reboot. I'll read up on the other methods too.

Thanks
 
  


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
Change Ip address luisator Linux - Newbie 3 06-02-2005 05:03 AM
Change IP address lvran Linux - Networking 2 10-16-2003 02:19 AM
How do you change the IP Address? Diablotrickster Slackware 4 08-28-2003 08:31 PM
cannot change ip address ??? aherrys Linux - Networking 0 07-06-2003 04:34 AM
Change IP address ust Linux - Networking 5 06-12-2003 01:18 PM

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

All times are GMT -5. The time now is 06:06 AM.

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