HP XC System Software Administration Guide Version 3.2

IMPORTANT: You need to repeat this procedure for each external Ethernet port that you
configure.
1. Review the information gathered from Table 22-1 (page 279). You will need the following
information for the device_config command:
Node name
External device/port
IP address
External host name
Netmask
Gateway
MAC address
2. Enter the device_config command with the --dryrun option to perform a practice run.
For example, the following command is a dry run to update the database for the addition
of a NIC for the external1 port on node n19 that connects the node for connection as
station1.example.com:
# /opt/hptc/config/sbin/device_config --dryrun \
--type E --host n19 \
--extnetwork external1 \
--ip 192.0.2.2 \
--name station2.example.com \
--netmask 255.255.248.0 \
--gw 192.0.2.100 \
--iftype Ethernet \
00:00:00:00:00:02
NOTE: The options and arguments are displayed on separate lines for clarity.
The following variables were used in this example:
nn Is the first octet of the IP address and gateway IP address.
dd Is the last portion of the MAC address.
3. Examine the command output.
4. If the command output is correct, run the command again, but without the --dryrun option.
For example:
# /opt/hptc/config/sbin/device_config \
--type E --host n19 \
--extnetwork external1 \
--ip 192.0.2.2 \
--name station2.example.com \
--netmask 255.255.248.0 \
--gw 192.0.2.100 \
--iftype Ethernet \
00:00:00:00:00:02
22.6.5 Updating the Firewall Custom Configuration
It may be necessary to update the configuration of the IP firewall on the HP XC system. The
information in this section may not be needed in all cases.
By default, the virtual IP ports 22 (ssh) and 443 (https) are open on all physical external Ethernet
ports per node. The prototype files for configuring these ports are capable of configuring up to
five external Ethernet ports. You can easily edit the /etc/sysconfig/iptables.proto file
to extend the port configuration.
284 Servicing the HP XC System