★ 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


Q111. CORRECT TEXT

There are two different networks, 192.168.0.0/24 and 192.168.1.0/24. Your System is in 192.168.0.0/24 Network. One RHEL 4 Installed System is going to use as a Router. All required configuration is already done on Linux Server. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on that Server. How will make successfully ping to 192.168.1.0/24 Network's Host?

Answer and Explanation:

1. 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

2. service network restart


Q112. CORRECT TEXT

Make Successfully Resolve to server1.example.com where DNS Server is 192.168.0.254.

Answer and Explanation: 

1. vi /etc/resolv.conf

Write : nameserver 192.168.0.254


Q113. CORRECT TEXT

Create the partition having 100MB size and mount it on /mnt/neo

Answer and Explanation:

1. Use fdisk /dev/hda à To create new partition.

2. Type n à For New partitions

3. It will ask for Logical or Primary Partitions. Press l for logical.

4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.

5. Type the Size: +100M à You can Specify either Last cylinder of Size here.

6. Press P to verify the partitions lists and remember the partitions name.

7. Press w to write on partitions table.

8. Either Reboot or use partprobe command.

9. Use mkfs -t ext3 /dev/hda? Where ? is your partition number

10. Or

11. mke2fs -j /dev/hda? à To create ext3 filesystem.

12. mkdir /mnt/neo

13. vi /etc/fstab

14. Write:

15. /dev/hda? /mnt/neo ext3 defaults 1 2

16. Verify by mounting on current Sessions also:

17. mount /dev/hda? /mnt/neo


Q114. CORRECT TEXT

Create the group named sysadmin.

Answer and Explanation:

1. groupadd sysadmin

groupadd command is used to create the group and all group information is stored in /etc/group file.


Q115. CORRECT TEXT

Set the Hostname station?.example.com where ? is your Host IP Address.

Answer and Explanation:

1. hostname station?.example.com à This will set the host name only for current session. To set hostname permanently.

2. vi /etc/sysconfig/network

HOSTNAME=station?.example.com

3. service network restart


Q116. CORRECT TEXT

One Package named zsh is dump on ftp://server1.example.com under pub directory. Install the package from ftp server.

Answer and Explanation:

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

2. Package will install

rpm command is used to install, update and remove the package, -i means install, -v means verbose and -h means display the hash mark.


Q117. CORRECT TEXT

/storage directory on linux server should make available on windows system that jeff user should able to access on read only mode within example.com domain.

Answer and Explanation:

1. vi /etc/samba/smb.conf

[global]

netbios name=station?

workgroup=station?

security=user

smb passwd file=/etc/samba/smbpasswd

encrypt passwords=yes

hosts allow= .example.com

[data]

path=/data

public=no

writable=no

browsable=yes

2. smbpasswd -a jeff

3. service smb start

4. chkconfig smb on

/etc/samba/smb.conf. There are some pre-defined section, i. global à use to define the global options, ii. Printers à use to share the printers, iii. homes à use the share the user's home directory.

Security=user à validation by samba username and password. May be there are other users also.

To allow certain share to certain user we should use valid users option.

smbpasswd à Helps to change user's smb password. -a option specifies that the username following should be added to the local smbpasswd file.


Q118. CORRECT TEXT

You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and Restore. But you don't know the root password.

Change the root password to redhat and login in default Runlevel.

Answer and Explanation:

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


Q119. CORRECT TEXT

Configure the send mail server for your local LAN. As well as the mail of user john should get by the jane user.

Answer and Explanation:

Here your Local LAN means your domain named example.com.

1. vi /etc/mail/local-host-names

example.com

2. vi /etc/mail/sendmail.mc

dnl # DEAMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA`)dnl

3. m4 /etc/mail/sendmail.mc >/etc/mail/sendmail.cf

4. vi /etc/mail/access

192.168.0 RELAY

5. service sendmail start | restart

6. chkconfig sendmail on

/etc/mail/local-host-names file contains the aliases to hostname. Mail server program reads the

/etc/mail/sendmail.cf. To change the configuration on mail server, we should edit the

/etc/mail/sendmail.mc file and should generate the sendmail.cf using m4 command.

By default sendmail server allows to connect to local host only. So we should edit the

/etc/mail/sendmail.mc file to allow connect to other hosts.

By default sendmail server will not forward mail. we should specify on /etc/mail/access to relay or to block mail coming from domain or network or individual email address.

7. vi /etc/aliases

john: jane

8. newaliases

We can redirect the mail of one user to another user using /etc/aliases file. In example all mail of john goes to jane user.


Q120. CORRECT TEXT

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.

Answer and Explanation:.

1. Create a partition having size 5 GB and change the syste id '8e'.

2. use partprobe command

3. pvcreate /dev/hda9 à Suppose your partition number is hda9.

4. vgextend test0 /dev/hda9 à vgextend command add the physical disk on volume group.

5. lvextend -L+5120M /dev/test0/lvtestvolume

6. verify using lvdisplay /dev/test0/lvtestvolume.