Chapter 4
GPIB Configuration
4-4
ni.com
Modifying the /etc/hosts System File
You do
not
have to modify the
/etc/hosts
file if either of the following
circumstances is true:
•
You want to use the numerical IP address to refer to your
GPIB-ENET/100.
•
Your network uses DNS or other hostname-to-IP address resolution.
However, if you want to use the hostname alias or your network does not
use any form of hostname-to-IP address resolution, you must edit the
/etc/hosts
file and add an entry for the GPIB-ENET/100. Create the
entry in the following format:
Internet-address official-host-name aliases
•
Internet-address
is the IP address assigned to the
GPIB-ENET/100. If DHCP did not configure the network parameters,
enter the static IP address you configured for your GPIB-ENET/100
using the NI Ethernet Device Configuration utility.
•
official-host-name
is the default hostname listed on the baseplate
label unless you changed the hostname using the NI Ethernet Device
Configuration utility. The name must be a fully qualified hostname,
which includes your domain-name extension.
•
aliases
is any other name(s) you want to associate with the box.
You should add at least one alias to the entry because the software
configuration utility,
ibconf
, uses this alias to locate the
GPIB-ENET/100. The default configuration expects the alias
gpib0
for the first GPIB-ENET/100 or GPIB-ENET,
gpib1
for the second,
gpib2
for the third, and so on.
The following is an example
/etc/hosts
entry:
130.164.1.212 gpib0.natinst.com gpib0
where
gpib0.natinst.com
is the official-host-name and
gpib0
is the
default alias that
ibconf
uses. If you use an alias other than the default,
you must change the alias in
ibconf
to match the alias you are using.
For more information about
/etc/hosts
, refer to the
man
pages for
hosts (4)
or contact your network administrator.