Red Hat Red Hat Certifications EX200 Questions & Answers
Question 11:
Your System is going to use as a Router for two networks. One Network is 192.168.0.0/24 and Another Network is 192.168.1.0/24. Both network's IP address has assigned. How will you forward the packets from one network to another network?
Correct Answer: Check the anser in explanation.
echo "1" >/proc/sys/net/ipv4/ip_forward
vi /etc/sysctl.conf
net.ipv4.ip_forward = 1 If you want to use the Linux System as a Router to make communication between different networks, you need enable the IP forwarding. To enable on running session just set value 1 to /proc/sys/net/ipv4/ip_forward. As well as automatically turn on the IP forwarding features on next boot set on /etc/sysctl.conf file.
Question 12:
Configure your Host Name, IP Address, Gateway and DNS. Host name: station.domain40.example.com /etc/sysconfig/network hostname=abc.com hostname abc.com IP Address:172.24.40.40/24 Gateway172.24.40.1 DNS:172.24.40.1
Correct Answer: Check the anser in explanation.
# cd /etc/syscofig/network-scripts/ # ls # vim ifcfg-eth0 (Configure IP Address, Gateway and DNS) IPADDR=172.24.40.40 GATEWAY=172.24.40.1 DNS1=172.24.40.1 # vim /etc/sysconfig/network (Configure Host Name) HOSTNAME= station.domain40.example.com OR Graphical Interfaces: System->Preference->Network Connections (Configure IP Address, Gateway and DNS) Vim /etc/sysconfig/network (Configure Host Name)
Question 13:
We are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is mount on /data. Now you required more space on /data but you already added all disks belong to physical volume. You saw that you have unallocated space around 5 GB on your harddisk. Increase the size of lvtestvolume by 5GB.
Correct Answer: Check the anser in explanation.
Create a partition having size 5 GB and change the syste id '8e'.
use partprobe command
pvcreate /dev/hda9 Suppose your partition number is hda9.
vgextend test0 /dev/hda9 vgextend command add the physical disk on volume group.
lvextend -L+5120M /dev/test0/lvtestvolume
verify using lvdisplay /dev/test0/lvtestvolume.
Question 14:
Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally.
Correct Answer: Check the anser in explanation.
# chkconfig autofs on # cd /etc/ # vim /etc/auto.master /rhome /etc/auto.ldap # cp auto.misc auto.ldap # vim auto.ladp ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40 * -rw,soft,intr 172.16.40.10:/rhome/and # service autofs stop # server autofs start # showmount -e 172.24.40.10 # su - ladpuser40
Question 15:
User mary must configure a task.
Requirement: The local time at 14:23 every day echo "Hello World.".
Correct Answer: Check the anser in explanation.
crontab -u mary -e
23 14 * * * echo "Hello World."
Question 16:
YUM repository has been provided at http://server.domain11.example.com/pub/x86_64/Server. Configure your system to use this location as a default repository.
Correct Answer: Check the anser in explanation.
vim/etc/yum.repos/base.repo [base] name=base baseurl= http://server.domain11.example.com/pub/x86_64/Server gpgcheck=0 enable=1 Save and Exit Use yum list for validation, the configuration is correct if list the package information. If the Yum configuration is not correct then maybe cannot answer the following questions.
Question 17:
Download the document from ftp://instructor.example.com/pub/testfile, find all lines containing [abcde] and redirect to /MNT/answer document, then rearrange the order according the original content.
Correct Answer: Check the anser in explanation.
Download the file to /tmp first grep [abcde] /tmp/testfile > /mnt/answer
Question 18:
Who ever creates the files/directories on a data group owner should automatically be in the same group owner as data.
Correct Answer: Check the anser in explanation.
1.
chmod g+s /data
2.
Verify using: ls -ld /data Permission should be like this: drwxrws--- 2 root sysadmin 4096 Mar 16 18:08 /data If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory. To set the SGID bit: chmod g+s directory To Remove the SGID bit: chmod g-s directory
Question 19:
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
Correct Answer: Check the anser in explanation.
# fdisk /dev/sda p (check Partition table) n (create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions) Enter +2G t 8 I
W partx -a /dev/sda partprobe mkswap /dev/sda8 Copy UUID swapon -a vim /etc/fstab UUID=XXXXX swap swap defaults 0 0 (swapon -s)
Question 20:
Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This logical volume has been mounted in advance.)
Correct Answer: Check the anser in explanation.
# vgdisplay (Check the capacity of vg, if the capacity is not enough, need to create pv , vgextend , lvextend) # lvdisplay (Check lv) # lvextend -L +110M /dev/vg2/lv2 # resize2fs /dev/vg2/lv2 mount -a (Verify)
(Decrease lvm) # umount /media # fsck -f /dev/vg2/lv2 # resize2fs -f /dev/vg2/lv2 100M # lvreduce -L 100M /dev/vg2/lv2 # mount -a # lvdisplay (Verify) OR # e2fsck -f /dev/vg1/lvm02 # resize2fs -f /dev/vg1/lvm02 # mount /dev/vg1/lvm01 /mnt # lvreduce -L 1G -n /dev/vg1/lvm02 # lvdisplay (Verify)
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Red Hat exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your EX200 exam preparations and Red Hat certification application, do not hesitate to visit our Vcedump.com to find your solutions here.