auto start interfaces


 
Thread Tools Search this Thread
Operating Systems Solaris auto start interfaces
# 1  
Old 04-23-2008
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 ?
# 2  
Old 04-23-2008
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.
# 3  
Old 04-23-2008
Quote:
Originally Posted by squall
Im afraid that static routes will require you put the "route add" command in a startup script.
Not really, you can use routeadm.
# 4  
Old 04-23-2008
Quote:
Originally Posted by reborg
Not really, you can use routeadm.
or manually create the file "/etc/inet/routes" with the needed routes...
# 5  
Old 04-24-2008
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
# 6  
Old 04-24-2008
Quote:
Originally Posted by p33w5t3r
The files already exists
Which files exists ?
Have you created the /etc/hostname.<interface> files as suggested ?
# 7  
Old 04-28-2008
It all works Smilie

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

thnx
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. Red Hat

Disable xen machine to auto start on reboot

Hello Guys - I need to disable xen server not to start when the server is rebooted. 1) What is the parameter to be used to do this..below is the entry in my config file... on_reboot = "restart" 2) What is the default behaviors of the xen on reboot ? in case we comment this line from config... (0 Replies)
Discussion started by: saurabh84g
0 Replies

3. Solaris

How to auto start a service on rebooting a Solaris 5.10 x86 machine?

Hi all, How to auto start a snmpd deamon on rebooting a Solaris 5.10 x86 machine. snmpd's path: /opt/download/net-snmp/sbin Thank you in advance. (6 Replies)
Discussion started by: ziosnim
6 Replies

4. Solaris

Interfaces and Virtual-interfaces queries

Hi Al, In course of understanding networking in Solaris, I have these doubts on Interfaces. Please clarify me. I have done fair research in this site and others but could not be clarified. 1. In the "ifconfig -a" command, I see many interfaces and their configurations. But I see many... (1 Reply)
Discussion started by: satish51392111
1 Replies

5. Solaris

How to auto start MySQL server on Opensolaris after rebooting the machine?

Hi, In Linux, I will do it by editing the /etc/rc.d/rc.local . However, I can't find a rc.local file in Opensolaris. So, how can I do it in Opensolaris? I am new to opensolaris, so please teach me step by step. Thanks in advance. (4 Replies)
Discussion started by: AlexCheung
4 Replies

6. Shell Programming and Scripting

Start program in background (or start crontab ahead of time)

Hey! I'm working on a script that will add a user, create some configfiles, and add a crontab for the user. The crontab looks like the following: @reboot /home/user/program config.conf & I would like for this process to start at the end of my script under the corresponding username by... (0 Replies)
Discussion started by: noratx
0 Replies

7. Solaris

Cron Job -- auto start process when it dies

I would like to setup a Cron job to check weather X process is running or not. if it is not running then start that X process with a log message.... can any one help writing a script? thanks (3 Replies)
Discussion started by: chandravadrevu
3 Replies

8. Solaris

Auto Start/Stop Didnt Work in Solaris 10

Hi...all database - 10g Rs 2 with ASM platform - Sun Solaris V890 64bit This is the step i use to auto start the database n ASM: (auto start can start but need to kill lsvcrun first) 1 dbora---script 2 start_shutdown_asm.ksh---script 3. Dbora file must be put under /etc/init.d directory... (0 Replies)
Discussion started by: adzuanamir
0 Replies

9. UNIX for Dummies Questions & Answers

how do i auto start application upon startup?

sorry, i'm a newbie to unix... but how do i or rather where do i write scripts that auto start my application e.g. Informix? in Windows it would be services but in UNIX where can i auto start my informix program? To run informix i just type "oninit". And do i have to login to any user before... (2 Replies)
Discussion started by: doofie
2 Replies
Login or Register to Ask a Question