This lab introduces the basic configuration of a simple network in GNS3.
The goal is to connect a router, a switch, and two PCs, assign IP addresses, and verify connectivity within the same subnet.
The exercise demonstrates how devices are connected and how basic communication between them is established.
| Device | Hostname | Interface | IP Address | Subnet Mask | Gateway |
|---|---|---|---|---|---|
| Router | R1 | Gi0/0 | 192.168.1.1 | 255.255.255.0 | – |
| Switch | SW1 | Gi0/0 | – | – | – |
| PC1 | PC1 | Eth0 | 192.168.1.10 | 255.255.255.0 | 192.168.1.1 |
| PC2 | PC2 | Eth0 | 192.168.1.11 | 255.255.255.0 | 192.168.1.1 |
-
Set hostname and IP address on the router
-
Assign hostname R1.
-
Configure IP address on Gi0/0 interface.
-
Enable the interface
- Set ip address and mask (192.168.1.1 255.255.255.0)
-
-
Set hostname on the switch
-
Assign hostname SW1.
-
No IP address or VLAN configuration is needed for this lab.
-
-
Configure PCs (VPCS1 and VPCS2)
-
Set IP addresses and default gateway.
-
Gateway is the router’s IP (192.168.1.1).
- Testing ping PCs -> R1
-
Router (R1)
enable
configure terminal
hostname R1
interface Gi0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
end
write memory
Switch (SW1)
enable
configure terminal
hostname SW1
exit
write memory
PC1 (VPCS1)
ip 192.168.1.10 255.255.255.0 192.168.1.1
save
PC2 (VPCS2)
ip 192.168.1.11 255.255.255.0 192.168.1.1
save
-
Verify interface status with
show ip interface brief.-
Check assigned IP address on Gi0/0.
-
Confirm that the interface is up/up.
-
-
Test connectivity to PCs.
-
ping 192.168.1.10/192.168.1.11 -
Verify 100% success rate.
-
R1#show ip interface brief
R1#ping 192.168.1.10
R1#ping 192.168.1.11
This lab successfully demonstrated the configuration of a basic network in GNS3.
A single router, switch, and two PCs were connected, configured, and tested.
The router was assigned an IP address, the switch received a hostname, and both PCs were configured with IP addresses and a default gateway.
Connectivity was verified using the ping command, confirming that all devices are able to communicate within the same subnet.
This basic setup provides a solid foundation for more advanced labs, where additional features such as secure access, SSH, and the integration of a QEMU Xubuntu client will be introduced.
Next part: Secure access





