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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-05-2002, 06:22 AM
|
#1
|
Member
Registered: Oct 2002
Posts: 38
Rep:
|
/etc/sysconfig/network-scripts on Solaris?
I am sorry that this is not directly a LinuxQuestion, but I am wondering if anyone knows where is the equivalent of /etc/sysconfig/network-scripts/* on Solaris 8. In other words, what file do I edit to add/delete network interfaces?
Thank you!
Youssef Eldakar
Bibliotheca Alexandrina
|
|
|
11-05-2002, 08:21 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
We totally welcome Solaris questions. But on to your question. There really isn't anything that I know of that is equivalent to the /etc/sysconfig/network-scripts/* but the easiest way for you to reconfigure your network in Solaris would probably be with sys-unconfig.
But I'm slightly confused on your question though, are you installing a new network interface or just wanting to change the network configuration ? Cause that would be totally different steps involved.
Some links I found that might be of some help:
http://www.enteract.com/~lspitz/interfaces.html
http://www.netsys.com/cgi-bin/man2html?sys-unconfig(1M)
|
|
|
11-05-2002, 11:15 PM
|
#3
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
Solaris plumbs network devices bases on the hostname files in /etc. For example, the existance of hostname.hme0 will cause the hme0 device to be plumbed. Most of the generic networking stuff on a Solaris systems are started in /etc/init.d/inetinit and /etc/init.d/inetsvc. The are linked over to the /etc/rc2.d directory as S69inet and S72inetsvc. Some admins create additional scripts for custom ndd stuff.
Last edited by stickman; 11-05-2002 at 11:17 PM.
|
|
|
11-06-2002, 01:34 AM
|
#4
|
Member
Registered: Oct 2002
Posts: 38
Original Poster
Rep:
|
Thank you, that does help.
I simply need to disable one of two network interfaces on a system that we got. I suppose I can just mv that hostname.* file out of /etc.
Youssef Eldakar
Bibliotheca Alexandrina
|
|
|
11-06-2002, 09:52 AM
|
#5
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
Moving/Deleting the hostname file will take effect at the next reboot. For immediate results, try something like:
ifconfig hme0 unplumb
|
|
|
11-22-2002, 05:13 PM
|
#6
|
LQ Newbie
Registered: Nov 2002
Location: Milpitas
Posts: 1
Rep:
|
If you just want simply removing the interface then you got it by just removing the hostname.InterfaceName (i.e. hostname.qfe2) but you would still need to take steps 'stickman' suggested or you would have to reboot the system (after removing the hostname.* file).
Here is what I would do to remove qfe2 interface:
ifconfig qfe2 unplumb
cd /etc
rm hostname.qfe2
|
|
|
11-24-2002, 01:51 AM
|
#7
|
Member
Registered: Oct 2002
Posts: 38
Original Poster
Rep:
|
Thank you.
Youssef Eldakar
Bibliotheca Alexandrina
|
|
|
All times are GMT -5. The time now is 01:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|