RHCSA ( Red Hat Certified System Administrator ) Exam starting part

LAN Network details.

IP Address      192.168.91.11 .
Subnet mask    255.255.0.0 .
Gateway         192.168.1.200 .
DNS1               192.168.1.1 .
DNS2               1.186.47.2 .
hostname         localhost.localdomain  .
Root password  redhat .

Above details mentioned in exam paper . first read that detail carefully that details depends on there network . I mentioned here my network details but in exam these details is different.

Part -1.

Break the password of provided virtual machine .

1.After getting kernel mode . press quickly ESC button .
   and read all the things mentioned there .       
2.press   a . (a for append ).
3. < rhgh quit 1 . (this line add space and 1).
4.[root@localhost ~]# passwd root
   Changing password for user root.
   New password:
   BAD PASSWORD: it is based on a dictionary word
   Retype new password:
   passwd: all authentication tokens updated successfully.
 5.[root@localhost ~]# init 5 .

Part -2.

Flash the IP tables .
1. [root@localhost ~]# iptables -F
2. [root@localhost ~]# service iptables save
    iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
3. [root@localhost ~]# service iptables restart
    iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
    iptables: Flushing firewall rules:                         [  OK  ]
    iptables: Unloading modules:                               [  OK  ]
    iptables: Applying firewall rules:                         [  OK  ]
4. [root@localhost ~]# iptables -L
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination        

    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination        

    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination



Part -3.
Setup the network .
1.[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 .
   DEVICE=eth0
   HWADDR=00:1e:67:7a:e8:74
   TYPE=Ethernet
   UUID=a82744ed-672f-4c3f-83f4-7b879e8d81c4
   ONBOOT=yes
   BOOTPROTO=static
   IPADDR=192.168.91.11
   NETMASK=255.255.0.0
  GATEWAY=192.168.1.200
  DNS1=192.168.1.1
  DNS2=1.186.47.2
2.[root@localhost ~]# service network start .
3.[root@localhost ~]# service network restart

service start successfully means network setup is correct.


Part-4 .


To check Network .

1. [root@localhost ~]# cat /etc/resolv.conf

   nameserver 1.186.47.2
   nameserver 192.168.1.1
2.[root@localhost ~]# hostname
   localhost.localdomain

Part-5 .

Create an repo file .
1. [root@localhost ~]# cd /etc/yum.repos.d/

2 .[root@localhost yum.repos.d]# vi server.repo
    [server]
    name=server.repo
    baseurl=http://serverIP/pub/rhel6/dvd (this path is mentioned in exam sheet.)
    gpgcheck=0
    enabled=1
[root@localhost yum.repos.d]# service netork restart
[root@localhost yum.repos.d]# yum install vsftpd .

After completing these five step . then you can start your exam.

No comments:

Post a Comment