EX200 Korean 無料問題集「RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version)」
두 개의 다른 네트워크, 192.168.0.0/24와 192.168.1.0/24가 있습니다. 귀하의 시스템은 192.168.0.0/24 네트워크에 있습니다. RHEL6 설치 시스템 하나는 라우터로 사용할 것입니다. 모든 필수 구성은 Linux 서버에서 이미 완료되었습니다. 192.168.0.254와 192.168.1.254 IP 주소가 해당 서버에 할당됩니다. 192.168.1.0/24 네트워크의 호스트에 성공적으로 ping을 보내려면 어떻게 해야 합니까?
正解:
vi /etc/sysconfig/network GATEWAY=192.168.0.254
OR
vi /etc/sysconf/network-scripts/ifcfg-eth0 DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.?
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
service network restart
Gateway defines the way to exit the packets. According to question System working as a router for two networks have IP Address 192.168.0.254 and 192.168.1.254.
OR
vi /etc/sysconf/network-scripts/ifcfg-eth0 DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.?
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
service network restart
Gateway defines the way to exit the packets. According to question System working as a router for two networks have IP Address 192.168.0.254 and 192.168.1.254.
커널을 업그레이드하고 기본적으로 새 커널을 시작합니다. 이 주소에서 커널을 다운로드하세요:
ftp://server1.domain10.example.com/pub/update/new.kernel
ftp://server1.domain10.example.com/pub/update/new.kernel
正解:
Download the new kernel file and then install it.
[root@desktop8 Desktop]# ls
kernel-2.6.32-71.7.1.el6.x86_64.rpm
kernel-firmware-2.6.32-71.7.1.el6.noarch.rpm
[root@desktop8 Desktop]# rpm -ivh kernel-*
Preparing... ###########################################
[100%]
1:kernel-firmware
########################################### [ 50%]
2:kernel
########################################### [100%]
Verify the grub.conf file, whether use the new kernel as the default boot. [root@desktop8 Desktop]# cat /boot/grub/grub.conf default=0 title Red Hat Enterprise Linux Server (2.6.32-71.7.1.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-71.7.1.el6.x86_64 ro root=/dev/mapper/vol0-root rd_LVM_LV=vol0/root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet initrd /initramfs-2.6.32-71.7.1.el6.x86_64.img
[root@desktop8 Desktop]# ls
kernel-2.6.32-71.7.1.el6.x86_64.rpm
kernel-firmware-2.6.32-71.7.1.el6.noarch.rpm
[root@desktop8 Desktop]# rpm -ivh kernel-*
Preparing... ###########################################
[100%]
1:kernel-firmware
########################################### [ 50%]
2:kernel
########################################### [100%]
Verify the grub.conf file, whether use the new kernel as the default boot. [root@desktop8 Desktop]# cat /boot/grub/grub.conf default=0 title Red Hat Enterprise Linux Server (2.6.32-71.7.1.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-71.7.1.el6.x86_64 ro root=/dev/mapper/vol0-root rd_LVM_LV=vol0/root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet initrd /initramfs-2.6.32-71.7.1.el6.x86_64.img
1부(Node1 서버)
작업 17 [Linux 파일 시스템 접근]
사용자 "alex"가 소유한 모든 파일을 찾아 출력을 /home/alex/files로 리디렉션합니다.
작업 17 [Linux 파일 시스템 접근]
사용자 "alex"가 소유한 모든 파일을 찾아 출력을 /home/alex/files로 리디렉션합니다.
正解:
* root@node1 ~]# find / -user alex -type f > /home/alex/files
당신은 새로운 시스템 관리자이고 지금부터 시스템을 관리하게 될 것이고 당신의 주요 업무는 네트워크 모니터링, 백업 및 복원입니다. 하지만 루트 비밀번호를 모릅니다. 루트 비밀번호를 redhat으로 변경하고 기본 Runlevel로 로그인합니다.
正解:
When you Boot the System, it starts on default Runlevel specified in /etc/inittab:
Id:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don't know the root's password. To change the root password you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.
1. Restart the System.
2. You will get the boot loader GRUB screen.
3. Press a and type 1 or s for single mode ro root=LABEL=/ rhgb queit s
4. System will boot on Single User mode.
5. Use passwd command to change.
6. Press ctrl+d
Id:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don't know the root's password. To change the root password you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.
1. Restart the System.
2. You will get the boot loader GRUB screen.
3. Press a and type 1 or s for single mode ro root=LABEL=/ rhgb queit s
4. System will boot on Single User mode.
5. Use passwd command to change.
6. Press ctrl+d
다음과 같이 LDAP 사용자의 홈 디렉토리를 자동으로 마운트하도록 autofs를 구성합니다.
host.domain11.example.com은 /home을 시스템으로 NFS로 내보냅니다.
이 파일 시스템은 사용자 ldapuser11에 대한 미리 구성된 홈 디렉토리를 포함합니다. ldapuser11의 홈 디렉토리는 host.domain11.example.com /rhome/ldapuser11입니다. ldapuser11의 홈 디렉토리는 /rhome/ldapuser11로 로컬로 자동 마운트되어야 합니다. 홈 디렉토리는 해당 사용자가 쓸 수 있어야 합니다. ldapuser11의 비밀번호는 'password'입니다.
host.domain11.example.com은 /home을 시스템으로 NFS로 내보냅니다.
이 파일 시스템은 사용자 ldapuser11에 대한 미리 구성된 홈 디렉토리를 포함합니다. ldapuser11의 홈 디렉토리는 host.domain11.example.com /rhome/ldapuser11입니다. ldapuser11의 홈 디렉토리는 /rhome/ldapuser11로 로컬로 자동 마운트되어야 합니다. 홈 디렉토리는 해당 사용자가 쓸 수 있어야 합니다. ldapuser11의 비밀번호는 'password'입니다.
正解:
vim /etc/auto.master /rhome /etc/auto.misc
wq!
# vim /etc/auto.misc
ldapuser11 --rw,sync host.domain11.example.com:/rhome/ldpauser11 :wq!
#service autofs restart
service autofs reload
chkconfig autofs on
su -ldapuser11
Login ldapuser with home directory
# exit
wq!
# vim /etc/auto.misc
ldapuser11 --rw,sync host.domain11.example.com:/rhome/ldpauser11 :wq!
#service autofs restart
service autofs reload
chkconfig autofs on
su -ldapuser11
Login ldapuser with home directory
# exit
네트워크 설정 구성
다음 네트워크 설정으로 node1을 구성하세요.
호스트 이름: node1.domain250.example.com
IP 주소: 172.25.250.100
서브넷 마스크: 255.255.255.0
게이트웨이: 172.25.250.254
다음 네트워크 설정으로 node1을 구성하세요.
호스트 이름: node1.domain250.example.com
IP 주소: 172.25.250.100
서브넷 마스크: 255.255.255.0
게이트웨이: 172.25.250.254
正解:
# Connect to servera via console for IP modification, then check using the ip addr command.
# After confirming no issues, SSH to servera for hostname modification. This way, you can copy the hostname to avoid typos.
[root@clear ~] nmcli con show
[root@clear ~] nmcli con mod 'network configuration name' ipv4.method manual ipv4.addresses 172.25.0.25/24 ipv4.gateway 172.25.0.254 ipv4.dns 172.25.0.254 autoconnect yes
[root@clear ~] nmcli con up 'network configuration name'
[root@clear ~] ip a
[root@clear ~] ssh [email protected]
[root@clear ~] hostnamectl set-hostname red.lab0.example.com
# Verification
[root@node1 ~] ip a //Check if the IP is correct
[root@node1 ~] hostname //Check if the hostname is correct
# After confirming no issues, SSH to servera for hostname modification. This way, you can copy the hostname to avoid typos.
[root@clear ~] nmcli con show
[root@clear ~] nmcli con mod 'network configuration name' ipv4.method manual ipv4.addresses 172.25.0.25/24 ipv4.gateway 172.25.0.254 ipv4.dns 172.25.0.254 autoconnect yes
[root@clear ~] nmcli con up 'network configuration name'
[root@clear ~] ip a
[root@clear ~] ssh [email protected]
[root@clear ~] hostnamectl set-hostname red.lab0.example.com
# Verification
[root@node1 ~] ip a //Check if the IP is correct
[root@node1 ~] hostname //Check if the hostname is correct
ira가 소유한 모든 파일을 찾아 /root/findresults 디렉토리로 복사합니다.
正解:
# find / -user ira > /root/findresults (if /root/findfiles is a file)
# mkdir -p /root/findresults
# find / -user ira -exec cp -a {} /root/findresults\; [ if /root/findfiles is a directory] ls /root/findresults
# mkdir -p /root/findresults
# find / -user ira -exec cp -a {} /root/findresults\; [ if /root/findfiles is a directory] ls /root/findresults
사용자 인증은 192.168.0.254의 ldap 도메인에서 제공되었습니다. ldapuser를 얻으려면 다음 요구 사항에 따라야 합니다.
-LdapuserX는 시스템에 로그인할 수 있어야 하며, X는 호스트 이름 번호입니다. 하지만 ldapuser의 홈 디렉토리는 autofs 서버에서 자동으로 마운트할 때까지 마운트할 수 없습니다.
- 모든 LDAP 사용자의 비밀번호는 "password"입니다.
-LdapuserX는 시스템에 로그인할 수 있어야 하며, X는 호스트 이름 번호입니다. 하지만 ldapuser의 홈 디렉토리는 autofs 서버에서 자동으로 마운트할 때까지 마운트할 수 없습니다.
- 모든 LDAP 사용자의 비밀번호는 "password"입니다.
正解:
system-config-authentication &


공유 디렉토리를 만듭니다.
공유 디렉토리 /home/admins를 만들고 다음과 같은 특징을 갖도록 합니다.
/home/admins는 그룹 adminuser에 속합니다.
이 디렉토리는 그룹 adminuser의 멤버가 읽고 쓸 수 있습니다. /home/admin에서 생성된 모든 파일은 자동으로 adminuser로 설정됩니다.
공유 디렉토리 /home/admins를 만들고 다음과 같은 특징을 갖도록 합니다.
/home/admins는 그룹 adminuser에 속합니다.
이 디렉토리는 그룹 adminuser의 멤버가 읽고 쓸 수 있습니다. /home/admin에서 생성된 모든 파일은 자동으로 adminuser로 설정됩니다.
正解:
mkdir /home/admins
chgrp -R adminuser /home/admins
chmodg+w /home/admins
chmodg+s /home/admins
chgrp -R adminuser /home/admins
chmodg+w /home/admins
chmodg+s /home/admins
ftp://instructor.example.com/pub/updates에서 커널을 업데이트합니다.
다음 요구 사항에 따라:
업데이트된 커널은 시스템을 재부팅한 후에도 기본 커널로 존재해야 합니다.
원래 커널은 여전히 존재하며 시스템에서 사용할 수 있습니다.
다음 요구 사항에 따라:
업데이트된 커널은 시스템을 재부팅한 후에도 기본 커널로 존재해야 합니다.
원래 커널은 여전히 존재하며 시스템에서 사용할 수 있습니다.
正解:
rpm -ivh kernel-firm...
rpm -ivh kernel...
rpm -ivh kernel...