Incorporating External NICs HowTo

1. From the head node, copy the platform_vars.ini to the target node or nodes:
# pdcp -w nodelist /opt/hptc/config/platform_vars.ini /opt/hptc/config/
TIP: It may desirable to copy this file to all the nodes.
# pdcp -a /opt/hptc/config/platform_vars.ini /opt/hptc/config/
2. Log in to the target node.
3. Verify that the platform_vars.ini file on the target node contains the changes you made.
4. Run the following perl command on the target node. The output helps you determine
which device will be selected as the AdminPort, the (first) external device, the interconnect,
and any additional external Ethernet devices:
perl -I /opt/hptc/perl/lib -e \
'use AdapterMap; print join(" ",determineEthMappingFull()),"\n";'
eth0 eth1 undef eth2 eth3
The command output displays the Ethernet devices in the order: Admin, External,
Interconnect, External1, External2, and so on. This example shows the following assignments:
Admin eth0
External eth1
Interconnect N/A
External1 eth2
External2 eth3
IMPORTANT: Be sure that the output represents the results you want before proceeding to the
next task, Update the Database for the External Network Card.” Otherwise, repeat the steps in
“Edit the platform_vars.ini Configuration File” (page 14) until the output accurately represents
the results you want.
4.3 Update the Database for the External Network Card
You need to use the device_config command on the head node to update the database for
an added external NIC.
IMPORTANT: You need to repeat this procedure for each external Ethernet port that you
configure.
1. Review the information gathered from Table 4 (page 14). 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 \
16