W1·A1 — Two nodes, one cable
Time: 20 min
Needs: 2 VPCS and a cable
GNS3 project: w01-a1-two-nodes
Info
Times listed are approximate and provided as timing guidelines only. Take as much time as you need to complete the activity.
Question
What is a network made of?
Predict first
Write these down before touching GNS3.
- Can two computers talk with just a cable running between them?
- What other property, if at all, do they require before they can communicate?
Do this — build it
- File → New blank project, name it
w01-a1-two-nodes. - Browse End Devices → drag VPCS onto the canvas twice.
- Click Add a link (the cable icon at the bottom of the device panel).
Click
PC1→Ethernet0→ clickPC2→Ethernet0. Press Esc to put the cable tool away. - Clidk the green ▶ in the top toolbar to start both.
- Right-click each → Console. You should get a
PC1>(andPC2>) prompt immediately — no login required.
Congratulations! You've got yourself your first network!
Now, let's see if the two nodes can actually talk.
Do this — make them talk
# on PC1
show ip
ping 192.168.10.100
show ip reports no address. The ping fails. Now:
# on PC1
ip 192.168.10.100/24
show ip
# on PC2
ip 192.168.10.200/24
show ip
# back on PC1
ping 192.168.10.200
save
What just happened
- The cable was there the whole time and carried nothing. A link is not a network — it is one of the two things a network needs, and the other is addressing.
- Nothing was configured on the link. Both hosts were configured, independently, and they agreed by accident of you typing compatible numbers. Nobody negotiated anything.
show ipalso printed a MAC address. That one came with the interface.- We will talk about layers in a moment, but the presence of these two addresses is the first hint of that.
savewrites the config so a stop/start does not lose it.
Do this — break it without touching the cable
Both hosts still cabled, still working. On PC1 only:
ip 192.168.10.100/25
show ip
Still from PC1:
ping 192.168.10.200
What just happened
- It fails. You didn't take the cable away, and both hosts carry addresses, yet PC2 didn't answer
- PC1 reports not finding a gateway. Why?
/25is the culprit, which will make sense once we've covered IPv4. For now, interpret it as the two hosts "thinking" they are in two distinct networks, despite still being connected by a cable.
Do this - capture the conversation
- Right-click on the cable and press Start capture
- Press Ok on the dialog that pops up
- Run the ping again
- Does Wireshark show any activity?
What just happened
- The ping fails again
- Wireshark doesn't show any activity. PC1 put nothing on the wire
- Cables don't care about addresses. Hosts do.
Put it back:
# on PC1
ip 192.168.10.100/24
save
Record
| Variable | Observations |
|---|---|
| PC1 IP / MAC | |
| PC2 IP / MAC | |
| Ping result before addressing | |
| Ping result after addressing | |
Ping result with PC1 on /25 |
|
| Your one-sentence explanation of the /25 failure |
If it went wrong
| Symptom | Cause | Fix |
|---|---|---|
| No VPCS under Browse End Devices | binary not built or not found | GNS3 setup, then Edit → Preferences → VPCS |
| Console window opens blank | node not started | green ▶ first; VPCS has no boot, so a blank window means it is not running |
| Ping fails after addressing both | typo, or addresses in different subnets | show ip on both and compare the mask as well as the address |
| Config lost after a restart | no save |
save on each node |