★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW RH302 Exam Dumps (PDF & VCE):
Available on: https://www.certleader.com/RH302-dumps.html


Act now and download your Red Hat RH302 test today! Do not waste time for the worthless Red Hat RH302 tutorials. Download Renewal Red Hat Red Hat Certified Engineer on Redhat Enterprise Linux 5 (Labs) exam with real questions and answers and begin to learn Red Hat RH302 with a classic professional.

2021 Mar RH302 free practice test

Q141. CORRECT TEXT

Your LAN is 192.168.0.0/24. Block the telnet connection from outside the LAN.

Answer and Explanation:

1. vi /etc/hosts.deny

in.telnetd:ALL EXCEPT 192.168.0.

We can secure the services using tcp_wrappers. There are main two files, /etc/hosts.allow and /etc/hosts.deny.

There will be three stage access checking

-Is access explicitly permitted? Means permitted from /etc/hosts.allow?

- Otherwise, Is access explicitly denied? Means denied from /etc/hosts.deny?

- Otherwise, by default permit access if neither condition matched.

To deny the services we can configure /etc/hosts.deny file using ALL and EXCEPT operation.

Pattern of /etc/hosts.allow and /etc/hosts.deny file is:

Demon_list:client_list:options

In Client list can be either domain name or IP address. Here in.telnetd is the telnet server program name.


Q142. CORRECT TEXT

One Logical Volume named /dev/test0/testvolume1 is created. The initial Size of that disk is 100MB now you required more 200MB. Increase the size of Logical Volume, size should be increase on online.

Answer and Explanation:

1. lvextend -L+200M /dev/test0/testvolume1

Use lvdisplay /dev/test0/testvolume1)

2. ext2online -d /dev/test0/testvolume1

lvextend command is used the increase the size of Logical Volume. Other command lvresize command also here to resize. And to bring increased size on online we use the ext2online command.


Q143. CORRECT TEXT

Share /data directory using NFS only to example.com members. These hosts should get read and write access on shared directory.

Answer and Explanation:

1. vi /etc/exports

/data *.example.com(rw,sync)

Check the SELinux Context, should be like this:

-rw-r--r-- root root system_u:object_r:exports_t /etc/exports

Use the restorecon -R /etc command to restore the selinux context of the file.

2. service nfs start | restart

3. service portmap start | restart

4. chkconfig nfs on

5. chkconfig portmap on

In Linux to share the data we use the /etc/exports file. Pattern is:

Path client(permission)

Shared Directory Path, Client can be single host or domain name or ip address. Permission should specify without space with client lists in parentheses. NFS is RPC service so portmapper service should restart after starting the nfs service.


Q144. CORRECT TEXT

Successfully resolv to server1.example.com where your DNS server is 172.24.254.254

Answer and Explanation:

1. vi /etc/resolv.conf

nameserver 172.24.254.254

2. host server1.example.com


Q145. CORRECT TEXT

One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory and your FTP server is 192.168.0.254. Install the package zsh.

Answer and Explanation:

1. rpm -ivh ftp://server1/example.com/pub/updates/zsh-*

or

1. Login to ftp server : ftp ftp://server1.example.com using anonymous user.

2. Change the directory: cd pub and cd updates

3. Download the package: mget zsh-*

4. Quit from the ftp prompt : bye

5. Install the package

6. rpm -ivh zsh-*

7. Verify either package is installed or not : rpm -q zsh


Updated RH302 practice exam:

Q146. CORRECT TEXT

There are more then 400 Computers in your Office. You are appointed as a System Administrator.

But you don't have Router. So, you are going to use your One Linux Server as a Router. How will you enable IP packets forward?

Answer and Explanation:

1. /proc is the virtual filesystem, we use /proc to modify the kernel parameters at running time.

# echo "1" >/proc/sys/net/ipv4/ip_forward

2. /etc/sysctl.conf àwhen System Reboot on next time, /etc/rc.d/rc.sysinit scripts reads the file

/etc/sysctl.conf. To enable the IP forwarding on next reboot also you need to set the parameter.

net.ipv4.ip_forward=1

Here 0 means disable, 1 means enable.


Q147. CORRECT TEXT

One Logical Volume is created named as myvol under vo volume group and is mounted. The Initial Size of that Logical Volume is 400MB. Make successfully that the size of Logical Volume 200MB without losing any data. The size of logical volume 200MB to 210MB will be acceptable.

Answer and Explanation:

1. First check the size of Logical Volume: lvdisplay /dev/vo/myvol

2. Make sure that the filesystem is in a consistent state before reducing:

# fsck -f /dev/vo/myvol

3. Now reduce the filesystem by 200MB.

# resize2fs /dev/vo/myvol 200M

4. It is now possible to reduce the logical volume.

#lvreduce /dev/vo/myvol -L 200M

4. Verify the Size of Logical Volume: lvdisplay /dev/vo/myvol

5. Verify that the size comes in online or not: df -h


Q148. CORRECT TEXT

You Completely Install the Redhat Enterprise Linux 5 on your System. While start the system, it's giving error to load X window System. How will you fix that problem and make boot successfully run X Window System.

Answer and Explanation:

Think while Problems occurred on booting System on Runlevel 5 (X Window)./tmp is full or notQuota is already reachedVideo card or resolution or monitor is misconfigured.xfs service is running or not.

Do These:

1. df -h /tmp à /tmp is full remove the unnecessary filequota username à if quota is already reached remove unnecessary file from home directory.Boot the System in runlevel 3.à you can pass the Kernel Argument from boot loader.Use command: system-config-display à It will display a dialog to configure the monitor, Video card, resolution etc.Set the Default Runlevel 5 in /etc/inittab id:5:initdefault:

6. Reboot the System you will get the GUI login Screen.


Q149. CORRECT TEXT

Port 8080

Configure the squid server to allow the Local Domain and deny to cracker.org domain.

Answer and Explanation:

At exam Lab example.com domain resides on 192.168.0.0/24 Network and cracker.org resides on 192.168.1.0/24 Network.

1. vi /etc/squid/squid.conf

#detault:

http_port 8080

#Recommended minimum configuration:

# Near the src acl src section

acl allownet src 192.168.0.0/255.255.255.0

acl denynet src 192.168.1.0/255.255.255.0

#Default:

# http_access deny all

#Under Here

http_access allow allownet

http_access deny denynet

2. service squid start

3. chkconfig squid on

squid is a proxy caching server, using squid we can share the internet, block the internet, to certain network. First we should define the port for squid, the standard port for squid is 3128. We can run squid on different port by specifying http_port portnumber.


Q150. CORRECT TEXT

There is a FTP server 192.168.0.254 and all required packages are dumped in /var/ftp/pub of that server and anonymous login is enabled. Install the Redhat Enterprise Linux 5 as an anonymous by creating following partitions:

/ 1000

/boot 200

/home 1000

/var 1000

/usr 4000

swap 2X256 (RAM SIZE)

Answer and Explanation:

Note: Examiner will provide you the Installation startup CD. And here mentioned size may vary see on the exam paper.

1. Insert the CD on CD-ROM and start the system.

2. In Boot: Prompt type linux askmethod

3. It will display the Language, keyboard selection.

4. It will ask you for the installation method.

5. Select the FTP from the list

6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use

Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.

7. It will ask for the FTP site name and Redhat Enterprise Linux Directory.

Specify the FTP Server: 192.168.0.254

Directory: pub à Because anonymous login on /var/ftp.

8. After Connecting to the FTP Server Installation will start. Go up to the partition screen by selecting the different Options.

9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question

10. Then select the MBR Options, time zone and go upto package selections.

It is another Most Important Time of installation. Due to the time limit, you should be care about the installation packages. At Exam time you these packages are enough.

X-Window System

GNOME Desktop

(these two packages are generally not required)

Administration Tools.

System Tools

Windows File Server

FTP Servers

Mail Servers

Web Servers

Network Servers

Editors

Text Based Internet

Server Configuration Tools

Printing Supports

When installation will complete, your system will reboot. Jump for another Question.