LinuxQuestions.org
Help answer threads with 0 replies.
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 11-22-2009, 04:48 AM   #1
rust8y
Member
 
Registered: May 2006
Posts: 100

Rep: Reputation: 15
Change ip address


I'm running Solaris 10 (Sparc version).

The machine has booted up with the wrong ip address. How do I change the ip address of the NIC card to 192.168.10.54?
 
Old 11-22-2009, 07:10 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,230
Blog Entries: 1

Rep: Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085
You can run
Code:
ifconfig <iface> 192.168.10.54 up
Of course you should use for <iface> the name of your interface (e.g. dmfe0) and you have to do it locally, otherwise you risk to lock yourself out.
You might also need to re-add your gateway:
Code:
route add default x.x.x.x
Regards
 
Old 11-22-2009, 09:35 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
If you want the change to persist after a reboot, you will have to modify/check the following files:
/etc/hosts
/etc/inet/ipnodes # probably is the same file as /etc/hosts
/etc/defaultrouter
/etc/inet/netmasks
/etc/hostname.NICNAME # NICNAME is something like bge0
 
  


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 the PC ip address? malli42108 Linux - Newbie 1 08-14-2009 08:38 AM
Change ip address rust8y Linux - Networking 1 10-04-2007 01:58 AM
Change Ip address luisator Linux - Newbie 3 06-02-2005 04:03 AM
won't change ip address xushi Solaris / OpenSolaris 4 05-14-2005 03:11 AM
How do you change the IP Address? Diablotrickster Slackware 4 08-28-2003 07:31 PM

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

All times are GMT -5. The time now is 09:15 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