netsetup(8)
NAME
netsetup - set up local area network files
SYNTAX
/etc/netsetup [ install ]
DESCRIPTION
The netsetup(8) command allows you to:
•Add your system to a local area network (LAN)
•Update the /etc/hosts and /etc/hosts.equiv files
Adding Your System to a LAN
To add your system to a LAN, bring the system to single-user mode. Then run the netsetup command with the install option and answer the questions. The network manager should be able to provide you with the following information ahead of time:
•What is your network number and what is your host number?
•What is your Internet Protocol (IP) broadcast address? (Does the LAN use all zeros (0) or ones (1)?)
•Does the LAN use subnet routing? If the answer is yes, then how many bits of the host part of the Internet address are used to specify the subnet part of the network address?
NOTE
If your LAN uses subnet routing, remember to enter the subnet number as part of the host number.
After the netsetup command has completed, reboot the system.
Adding or Modifying the LAN Files
To add or modify hosts in the /etc/hosts or /etc/hosts.equiv files, run the netsetup command without the install option and answer all the questions. There is no need to bring the system to single-user mode to update these files.
FILES
/etc/hosts
/etc/hosts.equiv
/etc/networks
/etc/rc.local
SEE ALSO
The Network Management Guide