Professional Documents
Culture Documents
Front Cover: Linux Network Administration I: TCP/IP and TCP/IP Services
Front Cover: Linux Network Administration I: TCP/IP and TCP/IP Services
cover
Linux Network
Administration I: TCP/IP and
TCP/IP Services
(Course Code LX07)
Trademarks
IBM® is a registered trademark of International Business Machines Corporation.
The following are trademarks of International Business Machines Corporation in the United
States, or other countries, or both:
AIX® DB2® Domino™
Lotus Notes® Lotus® Notes®
SecureWay®
Microsoft, Windows and Windows NT are trademarks of Microsoft Corporation in the
United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Linux is a registered trademark of Linus Torvalds in the United States and other countries.
Other company, product and service names may be trademarks or service marks of others.
The information contained in this document has not been submitted to any formal IBM test and is distributed on an “as is” basis without
any warranty either express or implied. The use of this information or the implementation of any of these techniques is a customer
responsibility and depends on the customer’s ability to evaluate and integrate them into the customer’s operational environment. While
each item may have been reviewed by IBM for accuracy in a specific situation, there is no guarantee that the same or similar results will
result elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk.
© Copyright International Business Machines Corporation 1999, 2003. All rights reserved.
This document may not be reproduced in whole or in part without the prior written permission of IBM.
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.
V3.0
Lab Set Up Guide
TOC Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
PC Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Network Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Serial Cable Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Well-known Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Set Up Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
TMK Trademarks
The reader should recognize that the following terms, which appear in the content of this
training document, are official trademarks of IBM or other companies:
IBM® is a registered trademark of International Business Machines Corporation.
The following are trademarks of International Business Machines Corporation in the United
States, or other countries, or both:
AIX® DB2® Domino™
Lotus Notes® Lotus® Notes®
SecureWay®
Microsoft, Windows and Windows NT are trademarks of Microsoft Corporation in the
United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Linux is a registered trademark of Linus Torvalds in the United States and other countries.
Other company, product and service names may be trademarks or service marks of others.
LSGp Purpose
This Lab Set Up Guide provides directions for installing, preparing, and verifying the lab
hardware and software in preparation for conducting a class of course LX07.
The Requirements sections of this document may also be used to determine the specific
hardware and software needed to conduct a class.
Uempty Requirements
Hardware Requirements
PC Requirements
Each pair of students requires one Linux-compatible PC. In addition to that, the instructor
requires a similar PC, positioned so all the students can view the display, preferably
through LCD panel on an overhead projector.
Each PC requires at least the following:
• A Pentium-500 processor or compatible
• 128 MB of memory
• A hard disk of at least 4.1 GB
• A CD-ROM player
• A Fast ethernet adapter card, connected to the classroom network.
All the hardware should be compatible with Linux. To find out if your hardware is compatible
with Linux, visit http://www.redhat.com or http://www.suse.com.
Network Requirements
All computers in the classroom should be connected to each other using a Fast ethernet
LAN (100 Mbps). The classroom network should not be connected to any network
outside the classroom! During the course, students will, among other things, configure
DHCP servers and dynamic routing. These services react to broadcasts on the network
and occasionally do broadcasts themselves, both of which may wreak havoc on a
production network.
Well-known Problems
The following problems occur often, especially in IBM classrooms:
• Token Ring: Token Ring is not as well supported as Ethernet in Linux. If at all possible,
run this class under Ethernet. If that is not possible, then contact the instructor
beforehand so that he/she is able to anticipate any problems.
• Laptops: The course material does not allow for the use of PCMCIA network adapters,
which is the common adapter type on laptops. Therefore, it is not recommended to run
this class on laptops. If the class needs to run on laptops, contact the instructor
beforehand so that he/she is able to anticipate any problems.
Software Requirements
All systems (student + instructor) should be preinstalled with either Red Hat Linux 9 or
SuSE Linux Professional 8.2 as per the Set Up instructions provided on the next pages. It
is up to the country curriculum manager to decide whether the class runs on Red Hat or
SuSE. Because the systems need to be preinstalled, it is not advisable to let students
choose what distribution they want to use during class (something which is possible with,
for instance the LX02 and LX03).
In addition to the distributions mentioned above, two extra files are needed:
gq-version.rpm (from Red Hat Linux 7.3) and MigrationTools.tar.gz (downloaded from
http://www.padl.com). For convenience these files are included in the course material
library on the worldwide repository, in a file called LX073LABFILES.ZIP. The installation
instructions in this document include instructions on how to load these files onto the student
and instructor system.
Linux Installation
Both the student and instructor systems need to be installed with Linux, either Red Hat
Linux 9 or SuSE Linux Professional 8.2. Follow the instructions for the distribution chosen.
After installation, a little customization needs to be done as well. The instructions for this
are at the end of the installation instructions.
Installing and customizing Red Hat Linux 9 (student and instructor systems)
__ 1. Insert the Red Hat 9 Installation CD 1 into the CD-drive.
__ 2. Turn on the computer.
__ 3. The system will boot from disk, and you will see a screen giving you different
installation options. We will use standard installation, so press Enter.
__ 4. When booting from CD, Red Hat is able to test the CD media before install. If you
are unsure of the quality of your install CDs, you can do this, but be advised that this
may take up to 30 minutes per CD (depending, obviously, on the speed of your CD
drive). If you don’t want to test your media, select Skip.
__ 5. Red Hat Linux will now start the graphical installer. If something fails, it will fall back
into a text install, which will basically ask the same questions. When you see the
“Welcome to Red Hat Linux” screen, click Next.
__ 6. Choose the language for the installation process and click Next.
__ 7. Choose your keyboard model and layout, and click Next.
__ 8. Choose your mouse type and port. If you have a two-button mouse, select "Emulate
3 Buttons" as well. Click Next.
__ 9. Choose the "Custom System" installation type. Click Next.
__ 10. Select "Manually Partition with Disk Druid". Click Next.
__ 11. The Disk Druid screen will now allow you to create your Linux partitions. Remove all
currently existing partitions and create three new partitions:
• One partition will be used as /boot partition. Its mount point should be "/boot",
the filesystem type should be "ext3" and the size of this partition should be
100 Megabytes.
• The second partition will be used as root partition. Its mount point should be
"/" and the filesystem type should be "ext3". Let this partition fill the disk to the
maximum allowable size.
• The third partition will be used as swap space. The filesystem type should be
“swap”. (A swap space does not have a mount point.) The size should equal
to the amount of memory in the system, with a maximum of 256 MB.
Click Next. You might get a warning about swap space being less than
available RAM. This warning can be ignored.
__ 12. The next screen will allow you to set up your boot loader. Accept all defaults here.
Click Next.
__ 13. The next screen allows you to configure your network. DO NOT configure any
network adapters; the students will do this in class. So deselect "Activate on boot"
on all devices.
Manually set a hostname for this system. If no hostname is assigned, use
"localhost.localdomain".
Click Next. You might get a few warnings which can be ignored by clicking Continue.
__ 14. At the “Firewall Configuration” screen, choose "No Firewall", then click Next.
__ 15. Use "English (USA)" as default language. Do not add support for any additional
languages. Click Next.
__ 16. Now select your Time Zone, then click Next.
__ 17. In the next screen ("Set Root Password") set the root password to ibmlnx. Click
Next.
__ 18. In the next screen ("Authentication Configuration"), accept all defaults. Click Next.
__ 19. Now you will have to choose which package groups to install. For this course you
will need the following:
• X Window System
• GNOME Desktop Environment
• KDE Desktop Environment
• Graphical Internet
• Text-based Internet
• Graphics
• Server Configuration Tools
• Mail Server
Next to the "Mail Server" group, click "Details" and also select "postfix".
• DNS Name Server
• FTP Server
• News Server
• Network Servers
Uempty Next to the "Network Servers" group, click "Details" and also select "dhcp",
"am-utils" and "zebra".
• Administration Tools
• System Tools
• Printing Support
Click Next.
__ 20. At the "About To Install" screen, click Next.
__ 21. Red Hat will now format the filesystems and install Red Hat Linux. This may take
anywhere from 5 minutes to an hour, depending on the speed of the computer.
When asked for, insert the other Red Hat Linux CDs in the drive and click OK.
__ 22. Skip boot disk creation and click Next.
__ 23. The Red Hat installer will now ask you to select your graphical adapter. Most
graphical adapters can be autodetected and the results of that probe will be listed
here. Click Next.
__ 24. The Red Hat installer will now ask you to select your monitor, if it could not detect it
automatically. If your monitor is not listed, then select an appropriate one from the
“Generic” list of monitors.
__ 25. At the “Customize Graphics Configuration”, check that the resolution, color depth
and refresh rate are set to reasonable values. If necessary, change the values and
test. When X works satisfactory, click Next.
__ 26. Your installation is now complete. Click Exit to reboot. Remove the last Red Hat
installation CD when the tray opens.
__ 27. Once the system has rebooted, log in as root with password ibmlnx.
__ 28. Insert Red Hat Linux 9 CD 2 in the CD drive, and install a few extra RPMs with the
following commands:
# mount /mnt/cdrom
# cd /mnt/cdrom/RedHat/RPMS
# rpm -ivh mgetty* openldap* dhcp* am-utils*
# cd
# umount /mnt/cdrom
__ 29. Insert Red Hat Linux 9 CD 3 in the CD drive, and install a few extra RPMs with the
following commands:
# mount /mnt/cdrom
# cd /mnt/cdrom/RedHat/RPMS
# rpm -ivh routed*
# cd
# umount /mnt/cdrom
Installing and customizing SuSE Linux Professional 8.2 (student and instructor
systems)
__ 1. Insert the SuSE 8.2 Professional Binary CD 1 into the CD-drive.
__ 2. Turn on the computer.
__ 3. The system will boot from CD,1 and you will see a screen giving you different
options. Choose Installation and press Enter.
__ 4. SuSE Linux will boot and start up the graphical install method. This may take several
minutes.
__ 5. Select your language and click Accept.
__ 6. If the machine has already been installed with Linux, you will get a warning on this.
Select “New Installation” if that is the case, and click OK.
__ 7. YaST will now show a screen with default installation settings. Check to see if the
settings are correct, and pay particular attention to the following:
• Partitioning should be done so that the root filesystem (/) is at least 3.9 GB.
• The Software groups to be installed are:
- Default system
- Graphical Base System
- KDE Desktop Environment
- GNOME system
1
If the system does not boot from CD, then most likely the BIOS is not set up to boot from CD. Change the BIOS settings and try again.
Uempty kickstart/autoyast configuration file is then typically put on a floppy or floppy set, which
is then given to the lab setup department, for subsequent installs.
• Compared to image creation (e.g. using Ghost), the space requirements are much
smaller. Ghost will require an disk image for each class, for each type of system in use,
while kickstart/autoyast only requires one install server, and a few floppy images per
class. Kickstart/autoyast is, to a very large extent, not dependent on specific hardware:
one script can be used for a variety of hardware.
For a kickstart/autoyast install, you will need the following:
• An NFS server which exports the Red Hat Linux 9 CDs and/or the SuSE 8.2
Professional CDs.
• A custom boot disk or set of custom boot disks which installs each classroom system.
Configuring the NFS server is beyond the scope of this Lab Setup Guide; a full description
can be found in the lab setup guide of course LX03.
# umount /mnt/floppy
__ 4. Insert a blank, formatted floppy disk into the drive, and copy the drvnet.img image
from the Red Hat CD 1 onto this floppy:
# mount /mnt/cdrom
# dd if=/mnt/cdrom/images/drvnet.img of=/dev/fd0
# umount /mnt/cdrom
To install a classroom system, simply insert the bootdisk.img disk and turn the system on.
When asked for, insert the drvnet.img disk. After about 15-30 minutes (depends on network
bandwidth), your install is finished.
Warning:
Be extremely careful with the kickstart floppy. If this is left in a system by accident, the
complete disk will be wiped out if this system is rebooted!
Uempty __ 4. Insert a blank, formatted floppy disk into the drive, and copy the modules1 image
from the SuSE CD 1 onto this floppy:
# mount /media/cdrom
# dd if=/media/cdrom/boot/modules1 of=/dev/fd0
# umount /media/cdrom
__ 5. Insert a blank, formatted floppy disk into the drive, and copy the modules3 image
from the SuSE CD 1 onto this floppy:
# mount /media/cdrom
# dd if=/media/cdrom/boot/modules3 of=/dev/fd0
# umount /media/cdrom
To install a classroom system, simply insert the bootdisk disk and turn the system on. When
asked for, insert the modules1 and modules3 disks. After about 15-30 minutes (depends on
network bandwidth), your install is finished.
Warning:
Be extremely careful with the autoyast floppy. If this is left in a system by accident, the
complete disk will be wiped out if this system is rebooted!
Connector connects to
TxD 3 2 3 2 RxD
RxD 2 3 2 3 TxD
RTS 7 4 5 8 CTS
CTS 8 5 4 7 RTS
DSR 6 6 20 4 DTR
CD 1 8
S-GRND 5 7 7 5 S-GRND
DTR 4 20 6 6 DSR
8 1 CD
© Copyright IBM Corp. 1999, 2003 Appendix A. Null Modem Cable for Use with PPP 13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Lab Set Up Guide
Be sure to verify the connections! Certain commercially available null-modem cables have
only holes TxD, RxD and S-GRND connected, or do not connect CD to DTR. Only
null-modem cables with the layout as described above are certified for the LX07 class.
Radio Shack Inc. sells null-modem adapters and cables which are known to work in this
class. For a DB-9 to DB-9 connection you will need:
• One Null Modem Adapter, DB-9 male to DB-9 female, part number 26-264B. List price
(June, 1999): US$ 5.99
• One 6-foot Shielded RS-232C Cable, DB-9 female to DB-9 female, part number
26-152B. List price (June, 1999): US$ 9.99
In addition to that, if you need to connect to a DB-25 port instead of a DB-9 port on one or
both ends:
• One or two Serial Port Adapters, DB-9 male to DB-25 female, part number 26-287A. List
price (June, 1999): US$ 5.99
Note that other null-modem adapters and cables from other manufacturers may also work.
Abbreviation of terms:
P-GRND Protective Ground
TxD Transmit Data
RxD Receive Data
RTS Ready To Send
CTS Clear To Send
DSR Data Set Ready
DTR Data Terminal Ready
CD Carrier Detect
RI Ring Indicator
S-GRND Signal Ground
Uempty All LX24 exercises may be done without problems using the parallel cable: just substitute
"ppp0" with "plip0" after defining by ifconfig and configuring by plipconfig.
I don't know if it is worth to mention this in the lab setup guide, anyway I wanted to share
this, should someone have my same difficulty in finding properly built crossed serial cables.
This solution is not supported in this Lab Setup Guide or in the exercises, but can be used
as long as the instructor is informed beforehand.
© Copyright IBM Corp. 1999, 2003 Appendix A. Null Modem Cable for Use with PPP 15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Lab Set Up Guide
backpg
Back page
®