RHEL9 Complete Network Management Part-1

Опубликовано: 22 Октябрь 2024
на канале: techessay
54
2

RHEL9 Complete Network Management Part-1
Our Agenda -
Understand basic concept of IPV4
How to set an Manual static IPv4 using #nmcli#nmtui#Filemetod rhel9 #ifconfig
How to set DHCP IPv4
#nmcli#nmtui#Filemetod#ifconfig
How to set Hostname
hostnamectl, uses of /etc/hosts, /etc/resolv.conf
Basic required Networking Command for Linux Admin
ip,netstat,traceroute,nslookup,route,curl,wget,tcpdump etc
IP address definition
An IP address is a unique address that identifies a device on the internet or a local network. IP stands for "Internet Protocol," which is the set of rules governing the format of data sent via the internet or local network.

In essence, IP addresses are the identifier that allows information to be sent between devices on a network: they contain location information and make devices accessible for communication. The internet needs a way to differentiate between different computers, routers, and websites. IP addresses provide a way of doing so and form an essential part of how the internet works.
Types of IP Address-
1. IPV4 -32bit address
2. IPV6-128 bit address
1.The IPv4 address is a 32-bit number that uniquely identifies a network interface on a machine. An IPv4 address is typically written in decimal digits, formatted as four 8-bit fields that are separated by periods. Each 8-bit field represents a byte of the IPv4 address. This form of representing the bytes of an IPv4 address is often referred to as the dotted-decimal format.

The bytes of the IPv4 address are further classified into two parts: the network part and the host part. The following figure shows the component parts of a typical IPv4 address, 129.144.50.56

Parts of an IPv4 Address



Diagram shows that 129.144 is the network part and 50.56 is the host part of an IPv4 address for Class B ipv4 address.
Network Part
The network part specifies the unique number that is assigned to your network. The network part also identifies the class of network that is assigned. In above Figure, the network part occupies two bytes of the IPv4 address.

Host Part
This is the part of the IPv4 address that you assign to each host. The host part uniquely identifies this machine on your network. Note that for each host on your network, the network part of the address is the same, but the host part must be different.

Subnet Number (Optional)
Local networks with large numbers of hosts are sometimes divided into subnets. If you choose to divide your network into subnets, you need to assign a subnet number for the subnet. You can maximize the efficiency of the IPv4 address space by using some of the bits from the host number part of the IPv4 address as a network identifier.



Take an example of Class C IPv4 address-
it can start from 192.0.0.0 -223.255.255.255
Subnet mask for Class C we have default subnet mask 255.255.255.0
let take an example of class C ip-
192.168.143.10/24 - Classless representation
Default subnet mask : 255.255.255.0
DEfault gateway : 192.168.143.1

For communcating two Computer Ips its required to be in same network .
WE have to use same class and same range ips in our both computers.
192.168.143.0-192.168.143.255