Sitemap

Layer 3 Switch Configuration for Inter-Vlan Communication for different networks?

3 min readOct 30, 2023

--

I have three layer 2 switches where different networks are installed. I have to configure a layer 3 switch for inter-vlan communication.

The Diagram below showing the network design which we have to configure.

Press enter or click to view image in full size
Network Design for Layer 3 inter-vlan communication.

First thing first, I will create three vlans which I will assign IP Addresses to them which will act as default gateway for hosts connected to layer 2 switch.

  1. To create vlans we will use the command vlan which is built in command for vlan creation in switch.

2. There is one vlan already exist in switch is default vlan for switch that can be used as a management vlan.

Following commands are used to create three vlans(10,20,30).

Switch>enable

Switch#config terminal

Get Safiullah Khan’s stories in your inbox

Join Medium for free to get updates from this writer.

After running above commands, we are now in global mode which will we discuss in next lesson on switch basics.

These are the commands which are used to create three vlans and name assigning in switch.
Three Vlans with Names.

Now we have created three vlans, so we will assign ports and IP Addresses to them.

Vlan 10 IP Assignment
Vlan 20 IP Assignment
Vlan 30 IP Assignment

Now Run command ip routing on layer 3.

Command to get functionality of router from switch

Now assigns IP Addresses to PC in the which are show in figure above at top with the default gateway as follows.

Vlan 10 PC’s — — — -> 192.168.10.1

Vlan 20PC’s — — — -> 192.168.20.1

Vlan 30 PC’s — — — -> 192.168.30.1

Now our network is ready to get ping and send data between different pc’s.

what is gateway?

A gateway is a device or a software that connects two or more networks and allows data to flow between them. It can also perform functions such as protocol translation, data conversion, security filtering, or routing.

--

--

Safiullah Khan
Safiullah Khan

Written by Safiullah Khan

Security Engineer | Security+ | Google CPC | BTJA | Offensive & Defensive Ops | Online Training | SIEM • IDS/IPS • Wazuh • Vulnerability Assessment