Networking Basics
Networking Basics
Networking is the process of connecting multiple devices (like computers, printers, and
servers) so they can communicate and share resources such as files, internet access, or
applications.
Example:
Think of a network as a postal system. When you send a letter, it needs an address (IP
address) and a delivery path (router). Networking works the same way, where data is sent
from one device to another using a structured system.
2. Types of Networks
LAN (Local Area Network)
A LAN connects devices within a small area like an office, school, or home.
A WAN connects multiple LANs over a large area like cities or countries. The internet is the
largest WAN.
👉 Example: A company with offices in different countries connects them using a WAN.
Other Types:
👉 Example: Just like your home has an address, your computer has an IP address (e.g.,
192.168.1.10).
Types of IP Addresses:
1. Public IP – Assigned by an ISP (Internet Service Provider) and used to access the
internet.
○ Example: Your home Wi-Fi’s internet IP.
2. Private IP – Used within a LAN and cannot be accessed from outside.
○ Example: 192.168.1.x for home networks.
3. Static IP – Manually assigned and does not change.
○ Example: Used for servers and printers.
4. Dynamic IP – Assigned automatically by DHCP (Dynamic Host Configuration
Protocol) and changes over time.
5. Networking Protocols
What are Protocols?
👉
Interviewer: "What would you do if a user reports no internet access?"
Your Answer:
1. Check if the issue is local or global – Ask if others are facing it.
2. Check physical connections – Ensure cables are plugged in.
3. Run ipconfig – Check if the system has an IP address.
4. Ping 8.8.8.8 – If it works, the problem is with DNS.
5. Restart the router – Most common solution.
👉
Interviewer: "What is the difference between a switch and a router?"
Your Answer:
● A switch connects multiple devices within a LAN and forwards data using MAC
addresses.
● A router connects different networks (LAN to WAN) and forwards data using IP
addresses.
---
---
✅
### **Check for the Following Issues:**
Does the device have an IP address?
✅
- If the **IP is missing or incorrect (169.x.x.x)** → There's a DHCP issue.
Is the **default gateway correct**?
✅
- Should match the router’s IP (e.g., `192.168.1.1`).
Is the **DNS server reachable**?
- Run `nslookup google.com` to check.
---
✅
```
❌
- **Reply received** → The network is working.
- **Request timed out** → No internet access.
✅
```
❌
- **If ping to IP works but to a website fails**, there’s a **DNS problem**.
- Try changing the DNS to Google's DNS (`8.8.8.8`).
---
---
---
---
## **8. Reset Network Configuration (If Nothing Works)**
### **For Windows:**
Run:
```sh
netsh int ip reset
netsh winsock reset
```
Then restart the computer.
---
---