Basic Cisco Switch Configuration!

Safiullah Khan
2 min readDec 9, 2023

--

In this article we have been configuring switch for communication between hosts (PC’s).We will assign management IP to switch and IP addresses to hosts manually and then make communication.

Figure 1: Switch Configuration Network

As shown in figure above Layer-2 switch is connected to three hosts (PC’s) and we will assign IP address to these PC’s manually and IP address to default VLAN 1 in Switch which is also known as management IP.

Let’s first give management IP to VLAN 1 as shown in figure below following commands will be used to configure IP on switch.

Figure 2: IP Assignment to VLAN 1

Next, we will assign manual IP addresses to PC’s an then check communication by ping whether they are communicating or not.

Steps to give IP Address to PC.

  1. First Click on PC
  2. Now select Desktop in menu
  3. Select IP Configuration
  4. Assign IP Address and Subnet Mask.
Figure 3: IP To PC 0
Figure 4: IP To PC 4
Figure 4: IP To PC 5

Now we will ping and check for connection between PC’s.

Steps to perform ping:

  1. Select Source PC.
  2. Select Desktop on menu.
  3. Select Command Prompt.
  4. write ping <Destination PC IP>.

I have been pinging PC 4 from PC 0 as shown in figure below.

Figure 5: Ping from PC 0 to PC 4

Now the reply from 192.168.10.20 shows that we have successfully configured Switch.

A network switch is a small device that centralizes communications among several connected devices in one local area network (LAN).A switch determines the source and destination addresses of each packet and forwards data only to the specific devices.

--

--

Safiullah Khan

Associate Security Engineer || Vulnerability Assessment || Google CPC || Blue Team Junior Analyst || SIEM || IDS/IPS || Wazuh || Cortex XDR || Splunk