- 论坛徽章:
- 0
|
我也没用过
请参考《IBM Certification Study Guide AIX Communications》\r\nhttp://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg246186.pdf\r\n\r\n6.2.4 DHCP client configuration\r\nThe DHCP client daemon is implemented in program dhcpcd program. The\r\ndhcpcd requests IP address and parameters from a DHCP server. When an\r\nAIX system is configured to run with a DHCP client, the dhcpcd entry in the\r\n/etc/rc.tcpip startup script needs to be uncommented. Notice that the dhcpcd\r\nis, obviously, the first network daemon to be started.\r\nAt startup, the dhcpcd reads its configuration file /etc/dhcpcd.ini.\r\nExample of the /etc/dhcpcd.ini:\r\n#\r\n# dhcpcd.ini -- DHCP Client configuration file\r\n#\r\n#\r\n# This file contains directives that can be specified by the\r\n# to configure the client.\r\nnumLogFiles 4\r\nlogFileSize 100\r\nlogFileName /usr/tmp/dhcpcd.log\r\nlogItem SYSERR\r\nupdateDNS \"/usr/sbin/dhcpaction \'%s\' \'%s\' \'%s\' \'%s\' A NONIM >>\r\n/tmp/updns.out 2>&1 \"\r\nThe numLogFile, logFileSize, logFileName and logItem have the same\r\nparameter format used in the DHCP server configuration file, namely logging\r\nparameters. The updateDNS parameter is a quoted string used for executing\r\na program, in this case dhcpaction, to update the DNS server with the inverse\r\nmapping of the IP address provided by DHCP and hostname of the machine.\r\nFor more information about DNS updates, see Chapter 6.3, “Dynamic Domain\r\nName System (DDNS)” on page 118.\r\nInstead of editing /etc/rc.tcpip and /etc/dhcpcd.ini manually, a preferred way\r\nto configure the DHCP client is using the SMIT menus: smit usedhcp. |
|