Logical to Physical Network Diagram Conversion
🗺️ Logical → Physical Network Diagram Conversion
ITS352/DES352 · SIIT · Thammasat University
Conversion Rules (Quick Reference)
Related
| Logical Element | Physical Element |
|---|---|
| ☁️ Edge network cloud (has PCs) | → Becomes a PC/host with one IP from that subnet |
| ☁️ Transit network cloud (router-to-router only) | → Disappears — replaced by a direct cable |
| 🔀 Router icon | → Becomes a PC acting as router (same label R1, R2…) |
| Interface IP on router | → Stays exactly the same |
| Host IP in edge network | → Pick any valid host IP (e.g. first available = network+1, or .8) |
Step-by-Step Process
Related
Step 1 — Identify each network cloud type:
Edge cloud = has at least one PC/host in it
Transit cloud = only connects routers together (no PC)
Step 2 — Replace each edge cloud with a PC
Assign the PC any valid host IP from that subnet
(usually hostmin or hostmin+1, e.g. 192.168.10.8/24)
Step 3 — Remove transit clouds
Draw a direct cable between the two routers instead
Both router IPs on that link stay the same
Step 4 — Replace router icons with PC-acting-as-router boxes
Label them R1, R2 etc.
Each router box has one eth port per connected link
Step 5 — Assign NIC names (eth0, eth1, eth2…)
eth0 = usually disabled (management, not used in lab)
eth1 = first lab interface
eth2 = second lab interface (if router has 2 links)
Step 6 — Draw the cables
PC → Router (one cable per edge network)
Router → Router (one cable, was the transit cloud)
Example: Your Diagram
Logical Diagram
☁️ Network B (192.168.20.0/24) ← transit
/192.168.20.1/24 192.168.20.2/24\
[R1] [R2]
192.168.10.1/24 192.168.30.1/24
\ /
☁️ Network A ☁️ Network C
(192.168.10.0/24) (192.168.30.0/24)
Physical Diagram
[PC-A]──────────[R1]────────────────[R2]──────────[PC-C]
eth1: eth1: eth2: eth2: eth1: eth1:
192.168.10.8/24 192.168.10.1/24 192.168.20.1/24 192.168.20.2/24 192.168.30.1/24 192.168.30.8/24
Cleaner view:
| Device | NIC | IP Address |
|---|---|---|
| PC-A | eth1 | 192.168.10.8/24 ← any valid host IP |
| R1 | eth1 | 192.168.10.1/24 ← from logical diagram |
| R1 | eth2 | 192.168.20.1/24 ← from logical diagram |
| R2 | eth2 | 192.168.20.2/24 ← from logical diagram |
| R2 | eth1 | 192.168.30.1/24 ← from logical diagram |
| PC-C | eth1 | 192.168.30.8/24 ← any valid host IP |
Network B cloud disappears → direct cable between R1 eth2 and R2 eth2
Commands That Follow From the Physical Diagram
PC-A
sudo ifconfig eth0 down
sudo ifconfig eth1 192.168.10.8/24
sudo route add default gw 192.168.10.1 # R1's IP on PC-A's sidePC-C
sudo ifconfig eth0 down
sudo ifconfig eth1 192.168.30.8/24
sudo route add default gw 192.168.30.1 # R2's IP on PC-C's sideRouter R1
sudo ifconfig eth0 down
sudo ifconfig eth1 192.168.10.1/24 # toward Network A
sudo ifconfig eth2 192.168.20.1/24 # toward Network B (transit)
# ip_forward already enabled in IMUNES
sudo route add -net 192.168.30.0/24 gw 192.168.20.2 # can't see Net C directly → via R2Router R2
sudo ifconfig eth0 down
sudo ifconfig eth2 192.168.20.2/24 # toward Network B (transit)
sudo ifconfig eth1 192.168.30.1/24 # toward Network C
# ip_forward already enabled in IMUNES
sudo route add -net 192.168.10.0/24 gw 192.168.20.1 # can't see Net A directly → via R1Key Rules to Remember
- PC default gateway = the router's IP on the same subnet as the PC
- Router static route = needed for every network it cannot directly reach
- Directly connected networks → route added automatically by ifconfig
- Remote networks → must add manually with
route add -net - Router with 2 interfaces → directly connected to 2 networks → needs static routes for all others
- eth0 always disabled in lab (
sudo ifconfig eth0 down) — it's the management interface
Common Mistake Check
| Mistake | Fix |
|---|---|
Giving PC the network address (e.g. .0) | Use a valid host IP (.1 to .254, avoid router's IP) |
Giving PC the broadcast address (e.g. .255) | Same — use a valid host IP |
| Forgetting transit network still has IPs on the cable | The cloud disappears but both router IPs on that link remain |
| PC's gateway pointing to wrong router interface | Gateway must be router's IP on the SAME subnet as the PC |
| Router missing static route to far network | Every remote network needs route add -net |
ITS352/DES352 · SIIT · Thammasat University