1833609 Members
4198 Online
110062 Solutions
New Discussion

solaris config question

 
SOLVED
Go to solution
Sean OB_1
Honored Contributor

solaris config question

I know, it's not HP. But I'm sure this will be easy.

Where do you define what config information a NIC has at startup for solaris?

Also how about static routes?

I have a machine with 3 nics and when it reboots it loses the config for the nics.

TIA
8 REPLIES 8
Ken Hubnik_2
Honored Contributor

Re: solaris config question

Do you have this file

etc/defaultrouter
Patrick Wallek
Honored Contributor

Re: solaris config question

There should be config files in /etc/ for the ethernet cards.

If you have an hme card then the file(s) will be /etc/hme0, /etc/hme1, etc depending on the number of cards.

I think I am recalling correctly here. It's been a few months since I played on Solaris.
Sean OB_1
Honored Contributor

Re: solaris config question

Ok, I figured out defaultrouter.

There are no files /etc for the interfaces.

Interfaces are ge1, ge0 and ce0.

Kelli Ward
Trusted Contributor

Re: solaris config question

Howdy,

Check out this conversion guide.

http://www.unixguide.net/unixguide.cgi

Happy Holidays,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Patrick Wallek
Honored Contributor

Re: solaris config question

OK, check out this doc: http://www.geocities.com/~gregl/htm/fasttips_interface.htm#How do I add a network card to an existing system

It looks like the config files in etc should be:

hostname.interfacename

so maybe there should be a /etc/hostname.ge0, /etc/hostname.ge1 and a /etc/hostname.ce0 where hostname is the name of your machine.


I found the info from Suns Bigadmin site:
http://www.sun.com/bigadmin/

It is a pretty good resource for Solaris info.
Kelli Ward
Trusted Contributor

Re: solaris config question

Also,

You might enjoy this one to.
http://bhami.com/rosetta.html

Happy Holidays,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
Shannon Petry
Honored Contributor
Solution

Re: solaris config question

Okay, 3 things to configure for this one. Feel free to ask more as I work with both every day! ;)

First is your interface file.
/etc/hostname.$IF
This file needs to contain the hostname SunOS will find in /etc/hosts, to get an IP and configure it on the card.
I.E.
% cat /etc/hostname.hme0
squid1
% grep squid1 /etc/hosts
10.10.10.12 squid1

Next, is your netmasks file, /etc/netmasks. This file holds all of your IP ranges and their netmasks. I.E.
10.10.10.0 255.255.255.0
117.216.0.0 255.255.0.0

Lastly, if your using a router then that goes into /etc/defaultrouter. Again this is the hostname that Solaris will find an IP for in /etc/hosts.

Regards,
Shannon
Microsoft. When do you want a virus today?
Sean OB_1
Honored Contributor

Re: solaris config question

Thanks everyone!

I figured it out before I got the answers but you all get points for your efforts.

Shannon hit it on the head.

/etc/hostname.interface
/etc/hosts
/etc/inet/netmasks
/ett/defaultrouter