HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 64

Choosing a Name Service, Configuring Routes

Page 64 highlights

Configuring TCP/IP netgroup: automount: aliases: services: nis [NOTFOUND=return] files files nis files nis nis [NOTFOUND=return] files NOTES: • It is strongly recommended that this change be made to all HP-UX workstations soon after they are setup to avoid future confusion should a reboot be necessary when the DNS and/or NIS servers are also down. • Configuring the Name Service Switch is a separate task from configuring the name services themselves. You must also configure the name services before you can use them. The Name Service Switch just determines which name services are queried and in what order. You can use SAM to configure the Name Service Switch. • See the Chapter 10 for more information about the Name Service Switch. Choosing a Name Service HP-UX provides three ways of translating host names to IP addresses or IP addresses to host names: • The /etc/hosts file, a simple ASCII file that is searched sequentially • BIND • NIS By configuring the Name Service Switch, you can use these name services in any order you choose. If you have a large network, or need to connect to Internet hosts outside your local network, use BIND as your primary name service. When you use BIND, you administer a central database containing only the hosts on your local network, and you have access to the databases on all the other hosts on the Internet. If you have a large network and little need for Internet connectivity, you can use NIS as your primary name service. The NIS hosts database is administered centrally on one of your hosts, but it must contain the names and IP addresses of all the other hosts in your network. For information on NIS, see Installing and Administering NFS Services at: http://docs.hp.com/dynaweb/hpux11/netwen1a/nfsien1a/@Generic__BookView. If you have a small network and little need for Internet connectivity, you can use the /etc/hosts file as your primary name service. Each host in your network needs a copy of the /etc/hosts file containing the names and addresses of all the other hosts in your network. If you choose to use BIND or NIS as your primary name service, you still need to configure a minimal /etc/hosts file so that your host can boot if BIND or NIS is not available. Configuring Routes 1. If you use only one gateway to reach all systems on other parts of the network, configure a default gateway. You can use SAM to configure a default gateway, or if you are not using SAM, issue the following command: # /usr/sbin/route add default gateway_address 1 where gateway_address is the IP address of the gateway host. 2. Then, set the following environment variables in the /etc/rc.config.d/netconf file: ROUTE_DESTINATION[0]="default" ROUTE_GATEWAY[0]=" gateway_address" ROUTE_COUNT[0]="1" 59

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Configuring TCP/IP
59
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases:
files nis
services: nis [NOTFOUND=return] files
NOTES:
It is strongly recommended that this change be made to all HP-UX workstations soon after they are
setup to avoid future confusion should a reboot be necessary when the DNS and/or NIS servers are
also down.
Configuring the Name Service Switch is a separate task from configuring the name services
themselves. You must also configure the name services before you can use them. The Name Service
Switch just determines which name services are queried and in what order. You can use SAM to
configure the Name Service Switch.
See the Chapter 10 for more information about the Name Service Switch.
Choosing a Name Service
HP-UX provides three ways of translating host names to IP addresses or IP addresses to host names:
The
/etc/hosts
file, a simple ASCII file that is searched sequentially
BIND
NIS
By configuring the Name Service Switch, you can use these name services in any order you choose. If you
have a large network, or need to connect to Internet hosts outside your local network, use BIND as your
primary name service. When you use BIND, you administer a central database containing only the hosts on
your local network, and you have access to the databases on all the other hosts on the Internet.
If you have a large network and little need for Internet connectivity, you can use NIS as your primary name
service. The NIS hosts database is administered centrally on one of your hosts, but it must contain the
names and IP addresses of all the other hosts in your network. For information on NIS, see
Installing and
Administering NFS Services
at:
If you have a small network and little need for Internet connectivity, you can use the
/etc/hosts
file as your
primary name service. Each host in your network needs a copy of the
/etc/hosts
file containing the names
and addresses of all the other hosts in your network.
If you choose to use BIND or NIS as your primary
name service, you still need to configure a minimal
/etc/hosts
file so that your host can boot if BIND or
NIS is not available.
Configuring Routes
1.
If you use only one gateway to reach all systems on other parts of the network, configure a default
gateway.
You can use SAM to configure a default gateway, or if you are not using SAM, issue the
following command:
# /usr/sbin/route add default
gateway_address 1
where
gateway_address
is the IP address of the gateway host.
2.
Then, set the following environment variables in the
/etc/rc.config.d/netconf
file:
ROUTE_DESTINATION[0]="default"
ROUTE_GATEWAY[0]=" gateway_address"
ROUTE_COUNT[0]="1"