www2.gjp.com上的配置:
[root@gjp99 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=www2.gjp.com
[root@gjp99 ~]# hostname www2.gjp.com
[root@www2 ~]# hwclock -s
[root@www2 ~]# clock
Tue 23 Oct 2012 05:20:32 PM CST -0.018132 seconds
[root@www2 .ssh]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.2.1 www1.gjp.com www1
192.168.2.2 www2.gjp.com www2
[root@www2 ~]# ping www1.gjp.com
PING www1.gjp.com (192.168.2.1) 56(84) bytes of data.
64 bytes from www1.gjp.com (192.168.2.1): icmp_seq=1 ttl=64 time=1.11 ms
64 bytes from www1.gjp.com (192.168.2.1): icmp_seq=2 ttl=64 time=0.506 ms
名称已经能够相互解析!
[root@www2 ~]# cat /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-server]
name=Red Hat Enterprise Linux Server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-RedHat-release
[rhel-cluster]
name=Red Hat Enterprise Linux Cluster
baseurl=file:///mnt/cdrom/Cluster
enabled=1
gpgcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release
要保证光驱已连接:

[root@www2 ~]# mkdir /mnt/cdrom
[root@www2 ~]# mount /dev/cdrom /mnt/cdrom
[root@www2 ~]# yum grouplist all
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
rhel-cluster | 1.3 kB 00:00
rhel-cluster/primary | 6.5 kB 00:00
rhel-server | 1.3 kB 00:00
rhel-server/primary | 732 kB 00:00
rhel-cluster/group | 101 kB 00:00
rhel-server/group | 1.0 MB 00:00
Done
