PDF 文書ファイルをダウンロードする (171 KB)
Chapter 7 Network Adminstration Daemons and Related CommandsThis chapter describes the daemons and related commands on a ChorusOS system that provide network services. Not all daemons are useful on each system. Name Services and ypbindName services make it possible to convert between IP addresses and system names. The most basic name service solution on a ChorusOS system consists of using the inetNShost(1CC) daemon that obtains information from the /etc/hosts file, or /etc/networks file. ChorusOS systems usually rely on other systems to provide name services, however. The inetNSdns(1M) daemon calls Domain Name Servers listed in /etc/resolv.conf to obtain the information it needs. You can also pass Domain Name server IP addresses to the inetNSdns daemon when you start it. The inetNSnis(1M) daemon calls the Network Information Services Name Server for the domain you set using the domainname(1CC) command. The inetNSnis command also relies on the portmap(1M) and ypbind(1M) daemons. Example 7-1 Binding to an NIS ServerThe following example configures the NIS daemon for the fictitious an.example.COM domain:
Note that the actors in this example are normally found in a file system outside the system image, such as a root file system located on the host. The inetNSien116(1M) daemon calls a UDP name server as specified in IEN116 to obtain the information it needs. The IP address of the UDP name server is passed to inetNSien116 when the daemon is started. Note that the name server causes gethostbyaddr(3STDC) to return a NULL value. dhclientThe Dynamic Host Configuration Protocol utility, dhclient(1M), allows the ChorusOS system to obtain network information, such as a dynamically assigned IP address, or the IP addresses of the default router and name server, from a DHCP server at boot time. dhclient reads dhclient.cf(4CC) and dhcp.options(4CC). ftpdftpd(1M) provides File Transfer Protocol services on ChorusOS systems. Example 7-2 Sample ftp SessionThe following example starts the ftpd_s server on the ChorusOS system and tries it out:
Note that target is running in non-secure mode, so no password is required. nfsdnfsd(1M) provides Network File Services to NFS clients on the network. See the ChorusOS 4.0 File Systems User's Guide for details about running an NFS server on a ChorusOS system. portmapIn order to make RPC calls, the portmap(1M) daemon must be running on the ChorusOS system. portmap is required both by the inetNSnis name service daemon and by the nfsd NFS daemon. When starting portmap note that it is located in the /etc directory by default:
pppstartpppstart(1M) enables client PPP operations on the ChorusOS system. See Chapter 4, Setting Up PPP for details on configuring a ChorusOS system as a PPP client. pppstart(1M) uses pppstart(2K). See the sysLog(2K) man page for examples of how to read the log. slattachslattach(1M) attaches a SLIP interface to a serial line. See Chapter 5, Setting Up SLIP for details on configuring a ChorusOS system as a SLIP client. slattach(1M) uses sysLog(2K). See the sysLog(2K) man page for examples of how to read the log. |
||||