HP-UX Containers (SRP) A.03.01 Administrator's Guide

129
Route information
The srp command provides an option to add or modify the default gateway routing table entry for
the container IP address. The container IP address is always used as the source IP address.
If no target default gateway IP address is provided, the container IP address is used, with a hop
(route) count set to 0. If a target default gateway IP address is provided, the hop (route) count is set to
1. The srp command adds the routing configuration data to /etc/rc.config.d/netconf (for
IPv4) and /etc/rc.config.d/netconf-v6 (for IPv6).
IPv6 address
If you specify an IPv6 address, the srp command adds configuration data to the
/etc/rc.config.d/netconf-ipv6 file.
If you specify an address that is not a link local address and a primary interface that does not already
have an IP address configured, the srp command configures the primary interface with the
appropriate link local address, then configures a secondary interface with the specified IPv6 address.
The srp command adds the interface to the /etc/rc.config.d/netconf-ipv6 file with the
INTERFACE_SKIP set to true and INTERFACE_STATE set to up. The interface is brought up
when the container is started.
Security Containment compartment
The srp command adds a network interface rule for the IP address to the compartment rule file
(/etc/cmpt/container_name.rules). This allows the container access to its IP address.
C.5 The init Service
The init service creates startup and shutdown scripts for the container, and a container -specific
/var/hpsrp/<srp name>/sbin/init.d directory structure that replicates the /sbin/init.d
directory structure. The srp command also configures the autostart feature for the container so
that the system startup and shutdown scripts automatically execute the container startup and shutdown
scripts.
The init service will also populate the container with the appropriate set of system files for the
container type specified.
C.5.1 Configuration location
The srp command configures the following data:
Adds the following entries to the
/etc/opt/hpsrp/srps/container_name.srp file to
enable the autostart feature for the container:
srp_name="container_name"
autostart=1
Creates SRP-specific init subdirectories below the
/var/hpsrp/container_name/sbin that contain startup and shutdown scripts. For more
information about the directory structure, files, and how they are executed at system startup
and shutdown time, see