USD ($)
$
United States Dollar
Euro Member Countries
India Rupee

Networking Concepts and IP Addressing

Lesson 29/49 | Study Time: 20 Min

Networking and IP addressing are foundational concepts in Linux and all modern computing. They enable devices to communicate within local networks and across the global internet. An IP address gives each device a unique identifier, allowing data to be routed correctly between source and destination. 

What is an IP Address?

An IP address is a unique numerical label assigned to devices (hosts) on a network. It identifies the host and provides the location in the network topology.


Two main versions exist:


1. IPv4: 32-bit addresses often represented as four decimal octets separated by dots, e.g., 192.168.1.10.

2. IPv6: 128-bit addresses represented in hexadecimal, e.g., 2001:0db8:85a3::8a2e:0370:7334, created to address IPv4 exhaustion.

Types of IP Addresses

Networking relies on different IP address types for internal and external communication. The list below outlines these categories and their practical uses.


1. Public IP Addresses: Globally unique identifiers assigned to devices that need to communicate directly over the Internet. They are routable across the global network, allowing systems to be reachable from anywhere in the world.


2. Private IP Addresses: Belong to reserved address ranges such as 10.x.x.x and 192.168.x.x and are used within private or local networks. These addresses are not routable on the public Internet and typically require Network Address Translation (NAT) to access external networks.


3. Loopback Address: Represented as 127.0.0.1 in IPv4 or ::1 in IPv6, refers to the local host itself. It is commonly used for testing network applications and enabling inter-process communication without involving external network interfaces.

IP Address Structure

It divided into Network and Host portions, determined by the subnet mask. The subnet mask defines which part of the IP address is the network address and which part identifies the host.


Example:

For IP 192.168.1.100 with mask 255.255.255.0,

Network: 192.168.1.0

Host: 100

Common Networking Concepts

Networking is built upon foundational concepts that define how systems interact. The following list explains the most important ideas behind network communication.


1. Subnetting: Divides a large network into smaller logical segments to improve performance and security.

2. Default Gateway: The router through which devices send traffic destined for other networks.

3. DNS (Domain Name System): Translates human-readable domain names into IP addresses.

4. MAC Addresses: Unique hardware identifiers of network interfaces, different from IP addresses.

Configuring Networking in Linux

Network configuration in Linux is primarily handled through the ip command suite. The following examples show essential operations for interface and routing management.


1. View IP addresses and interfaces:

text
ip addr show


2. Assign static IP address:

text
sudo ip addr add 192.168.1.100/24 dev eth0


3. Remove IP address:

text
sudo ip addr del 192.168.1.100/24 dev eth0


4. Bring network interface up or down:

text
sudo ip link set eth0 up
sudo ip link set eth0 down


5. View routing table:

text
ip route show


6. Add routing entry:

text
sudo ip route add default via 192.168.1.1

Troubleshooting Network Connectivity


1. Ping: Test reachability of a host.

text
ping google.com
ping -c 4 192.168.1.1


2. Traceroute: Trace the network path packets take to a destination.

text
traceroute google.com


3. Netstat / ss: Display active connections and listening services.

Samuel Wilson

Samuel Wilson

Product Designer
Profile

Class Sessions

1- What is Linux and Operating System Concepts 2- Linux History and Evolution 3- Linux Distributions and Their Purposes 4- Open Source Software and Licensing 5- Graphical User Interface (GUI) and Desktop Environments 6- Terminal Access and Command-Line Fundamentals 7- Getting Help and Command Documentation 8- File System Hierarchy and Directory Structure 9- Navigating Directories and Listing Contents 10- Creating, Copying, and Moving Files and Directories 11- Deleting Files and Directories 12- Symbolic and Hard Links 13- Understanding File Permissions Model 14- Modifying Permissions and Ownership 15- User and Group Management 16- Sudo and Privilege Escalation 17- Text Searching and Pattern Matching 18- Text Processing and Stream Editing 19- Compressing and Archiving Files 20- Text Editing and File Creation 21- Package Management Systems Overview 22- Installing and Updating Software with APT 23- Installing and Updating Software with YUM/DNF 24- Managing Software from Non-Repository Sources 25- Understanding Processes and Process Management 26- Viewing Running Processes 27- Process Control and Termination 28- Task Scheduling with Cron 29- Networking Concepts and IP Addressing 30- Viewing and Configuring Network Interfaces 31- Basic Network Troubleshooting 32- Shell Script Basics 33- Variables and Data Types 34- Conditional Logic in Scripts 35- Loops and Iteration 36- Functions and Code Reuse 37- Input/Output and User Interaction 38- System Authentication and Access Control 39- File System Security 40- Software Updates and Patching 41- Basic Firewall Concepts 42- System Information and Monitoring 43- Service and Daemon Management 44- System Boot Process and Runlevels 45- System Backup and Disaster Recovery 46- Comprehensive File System Management 47- System Automation Workflows 48- Multi-Concept Troubleshooting Scenarios 49- Continued Learning Pathways

Sales Campaign

Sales Campaign

We have a sales campaign on our promoted courses and products. You can purchase 1 products at a discounted price up to 15% discount.