LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-11-2008, 03:34 PM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
solaris 10 static ip


Hi, 2 weeks ago I had some problems with X on Solaris 10. I decided to reinstall the system today.

The problem I have now is with networking.

I've changed the configuration of my computers. They are connected through a router, with each computer having a unique ip.
The computer running solaris should have:
Quote:
address 192.168.2.201
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
dns-nameservers 192.168.2.1
I guess it should be in /etc/networks but in which form?

thanks

btw, what's the solaris equivalent of linux's ifup/ifdown and the name of the first NIC?

Last edited by sycamorex; 01-11-2008 at 03:49 PM.
 
Old 01-11-2008, 03:44 PM   #2
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
In LQ there's plenty of information about IP services configuration.
There's no /etc/networks file in solaris, I suggest you read Sun documentation, man pages and read LQ threads, too. The files you're looking for are:

TCP/IP configuration in Solaris is done in the following files:
/etc/hostname.{interface} <- there should be one for every NIC you want the system to plumb (associate a device to it) during solaris boot
/etc/nodename
/etc/defaultdomain
/etc/defaultrouter (optional)
hosts database
netmasks database (optional)

That's very good documentation in Sun Microsystems's "System Administration Guide: IP services" that you can download at docs.sun.com.

Hope this helps.
 
Old 01-11-2008, 03:48 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
thanks, I'll read it
 
Old 01-11-2008, 05:14 PM   #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
A couple of files to complement cristosomo_enrico's answer:

/etc/resolv.conf contains dns client configuration
/etc/nsswitch.conf tell the system to use dns (or other) for name resolving
 
  


Reply



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
Solaris 10 DHCP to Static metallica1973 Solaris / OpenSolaris 5 12-06-2007 07:05 AM
Solaris 10 Static to DHCP metallica1973 Solaris / OpenSolaris 3 11-28-2007 09:53 AM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
DHCP to static IP in Solaris ??? davepal Solaris / OpenSolaris 7 04-30-2004 11:06 AM

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

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