LinuxQuestions.org
Visit Jeremy's Blog.
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 09-21-2006, 02:45 PM   #1
LAN-Dominator.nl
Member
 
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137

Rep: Reputation: 15
Question How to change IP in Solaris?


Ok since i restarted working with Sun Solaris, i just forgot how solaris works...

Can anybody tell me how i can change my Solaris IP adress into the LAN-adress.

oh and i'm new here!!

Last edited by LAN-Dominator.nl; 01-05-2007 at 01:06 AM. Reason: Took Screenshor
 
Old 09-21-2006, 02:52 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
127.0.0.1 is the loopback interface (lo0), you shouldn't change it.

What return these commands ?
Code:
ifconfig -a plumb
ifconfig -a
 
Old 09-21-2006, 04:06 PM   #3
LAN-Dominator.nl
Member
 
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137

Original Poster
Rep: Reputation: 15
i'm working with a KVM-Switch and i put my messages with my Windows pc on the web (yes unfortunally i use windows).

so typing the codes from screen on screen will be a lotta work...
 
Old 09-22-2006, 08:52 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
You do not need to post the whole answer.

The first command is creating interfaces for all NICs recognized by the drivers.

The second one is showing the configuration of each interface present, at least lo0 which is always there.

Just tell me if you have more than what interface returned, and what is its name.
 
Old 09-22-2006, 10:59 AM   #5
mdhmi
Member
 
Registered: Dec 2005
Location: Detroit, Michigan
Distribution: Ubuntu
Posts: 86

Rep: Reputation: 15
Here are a few files worth checking:

/etc/hosts
/etc/resolv.conf
/etc/defaultroute

/etc/hostname.*
 
Old 09-26-2006, 01:36 PM   #6
LAN-Dominator.nl
Member
 
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137

Original Poster
Rep: Reputation: 15
i got the main message edited!
 
Old 09-26-2006, 03:37 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by LAN-Dominator.nl
i got the main message edited!
You'd rather answer in the flow of the thread, that's simpler to follow for readers.

Anyway, your interface name is rtls0, meaning you have a realtek chip based NIC.

First add an entry for your machine in /etc/hosts, eg.
Code:
192.168.2.10 lan-dominator-pc
Then create a file named "/etc/hostname.rtls0" and simply put either the wanted IP there or your machine hostname. That will make this address persist across reboots.

Finally, set the address with this command:
Code:
ifconfig rtls0 192.168.2.10 up
You may also need to know how to setup the dns and routing.
Just search defaultrouter and nsswitch.conf in this forum.
I'm sure I already explained that a half a dozen times, and other before me.
 
Old 09-30-2006, 04:50 AM   #8
LAN-Dominator.nl
Member
 
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137

Original Poster
Rep: Reputation: 15
ehm my lan has ip range 192.168.2.100 not 10 (my modem is a router to)
 
Old 09-30-2006, 06:01 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by LAN-Dominator.nl
ehm my lan has ip range 192.168.2.100
That's not a range but a single address
Quote:
not 10
How would I guess, you wrote 192.168.2.xxx in your first question.
As stated, 192.168.2.10 was an example of setting, not necessarily yours.
Quote:
(my modem is a router to)
That's fine.
 
Old 09-30-2006, 07:06 AM   #10
LAN-Dominator.nl
Member
 
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137

Original Poster
Rep: Reputation: 15
8-( i don't have the file "defaultroute"

Can i create it and/or what should be written?
 
Old 09-30-2006, 08:31 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by LAN-Dominator.nl
8-( i don't have the file "defaultroute"
Nobody has one, there is no such file.

I believe mdhmi was thinking about /etc/defaultrouter.

Quote:
Can i create it and/or what should be written?
You certainly can create this file, and just put your default router IP inside.

"man defaultrouter" if you are unsure.
 
Old 10-01-2006, 05:00 AM   #12
LAN-Dominator.nl
Member
 
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137

Original Poster
Rep: Reputation: 15
ok can you give me a website or full mail with all the things i should do to make a full internet connection.

Like the mods towards adress, subnet, router, etc..

greetz
 
Old 10-01-2006, 06:07 AM   #13
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
All you need is an IP connection to your Router (I belive you have it now), defaultroute set (please tell what you do not understand if needed), and DNS enabled and set.

/etc/nsswitch.conf must contain this line:
hosts files dns

/etc/resolv.conf must contain at least this line
nameserver a.b.c.d

where a.b.c.d is the IP address of your DNS server (usually the one your ISP is telling you).

Alternatively, you can use DHCP and all this should be set automatically with recent Solaris releases.
 
Old 01-01-2007, 01:53 PM   #14
LAN-Dominator.nl
Member
 
Registered: Sep 2006
Location: Hendrik Ido Ambacht, Zuid-Holland, Nederland, Europa
Distribution: Ubuntu 12.04; CentOS 6.5
Posts: 137

Original Poster
Rep: Reputation: 15
How do i configure my DHCP??
 
Old 01-01-2007, 01:57 PM   #15
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Is there a DHCP server already configured on your network ?
 
  


Reply

Tags
dhcp, solaris


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 to 1000MB full duplex for Solaris 8,9,10 DarReNz Solaris / OpenSolaris 17 07-02-2007 11:54 AM
great solaris website for newbies http://solaris-x86.org/ feetyouwell Solaris / OpenSolaris 2 12-06-2006 01:14 AM
How to change default shells in solaris 10 and other misc. questions amlucent23 Solaris / OpenSolaris 3 07-21-2006 11:45 AM
script to change IP and hostname under Solaris 10 xpucto Solaris / OpenSolaris 9 06-08-2006 06:37 AM
Change background in solaris and Xterm background also EvilAngel Solaris / OpenSolaris 2 01-31-2005 12:25 PM


All times are GMT -5. The time now is 10:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration