Network Configuration in RHEL ( RedHat Linux ) - Command line

 What is IP :-

=>IP stands for internet protocol.

=>IP is main protocol responsible for routing packets across networks, including the internet.

=>IPv4 is mostly responsible for routing packets on modern networks.

=>IPv6 will soon evolve as primary protocol used for this purpose as all the IPv4 addresses have been allocated.

 Subnet mask : -

  =>Each IP address is made up of two pieces

   1.Network portion-defines the network address-what network to route to?

    2.Host portion-defines hosts on that specific network

=>A subnet masks is  a 32-bit number that  tells the router which bits of the IP address are for the network portion and which bits for host portion

=>Subnet mask is a binary number but is also usually communicated  in dotted decimal format
=>Example-11111111.11111111.11111111.00000000
    Example is dotted decimal format-255.255.255.0

 IP address classes: - 

 Check IP : -
#ifconfig |less     or  #ip addr   or   #ifconfig

 Assign IP Address : -
Go to Ethernet card configuration directory -
# cd /etc/sysconfig/network-scripts/

 Check the Network adapter name : -
[root@localhost network-scripts]#ls

 Open Network File :-

[root@localhost network-scripts]#vi ifcfg-ens32 (it may be change in other machine)

 SET STATIC IP ADDRESS:- 
 SAVE AND EXIT :-
#wq 
 RESTART NETWORK :-
#Systemctl restart NetworkManager
Now you can check the ip.


Comments

Popular posts from this blog

How to configure Mail Server in Redhat Linux

interview Questions on User Management in Linux