-   Solaris / OpenSolaris (
-   -   /etc/sysconfig/network-scripts on Solaris? (

meshcurrent 11-05-2002 07:22 AM

/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

trickykid 11-05-2002 09:21 AM

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:

stickman 11-06-2002 12:15 AM

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.

meshcurrent 11-06-2002 02:34 AM

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

stickman 11-06-2002 10:52 AM

Moving/Deleting the hostname file will take effect at the next reboot. For immediate results, try something like:
ifconfig hme0 unplumb

khainguyen 11-22-2002 06:13 PM

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

meshcurrent 11-24-2002 02:51 AM

Thank you.

Youssef Eldakar
Bibliotheca Alexandrina

All times are GMT -5. The time now is 10:57 PM.