Skip to content

Commit 0000847

Browse files
authored
Update README.md
1 parent c2f8c51 commit 0000847

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,42 @@ Each router has a **routing table** with entries like:
549549
* **Interface**: Which network interface to use.
550550
* **Metric**: Cost or preference (lower = better).
551551
552+
A **network interface** is the point of connection between a computer (or device) and a network. It can be:
553+
554+
### 🧩 Types of Network Interfaces:
555+
556+
1. **Physical Interface**:
557+
558+
* Example: Ethernet port (`eth0`, `enp0s3`) or Wi-Fi adapter (`wlan0`).
559+
* It's actual hardware that lets your device connect to a network.
560+
561+
2. **Virtual Interface**:
562+
563+
* Example: `lo` (loopback interface), `tun0`, `br0`.
564+
* Used for internal communication, VPNs, containers, or bridging.
565+
566+
---
567+
568+
### 📡 What It Does:
569+
570+
* Sends and receives data packets.
571+
* Has a unique **MAC address**.
572+
* Can have one or more **IP addresses** assigned.
573+
574+
---
575+
576+
### 🧠 Example:
577+
578+
On Linux, if you run `ip a`, you might see:
579+
580+
```
581+
1: lo: <LOOPBACK> ...
582+
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> ...
583+
3: wlan0: <BROADCAST,MULTICAST> ...
584+
```
585+
586+
Each of these (`lo`, `eth0`, `wlan0`) is a **network interface**.
587+
552588
---
553589
554590
### 4. **Forwarding the Packet**

0 commit comments

Comments
 (0)