Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

About the /etc/rc file

Startup commands are stored in /etc/rc file  Top

The /etc/rc file contains commands that the storage system executes at boot time to configure the system.

What startup commands do  Top

Startup commands are placed into the /etc/rc file automatically after you run the setup command or the Setup Wizard.

Commands in the /etc/rc file configure the storage system to

Default /etc/rc file contents  Top

To understand the commands used in the /etc/rc file on the root volume, examine the following sample /etc/rc file, which contains default startup commands:

#Auto-generated /etc/rc Tue May 30 14:51:36 PST 2000
hostname toaster 
ifconfig e0 `hostname`-0
ifconfig e1 `hostname`-1
ifconfig f0 `hostname`-f0
ifconfig a5 `hostname`-a5
route add default MyRouterBox
routed on
savecore

Explanation of default /etc/rc contents  Top

This section explains the sample /etc/rc file:

Description

hostname toaster

Sets the storage system host name to "toaster."

Description


ifconfig e0 `hostname`-0
ifconfig e1 `hostname`-1
ifconfig f0 `hostname`-f0
ifconfig a5 `hostname`-a5

Sets the IP addresses for the storage system network interfaces with a default network mask.

The arguments in single backquotes expand to "toaster" if you specify "toaster" as the host name during setup. The actual IP addresses are obtained from the /etc/hosts file on the storage system root volume. If you prefer to have the actual IP addresses in the /etc/rc file, you can enter IP addresses directly in /etc/rc on the root volume.

For more information about the ifconfig command, see the Network Management Guide.

Description:

route add default MyRouterBox

Specifies the default router.

You can set static routes for the storage system by adding route commands to the /etc/rc file. The network address for MyRouterBox must be in /etc/hosts on the root volume.

For more information about routing, see the Network Management Guide.

Description

routed on

Starts the routing daemon.

For more information about routing, see the Network Management Guide.

Description

savecore

Saves the core file from a system panic, if any, in the /etc/crash directory on the root volume. Core files are created only during the first boot after a system panic.

For more information about core files, see About core files.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments