ARP And The Dynamic Host Configuration Protocol
Define ARP – one sentence summary is sufficient
ARP is an acronym for Address Resolution Protocol which is a network layer protocol used to convert or map IP address into physical address like MAC address.
Explain the difference between network and machine addresses
A network address is a unique address which is used as identifier for a node/computer on a network which is internet or intranet. IP address is one of the best known example of network address.
Machine address is unique identifier for a host which is also known as Host number. Machine address …show more content…
As name suggests it is used to dynamically assigning the IP address to network machines .So, we don’t need to assign IP manually. DHCP protocol is used by networking equipment’s. e.g. routers.
How DHCP works:-
Dynamic IP address will be generated and assigned from pool of network. It assigns that IP address which are expired. This is done using DHCP server. The high level working of DHCP has mentioned below:
a) The network which is connected to your machine, request for IP address to DHCP server.
b) On request, DHCP server allocates an IP address to machine. Here, machine is acting as DHCP client.
c) Once the machine gets IP address, then machine responds back to server that it has verified and accepted the IP address.
d) Then DHCP server updates network server with IP address and required configurations for machine.
e) Finally, DHCP server sends acknowledgement to client that it has given IP address for certain amount of time. …show more content…
The following command can be added in crontab to add an entry of our script in CRON to run once a day 12:00 pm
00 12 * * * . ~/.profile ;~/script_Q2.sh 1>~/script_Q2_cron.log 2>~/script_Q2_cron.err
# 00 12 -- indicates that script_Q2.sh will be executed on 12:00 pm
# * -- on 3rd place indicates that script_Q2.sh will be executed on every month
# * -- on 4th place indicates that script_Q2.sh will be executed on every day of every month
# * -- on 5th place indicates that script_Q2.sh will be executed on every day of every week ( sunday , monday and so on ......)
# . ~/.profile -- to load the user specific environment
# ~/script_Q2.sh -- to execute our script
# 1>~/script_Q2_cron.log -- to log STANDARD OUTPUT
# 2>~/script_Q2_cron.err -- to log STANDARD ERROR
The config file as an input to be read by the script is defined as: