Page 117 - RHEL8 BOOK
P. 117

DHCP Client Linux

          1. Install the package by using one of the installation methods
          [root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat /RPMS/
          /mnt
          [root@comp1 ~]# cd /mnt
          [root@comp1 ~]# rpm -ivh dhclient* --force –aid

          2. Edit Network
          vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
          DEVICE=enp0s3
          BOOTPROTO=dhcp
          TYPE=Ethernet
          ONBOOT=yes

          3. Restart the Network service
          [root@comp1 ~]# systemctl restart network

          4. To get IP address from DHCP server
          [root@comp1~]# dhclient
          or
          [root@comp1 ~]# netconfig
          Check the box use dynamic IP configuration

                                                 DHCP Client Windows

          1. Configuring DHCP Client

            Select My Network Places.
            Right click Properties.
            Select Local Area Connection
            Right click Properties.
            Double Click Internet Protocol (TCP/IP)
            Select Option Obtain an IP Address automatically













                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           117
   112   113   114   115   116   117   118   119   120   121   122