Professional Documents
Culture Documents
cover
AIX 5L
TCP/IP I: Configuring
(Course Code AU07)
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:
AFS AIX AIX 5L
DFS HACMP MVS
pSeries RISC System/6000 RS/6000
SecureWay SP System/370
400
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft
Corporation in the United States, other countries, or both.
Intel, Intel Inside (logos), MMX and Pentium are trademarks of Intel 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 trademark of Linus Torvalds in the United States, other countries, or both.
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 customers ability to evaluate and integrate them into the customers 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 1997, 2006. 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.1.0.1
Lab Set Up Guide
TOC Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Set Up Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
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:
AFS AIX AIX 5L
DFS HACMP MVS
pSeries RISC System/6000 RS/6000
SecureWay SP System/370
400
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft
Corporation in the United States, other countries, or both.
Intel, Intel Inside (logos), MMX and Pentium are trademarks of Intel 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 trademark of Linus Torvalds in the United States, other countries, or both.
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 AU07, ERC 9.1.
The Requirements sections of this document may also be used to determine the specific
hardware and software needed to conduct a class.
LSG Requirements
The following tables list the hardware, software, and other materials needed to set up a lab
to conduct a class of course AU07, ERC 9.1.
Hardware Requirements
Table 1 lists the hardware needed to prepare one student lab set. The class is designed to
be run in teams of 2 to 3 students. Each team will use one lab set, consisting of 5 LPARs: 1
VIOS LPAR and 4 AIX LPARs.
The Static Routing exercise configures routing between two lab sets, therefore a minimum
of two lab sets are required for the class.
When preparing for a class, multiply the items below by the number of lab sets needed for
the class.
Software Requirements
Table 2 and Table 3 list the software needed to prepare the student and/or instructor lab
set(s). When preparing for a class, be sure you have the correct number of licensed copies
of any non-IBM software.
Instructor information
The instructor for the course must be provided with the following information:
IP address, netmask and hostname information for the HMC and for the AIX and VIOS
partitions on each p5 system
Gateway IP address for the p5 systems
DNS server IP address and domain name for the p5 systems (if DNS is in use)
Location of the WebSM client on the classroom systems. (and any other classroom
system software)
Passwords that are configured for:
- hscroot userid on the HMC
(suggest abc1234)
- padmin user for the Virtual I/O Server partitions
(If using the mksysb_q1307_vios mksysb, the password is abc123)
Set Up Instructions
Configuration Information
The following describes the configurations of the student lab systems.
LSG
Table 8: Partition and Profile Defaults
Partition/Profile Attribute Value
Boot mode Normal
Auto start No
Shared processing pool utilization authority Yes
Connection monitoring No
Power controlling LPAR IDs None
Uncapped weight 128
Lpar I/O Pool IDs None
LSG a. If you are planning on installing the LPARs from the product media, you
should make the DVD drive adapter be a Desired resource. Other physical
adapters should be Required.
The exercises assume that each set of four AIX LPARs is served by one VIOS
partition. If you need to have multiple AIX LPAR sets served by one VIOS partition
for shared Ethernet Adapter resources, then Exercise 7 (Shared Ethernet Adapter)
will need to be performed together by the affected teams. For example, if lab set 1
(rte1, srv1, sys11 and sys12) and lab set 2 (rte2, srv2, sys21 and sys22) are both
served by one VIOS partition for shared Ethernet adapter resources, then team1
and team2 must work together on Exercise 7, and so forth.
__ 3. Create the rte partition and its profile as described in the tables below. If you are
using a p550 or p570 with multiple LPAR sets in each managed system, number the
rte partitions: rte1, rte2, etc.
Table 13: rte Partition Information
Partition Name LPAR ID Environment
rte 5 AIX/Linux
__ 4. Create the srv partition and its profile as described in the tables below. If you are
using a p550 or p570 with multiple LPAR sets in each managed system, number the
srv partitions: srv1, srv2, etc.
Table 16: srv Partition Information
Partition Name LPAR ID Environment
srv 6 AIX/Linux
__ 5. Create the sys1 partition and its profile as described in the tables below. If you are
using a p550 or p570 with multiple LPAR sets in each managed system, number the
sys1 partitions: sys11, sys21, sys31, etc.
Table 19: sys1 Partition Information
Partition Name LPAR ID Environment
sys1 7 AIX/Linux
__ 6. Create the sys2 partition and its profile as described in the tables below. If you are
using a p550 or p570 with multiple LPAR sets in each managed system, number the
sys2 partitions: sys12, sys22, sys32, etc.
Table 22: sys2 Partition Information
Partition Name LPAR ID Environment
sys1 8 AIX/Linux
__ 14. Create the first shared Ethernet adapter (SEA). This adapter should link VLAN 1
with the external network using one of the physical adapters which is connected to
the network. You should have two virtual adapters with PVID=1 and two physical
adapters connected to the network. Choose one of each and create the first SEA.
In our example, if ent0 and ent1 are physical adapters connected to the network
and ent3 and ent6 are virtual adapters with a PVID of 1, you could use ent0 and
ent3 to create the first SEA as shown below:
$ mkvdev -sea ent0 -vadapter ent3 -default ent3 -defaultid 1
__ 15. Create the second shared Ethernet adapter (SEA). This adapter should link VLAN 4
with the external network using one of the physical adapters which is connected to
the network. Choose the physical adapter not used in the previous step and the
virtual adapter with PVID=4 and create the second SEA.
In our example, if ent1 is the physical adapter connected to the network that was not
used in the previous step and ent4 is the virtual adapter with a PVID of 4, you could
use the following command to create the second SEA:
$ mkvdev -sea ent1 -vadapter ent4 -default ent4 -defaultid 4
__ 16. Configure the TCP/IP settings for the partition. Use the mktcpip command to
configure IP access to the VIOS partition. Use the second virtual Ethernet adapter
with PVID=1 and the IP address, hostname, etc. for the VIOS partition.
In our example, ent3 and ent6 are the two adapters with PVID=1. ent3 was used in
the first SEA (step __ 14., on page 15), so we used en6. This example assumes the
hostname, IP address, netmask, gateway and DNS information used in our lab.
Replace with the correct values for your environment. Again, DNS is optional.
$ mktcpip -interface en6 -hostname laurel175.beaverton.ibm.com \
-inetaddr 9.47.88.175 -netmask 255.255.255.0 -start \
-gateway 9.47.88.1 -nsrvaddr 9.0.8.1 -nsrvdomain beaverton.ibm.com
For reference, Figure below, shows the network configuration used for this class.
VID=1 9.X.L
VID=2 10.0.1
VID=4 10.0.100
VID=1 9.X.L
VID=2 10.0.2
VID=4 10.0.100
lab network
Lab Router
9.X.X.X 9.X.L.1
__ 17. The following sequence of steps will create virtual SCSI target devices for your AIX
partitions. You must provide a minimum of 5GB for each AIX LPAR. The two steps
below show two different ways to accomplish this:
LSG __ a. If you have enough disks so that each AIX LPAR can have its own disk, you can
create the virtual SCSI target devices using a full disk as the backing store for
the virtual SCSI device for each LPAR.
In our example, hdisk0 is the rootvg for the VIOS. The disks hdisk1, hdisk2,
hdisk3 and hdisk4 are used to create the virtual SCSI target devices using
using the following commands:
$ mkvdev -vdev hdisk1 -vadapter vhost0
$ mkvdev -vdev hdisk2 -vadapter vhost1
$ mkvdev -vdev hdisk3 -vadapter vhost2
$ mkvdev -vdev hdisk4 -vadapter vhost3
__ b. Alternatively, you could create a separate logical volume for each AIX LPAR. And
then use the LVs as backing store for the virtual SCSI devices.
The example assumes that you have sufficient space in rootvg:
$ mklv -lv lpar5_rootvg rootvg 5G hdisk0
$ mklv -lv lpar6_rootvg rootvg 5G hdisk0
$ mklv -lv lpar7_rootvg rootvg 5G hdisk0
$ mklv -lv lpar8_rootvg rootvg 5G hdisk0
The following instructions reference the partition LPARX. Substitute LPARX with the name
of the partition you are installing (rte, srv, sys1 or sys2) .
__ 1. Activate the partition LPARX using its profile.
__ 2. Connect to the LPARX partition using the HMC virtual console.
__ 3. Install AIX 5L V5.3 ML04 either using CD media or from a NIM server.
__ 4. Verify the following steps, most of these steps will not be needed if you are installing
using a mksysb:
__ a. Configure the TCP/IP settings and hostname using en0. (you may not have to do
this if you installed the AIX image from a NIM server).
__ b. Once the base install of AIX is complete, install the following filesets if they are
not already installed:
- All filesets from the bos.net package, except
bos.net.ipsec.websm
bos.net.mobip6.rte
__ c. Configure the date, time and time zone correctly (you may not have to do this if
you installed the AIX image from a NIM server).
__ d. Edit the file /etc/netsvc.conf to contain an entry as follows:
hosts = local,bind
__ e. IMPORTANT: Please perform this step.
Copy the tar file to each partition. Extract the lab files using the following
command:
# tar xvf q1307.tar
# cp /etc/hosts /etc/hosts.orig
# cp /etc/hosts.rte /etc/hosts
__ f. Rename any /etc/resolv.conf files:
# mv /etc/resolv.conf /etc/resolv.conf.hide
# team 1 - Washington
10.0.1.1 sys11 Washington1
10.0.1.2 sys12 Washington2
10.0.1.3 srv1 sys13
10.0.1.4 rte1 sys14
# team 2 - Adams
10.0.2.1 sys21 Adams1
10.0.2.2 sys22 Adams2
10.0.2.3 srv2 sys23
10.0.2.4 rte2 sys24
# team 3 - Jefferson
10.0.3.1 sys31 Jefferson1
10.0.3.2 sys32 Jefferson2
10.0.3.3 srv3 sys33
10.0.3.4 rte3 sys34
# team 4 - Madison
10.0.4.1 sys41 Madison1
10.0.4.2 sys42 Madison2
10.0.4.3 srv4 sys43
10.0.4.4 rte4 sys44
# team 5 - Monroe
10.0.5.1 sys51 Monroe1
10.0.5.2 sys52 Monroe2
10.0.5.3 srv5 sys53
10.0.5.4 rte5 sys55
# team 6 - JQAdams
10.0.6.1 sys61 JQAdams1
10.0.6.2 sys62 JQAdams2
10.0.6.3 srv6 sys63
10.0.6.4 rte6 sys64
## red network
## en2 on router systems for network 10.0.100.r
# team 1
10.0.100.1 router1 sys101
# team 2
10.0.100.2 router2 sys102
# team 3
10.0.100.3 router3 sys103
# team 4
10.0.100.4 router4 sys104
# team 5
10.0.100.5 router5 sys105
## green network
## en2 on host systems for network 192.168.n.x
## where n is your network number and x is your host number
# team 1
192.168.10.1 s11 sys111
192.168.10.2 s12 sys112
192.168.10.3 serv1 sys113
# team 2
192.168.20.1 s21 sys121
192.168.20.2 s22 sys122
192.168.20.3 serv2 sys123
# team 3
192.168.30.1 s31 sys131
192.168.30.2 s32 sys132
192.168.30.3 serv3 sys133
# team 4
192.168.40.1 s41 sys141
192.168.40.2 s42 sys142
192.168.40.3 serv4 sys143
# team 5
192.168.50.1 s51 sys151
192.168.50.2 s52 sys152
192.168.50.3 serv5 sys153
LSG
# team 6
192.168.60.1 s61 sys161
192.168.60.2 s62 sys162
192.168.60.3 serv6 sys163
# team 2
192.168.70.21 dhcp21 sys721
192.168.70.22 dhcp22 sys722
# team 3
192.168.70.31 dhcp31 sys731
192.168.70.32 dhcp32 sys732
# team 4
192.168.70.41 dhcp41 sys741
192.168.70.42 dhcp42 sys742
# tean 5
192.168.70.51 dhcp51 sys751
192.168.70.52 dhcp52 sys752
# team 6
192.168.70.61 dhcp61 sys761
192.168.70.62 dhcp62 sys762
## Orange Network
## Virtual IP Addresses
# team 1
172.16.1.1 vip1 sys911
# team 2
172.16.2.1 vip2 sys912
# team3
172.16.3.1 vip3 sys913
# team 4
# team 5
172.16.5.1 vip5 sys915
# team 6
172.16.6.1 vip6 sys916
## End of file
__ 6. Verify that the rte LPARs each have three Ethernet interfaces:
# lsdev -Cc if
en0 Available Standard Ethernet Network Interface
en1 Defined Standard Ethernet Network Interface
en2 Defined Standard Ethernet Network Interface
et0 Defined IEEE 802.3 Ethernet Network Interface
et1 Defined IEEE 802.3 Ethernet Network Interface
et2 Defined IEEE 802.3 Ethernet Network Interface
lo0 Available Loopback Network Interface
__ 7. Verify that the srv, sys1, and sys2 LPARs each have only two Ethernet interfaces:
# lsdev -Cc if
en0 Available Standard Ethernet Network Interface
en1 Defined Standard Ethernet Network Interface
et0 Defined IEEE 802.3 Ethernet Network Interface
et1 Defined IEEE 802.3 Ethernet Network Interface
lo0 Available Loopback Network Interface
__ 8. en0 should be configured on all four AIX partitions with an IP address valid for your
lab environment (step __ a., on page 18). Verify that the classroom workstations can
ping each other using en0.
For example, if you had five LPARs at 9.47.88.171, 9.47.88.172, 9.47.88.173,
9.47.88.174 and 9.47.88.175, you could use a for loop on each AIX LPAR:
# for i in 171 172 173 174 175
do
ping -c1 9.47.88.$i
done
__ 9. Configure en1 on all four LPARs with the following addresses and verify that all four
LPARs can ping each other using the en1 interfaces:
__ a. rte:
# ifconfig en1 10.0.1.4 netmask 255.255.255.0
__ b. srv:
# ifconfig en1 10.0.1.3 netmask 255.255.255.0
LSG __ c. sys2:
# ifconfig en1 10.0.1.2 netmask 255.255.255.0
__ d. sys1:
# ifconfig en1 10.0.1.1 netmask 255.255.255.0
__ e. All four LPARs
# for i in 1 2 3 4
do
ping -c1 10.0.1.$i
done
__ 10. Configure en2 on the rte partitions with the following addresses and verify that they
can ping each other using the en2 interface and the second SEA on the VIOS
partition.
This example assumes you have four lab sets and thus four rte partitions, adjust for
the actual number of lab sets you have:
__ a. On the first rte partition:
# ifconfig en2 10.0.100.1 netmask 255.255.255.0
__ b. On the second rte partition:
# ifconfig en2 10.0.100.2 netmask 255.255.255.0
__ c. On the third rte partition:
# ifconfig en2 10.0.100.3 netmask 255.255.255.0
__ d. On the fourth rte partition:
# ifconfig en2 10.0.100.4 netmask 255.255.255.0
__ e. On each rte partition :
# for i in 1 2 3 4
do
ping -c1 10.0.100.$i
done
__ 11. IMPORTANT: Please perform this step.
Unconfigure all Ethernet interfaces, delete their definitions in ODM and rediscover
the interfaces using cfgmgr.
On each AIX partition (rte, srv, sys2 and sys1):
# for i in 1 2 3
do
ifconfig en$i detach
rmdev -dl en$i
done
# cfgmgr
__ 12. IMPORTANT: Please perform this step:
Clear the default gateway on all AIX systems.
On each AIX partition (rte, srv, sys2 and sys1):
First you need to get the current default route, if there is one:
# netstat -rn|grep default
default 9.47.88.1 UG 0 0 en0 - -
If there is no default route, you are done with this step. If there is a default route, use
lsattr to gather the route definition from the ODM:
# lsattr -El inet0 -a route
route net,-hopcount,0,,0,9.47.88.1 Route True
Then use the output from the lsattr command as arguments for the chdev
command to remove the route:
# chdev -l inet0 -a delroute=net,-hopcount,0,,0,9.47.88.1
inet0 changed
Finally verify that the default route is removed:
# netstat -rn
__ 13. This concludes the configuration and verification of the AIX partitions.
Instructor information
The instructor for the course must be provided with the following information:
IP address, netmask and hostname information for the HMC and for the AIX and VIOS
partitions on each p5 system
Gateway IP address for the p5 systems
DNS server IP address and domain name for the p5 systems (if DNS is in use)
Location of the WebSM client on the classroom systems. (and any other classroom
system software)
Passwords that are configured for:
- hscroot userid on the HMC
(suggest abc1234)
- padmin user for the Virtual I/O Server partitions
(If using the mksysb_q1307_vios mksysb, the password is abc123)
- root user on the AIX partitions
(If using the mksysb_534_q1307 mksysb, the password is q1307)
- Userid and password to be used for the classroom workstations
backpg
Back page