The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Auto Start/Stop Didnt Work in Solaris 10 adzuanamir SUN Solaris 0 04-22-2008 08:25 PM
Multiple LAN Interfaces Docboyeee AIX 2 12-16-2006 08:23 AM
how do i auto start application upon startup? doofie UNIX for Dummies Questions & Answers 2 04-01-2004 06:20 AM
interfaces emsakopa UNIX for Dummies Questions & Answers 1 01-16-2003 11:44 AM
Hme0 interfaces... Michelle1977 UNIX for Advanced & Expert Users 1 01-14-2002 04:58 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
auto start interfaces

Hi,

I'v just installed solaris 10 on a server. I have configured 4 nic card's, but when i reboot the system i have to ifup all 4 of them evertime after a reboot. How can i solve this ?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-23-2008
Registered User
 

Join Date: Feb 2008
Posts: 8
manually typing "ifconfig bge3 up" etc is a temporary configuring of the interface and it wont survive a reboot.

If you want to easilly configure your interface automatically on reboot do something like

Edit the following file (where bge3 is the interface you are configuring)
vi /etc/hostname.bge3

Add the host alias for the IP to be configured
eg. server_int4

Of course server_int4 must be in the /etc/inet/hosts file for you to do this. Alternatively you could just put the IP address in there. But its good practice to use hostnames.

You should also put an entry in the /etc/inet/netmasks file that has the network and subnet in it.

If you want to create a default route then you should put a host alias for the defaultrouter in /etc/defaultrouter file.

Im afraid that static routes will require you put the "route add" command in a startup script.
Reply With Quote
  #3 (permalink)  
Old 04-23-2008
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,497
Quote:
Originally Posted by squall View Post
Im afraid that static routes will require you put the "route add" command in a startup script.
Not really, you can use routeadm.
Reply With Quote
  #4 (permalink)  
Old 04-23-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,192
Quote:
Originally Posted by reborg View Post
Not really, you can use routeadm.
or manually create the file "/etc/inet/routes" with the needed routes...
Reply With Quote
  #5 (permalink)  
Old 04-24-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
The files already exists with the netmasks and hosts, one in /etc/hosts and /etc/netmasks and in /etc/inet/hosts and /etc/inet/netmasks
Reply With Quote
  #6 (permalink)  
Old 04-24-2008
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 278
Quote:
Originally Posted by p33w5t3r View Post
The files already exists
Which files exists ?
Have you created the /etc/hostname.<interface> files as suggested ?
Reply With Quote
  #7 (permalink)  
Old 04-28-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
It all works

I created the hostnam.int and edited the hosts file in /etc and in /etc/inet and it all works just fine now.

thnx
Reply With Quote
Google UNIX.COM
Reply

Tags
solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0