Table Of ContentIBM
Certification Study Guide -
pSeries AIX System Administration
Developed specifically for the purpose
of preparing for AIX certification
Makes an excellent companion
to classroom education
For AIX professionals
Christian Pruett
Kristian Strickland
Scott Vetter
ibm.com/redbooks
International Technical Support Organization
IBM ^ Certification Study Guide -
pSeries AIX System Administration
December 2001
SG24-6191-00
Take Note! Before using this information and the product it supports, be sure to read the
general information in “Special notices” on page455.
First Edition (December 2001)
This edition applies to AIX 5L for POWER Version 5.1, program number 5765-E61 and subsequent
releases running on an RS/6000 or pSeries server and is based on information available in
October 2001.
This document was updated on June 7, 2002.
Comments may be addressed to:
IBM Corporation, International Technical Support Organization
Dept. JN9B Building 003 Internal Zip 2834
11400 Burnet Road
Austin, Texas 78758-3493
When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the
information in any way it believes appropriate without incurring any obligation to you.
© Copyright International Business Machines Corporation 2001. All rights reserved.
Note to U.S Government Users – Documentation related to restricted rights – Use, duplication or disclosure is subject to
restrictions set forth in GSA ADP Schedule Contract with IBM Corp.
Contents
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
The team that wrote this redbook. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Special notice. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
IBM trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Chapter 1. Certification overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 pSeries AIX System Administration (Test 191). . . . . . . . . . . . . . . . . . .2
1.1.1 Recommended prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.2 Registration for the certification exam. . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.3 Certification exam objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Certification education courses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
1.3 Education on CD-ROM: IBM AIX Essentials. . . . . . . . . . . . . . . . . . . . .9
Chapter 2. System startup problem handling. . . . . . . . . . . . . . . . . . . . . . . 11
2.1 Key commands used throughout the chapter . . . . . . . . . . . . . . . . . . .12
2.2 Boot process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
2.3 Power on sequence, LEDs, and audio signals . . . . . . . . . . . . . . . . . .14
2.4 Useful commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
2.4.1 Using the alog command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.2 Using the cfgmgr command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.4.3 Using the last command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.4.4 Using the bootlist command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.4.5 Using the uptime command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.4.6 Using the mpcfg command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.4.7 Using the shutdown command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.5 Troubleshooting boot problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
2.5.1 Accessing a system that will not boot. . . . . . . . . . . . . . . . . . . . . . . . 28
2.5.2 Problems with installation media. . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.5.3 Common boot time LED error codes and recovery actions . . . . . . . 33
2.6 Quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
2.6.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2.7 Exercises. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
Chapter 3. Hardware assistance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
© Copyright IBM Corp. 2001 3
3.1 Listing hardware devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
3.1.1 Using the lsdev command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.1.2 Using the lspv command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.2 Configuring system devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
3.3 System management services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
3.4 Hardware device compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
3.4.1 Device configuration database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
3.5 Using the lsattr command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
3.6 Using SMIT with devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
3.7 The system error log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
3.7.1 Using the errdemon command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
3.7.2 Using the errpt command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.7.3 Using the errlogger command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.7.4 Other error handling commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
3.8 Diagnosing hardware problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
3.9 The system log. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
3.9.1 The syslogd configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.9.2 The format of the configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . 64
3.9.3 Using the system log. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
3.10 Setting up an ASCII terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68
3.11 Quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72
3.11.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
3.12 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
Chapter 4. System and software installation . . . . . . . . . . . . . . . . . . . . . . . 75
4.1 Base Operating System installation . . . . . . . . . . . . . . . . . . . . . . . . . .76
4.1.1 New and Complete Overwrite installation. . . . . . . . . . . . . . . . . . . . . 78
4.1.2 Migration installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.1.3 Preservation installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.2 Advanced Options installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80
4.2.1 Installation Package Set or Desktop. . . . . . . . . . . . . . . . . . . . . . . . . 80
4.2.2 Enable Trusted Computing Base (TCB) . . . . . . . . . . . . . . . . . . . . . . 80
4.2.3 Enable 64-bit Kernel and JFS2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
4.3 Configuration Assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81
4.4 Understanding maintenance levels. . . . . . . . . . . . . . . . . . . . . . . . . . .82
4.5 Software packaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84
4.5.1 Filesets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
4.5.2 Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
4.5.3 Licensed Program Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
4.5.4 Bundles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
4.5.5 PTFs and APARs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
4.6 Installing optional software and service updates. . . . . . . . . . . . . . . . .86
4.6.1 The installp command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
4 IBM ^ Certification Study Guide - pSeries AIX System Administration
4.6.2 Using SMIT for software maintenance . . . . . . . . . . . . . . . . . . . . . . . 90
4.7 Maintaining optional software (applying updates). . . . . . . . . . . . . . . .95
4.7.1 Listing the maintenance level of software. . . . . . . . . . . . . . . . . . . . . 96
4.7.2 Downloading fixes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
4.7.3 Displaying and updating installed software to the latest level. . . . . 100
4.8 Creating installation images on a hard disk . . . . . . . . . . . . . . . . . . .106
4.9 Alternate disk installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107
4.9.1 Filesets required . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
4.9.2 Alternate disk rootvg cloning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
4.9.3 Alternate mksysb install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
4.10 Quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
4.10.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
4.11 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
Chapter 5. Object Data Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
5.1 ODM commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118
5.2 Example of an object class for an ODM database . . . . . . . . . . . . . .119
5.3 Quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .120
5.3.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
5.4 Exercises. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .120
Chapter 6. Storage management, LVM, and file systems . . . . . . . . . . . . 121
6.1 Logical volume storage concepts . . . . . . . . . . . . . . . . . . . . . . . . . . .122
6.2 Logical Volume Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
6.2.1 LVM configuration data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
6.2.2 Disk quorum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
6.2.3 Disk mirroring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
6.3 Managing physical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130
6.3.1 Configuration of a physical volume. . . . . . . . . . . . . . . . . . . . . . . . . 130
6.3.2 Making an available disk a physical volume. . . . . . . . . . . . . . . . . . 132
6.3.3 Modifying physical volume characteristics . . . . . . . . . . . . . . . . . . . 132
6.3.4 Removing physical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
6.3.5 Listing information about physical volumes. . . . . . . . . . . . . . . . . . . 134
6.4 Managing volume groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143
6.4.1 Adding a volume group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
6.4.2 Modifying volume group characteristics . . . . . . . . . . . . . . . . . . . . . 145
6.4.3 Importing and exporting a volume group. . . . . . . . . . . . . . . . . . . . . 146
6.4.4 Varying on and varying off a volume group. . . . . . . . . . . . . . . . . . . 149
6.4.5 Monitoring volume groups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
6.4.6 Reorganizing a volume group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
6.4.7 Synchronizing a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
6.5 Managing logical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156
6.5.1 Adding a logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Contents 5
6.5.2 Removing a logical volume. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
6.5.3 Reducing the size of a logical volume. . . . . . . . . . . . . . . . . . . . . . . 160
6.5.4 Increasing the size of a logical volume. . . . . . . . . . . . . . . . . . . . . . 161
6.5.5 Copying a logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
6.5.6 Splitting copies of a logical volume. . . . . . . . . . . . . . . . . . . . . . . . . 164
6.5.7 Listing logical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
6.5.8 Logical volume size. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
6.6 Managing journaled file systems . . . . . . . . . . . . . . . . . . . . . . . . . . .167
6.6.1 Characteristics of the journaled file system. . . . . . . . . . . . . . . . . . . 168
6.6.2 Creating a file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
6.6.3 Mounting a file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
6.6.4 Removing a file system. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
6.6.5 Increasing the size of a file system. . . . . . . . . . . . . . . . . . . . . . . . . 179
6.6.6 Reducing the size of a file system. . . . . . . . . . . . . . . . . . . . . . . . . . 181
6.6.7 Checking file system consistency. . . . . . . . . . . . . . . . . . . . . . . . . . 182
6.6.8 Initializing the JFS log device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
6.6.9 Placement of the JFS log device. . . . . . . . . . . . . . . . . . . . . . . . . . . 185
6.6.10 Large file enabled file systems . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
6.7 Troubleshooting file system problems . . . . . . . . . . . . . . . . . . . . . . .186
6.7.1 Recovering from super block errors . . . . . . . . . . . . . . . . . . . . . . . . 186
6.7.2 Cannot unmount file systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
6.8 Summary of LVM commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .187
6.8.1 PV commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
6.8.2 VG commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
6.8.3 LV commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
6.8.4 File system commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
6.9 Quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189
6.9.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
6.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .193
Chapter 7. System paging space. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
7.1 Paging space overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .196
7.1.1 Paging space considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
7.2 Managing paging spaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199
7.2.1 Displaying paging space characteristics. . . . . . . . . . . . . . . . . . . . . 200
7.2.2 Adding and activating a paging space . . . . . . . . . . . . . . . . . . . . . . 200
7.2.3 Changing attributes of a paging space . . . . . . . . . . . . . . . . . . . . . . 202
7.2.4 Removing a paging space (except hd6) . . . . . . . . . . . . . . . . . . . . . 205
7.2.5 Managing default paging space (hd6). . . . . . . . . . . . . . . . . . . . . . . 206
7.3 Quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .210
7.3.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
7.4 Exercises. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .211
6 IBM ^ Certification Study Guide - pSeries AIX System Administration
Chapter 8. System backup, restores, and availability . . . . . . . . . . . . . . . 213
8.1 The mksysb command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .217
8.1.1 The data layout of a mksysb tape. . . . . . . . . . . . . . . . . . . . . . . . . . 218
8.1.2 Excluding file systems from a backup. . . . . . . . . . . . . . . . . . . . . . . 219
8.1.3 How to create a bootable system backup. . . . . . . . . . . . . . . . . . . . 219
8.1.4 Using mksysb to back up a user volume group . . . . . . . . . . . . . . . 224
8.2 Backing up user information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .224
8.2.1 Backing up a single volume group . . . . . . . . . . . . . . . . . . . . . . . . . 224
8.2.2 How to backup the current directory. . . . . . . . . . . . . . . . . . . . . . . . 225
8.2.3 Incremental backups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
8.3 Restoring information from backup media . . . . . . . . . . . . . . . . . . . .227
8.3.1 The tctl command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
8.3.2 How to restore a file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
8.3.3 How to restore a directory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
8.3.4 Errors on restore, incorrect block size. . . . . . . . . . . . . . . . . . . . . . . 234
8.3.5 Using the rmfs command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
8.4 Cloning your system. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235
8.5 Creating a duplicate copy of a diskette. . . . . . . . . . . . . . . . . . . . . . .236
8.6 Duplicating a magnetic tape. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
8.7 Special file notes for rmt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
8.8 High Availability Cluster Multi-Processing (HACMP). . . . . . . . . . . . .238
8.9 Quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240
8.9.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
8.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .242
Chapter 9. System Resource Controller administration . . . . . . . . . . . . . 243
9.1 Starting the SRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244
9.1.1 The telinit command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
9.2 Restarting the SRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .245
9.3 The startsrc command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .246
9.4 The syslogd daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248
9.4.1 Starting the syslogd daemon. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
9.4.2 syslog configuration file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
9.4.3 Recycling and refreshing the syslogd daemon. . . . . . . . . . . . . . . . 250
9.4.4 Collecting syslog data from multiple systems. . . . . . . . . . . . . . . . . 250
9.5 Refreshing a daemon. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .251
9.6 The cron daemon. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .251
9.6.1 Crontab file record format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
9.6.2 Allowing access to the crontab command. . . . . . . . . . . . . . . . . . . . 253
9.6.3 Housekeeping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
9.7 Quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257
9.7.1 Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
9.8 Exercises. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .258
Contents 7
Chapter 10. Network administration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
10.1 Network startup at boot time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .260
10.2 Stopping and restarting TCP/IP daemons. . . . . . . . . . . . . . . . . . . .260
10.2.1 Stopping TCP/IP daemons using the /etc/tcp.clean command. . . 260
10.2.2 Restarting TCP/IP daemons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
10.3 System boot without starting rc.tcpip . . . . . . . . . . . . . . . . . . . . . . .261
10.4 The inetd daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .262
10.4.1 Starting and refreshing inetd. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
10.4.2 Subservers controlled by inetd . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
10.4.3 The /etc/services file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
10.4.4 Stopping inetd. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
10.5 The portmap daemon. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
10.6 Internet addressing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
10.6.1 IP address format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
10.6.2 Binary to decimal conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
10.6.3 Internet address classes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
10.6.4 Special Internet addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
10.6.5 Subnetting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
10.6.6 Subnet masks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
10.7 Host name resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .275
10.7.1 The /etc/resolv.conf file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
10.7.2 Related problems with /etc/resolv.conf. . . . . . . . . . . . . . . . . . . . . 277
10.7.3 The nslookup command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
10.8 New adapter considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .278
10.8.1 Configuring a network adapter using SMIT. . . . . . . . . . . . . . . . . . 279
10.8.2 Configuring a network interface using SMIT. . . . . . . . . . . . . . . . . 279
10.9 Enabling IP forwarding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .282
10.10 Adding network routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .283
10.11 Changing IP addresses using SMIT . . . . . . . . . . . . . . . . . . . . . . .284
10.12 The ifconfig command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .285
10.12.1 Identifying network interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
10.12.2 Activating a network interface. . . . . . . . . . . . . . . . . . . . . . . . . . . 287
10.12.3 Deactivating a network interface. . . . . . . . . . . . . . . . . . . . . . . . . 288
10.12.4 Deleting an address from a network interface. . . . . . . . . . . . . . . 288
10.12.5 Detaching a network interface. . . . . . . . . . . . . . . . . . . . . . . . . . . 288
10.12.6 Creating an IP alias for a network interface . . . . . . . . . . . . . . . . 289
10.12.7 Changing the MTU size of a network interface. . . . . . . . . . . . . . 290
10.13 Network security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .291
10.13.1 Trusted and non-trusted processes . . . . . . . . . . . . . . . . . . . . . . 291
10.13.2 The $HOME/.netrc file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
10.13.3 The /etc/hosts.equiv and $HOME/.rhosts files . . . . . . . . . . . . . . 293
10.13.4 The securetcpip command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
10.13.5 Anonymous FTP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
8 IBM ^ Certification Study Guide - pSeries AIX System Administration