Posted on 2013-12-21
Last Modified: 2013-12-21
I need some advice on setting up a network that requires 5 different vlans. I have two layer 2 switches and a layer 3 switch. (The layer 3 switch will then be connected to a firewall which then goes to the ISP router), but I only need help first on the switches and how to configure them.

This is my setup so far

vlan 10- IT -
vlan 20- Wareshouse -
vlan 30-Sales -
vlan 40-Exec -
vlan 50-Servers -

I need to make a default gateway for each network.
Do I make another vlan for management (like and make interface vlan .61 and .62 for the 2 layer 2 switches to login and manage?
Where do I set the default gateways for all 5 subnets, on the layer 3 switch? On the layer 3 switch do I use the interface vlan id ip address for each subnet? The default gateway for the entire network will be the inside interface of the firewall.
Just need some guidance on this.
Question by:tolinrome
  • 4
  • 4
LVL 57

Accepted Solution

giltjr earned 500 total points
ID: 39734189
To make things easier you will need at least one more VLAN that is for a small network between the L3 switch and the firewall.

The connection between the L2 and the L3 switch will need to be configured to support multiple tagged VLAN's (on Cisco devices this is known as a trunked  connection).

The L3 switch will need to have an IP address on each VLAN and this will be the default gateway for each of the VLAN's.

For only 3 devices I don't think you need a management VLAN.  I would assign address to the 3 devices in the "IT" VLAN.

Author Comment

ID: 39734198
ok so, since the L3 switch will have all the default gateways, how do I actually enter them in the switch?

I think I wouldn't use ip default-gateway command since that will be the actual devices default gateway (inside interface firewall). Which command do I use on the L3 switch for setting up the L3 gateways?

Trunks I can do, so I go that. I can create the other vlan between the L3 and firewall, so that's good, and the management vlan I'm good.
LVL 57

Expert Comment

ID: 39734209
Well that depends on what type of L2 switch it is.  Not all L3 switches use the same commands.

Example on a Cisco switch it would be something like:

config t
vlan 10
state active
name IT
interface vlan 10
ip address
desc IT
vlan 20
state active
name Wareshouse
interface vlan 20
ip address
desc Wareshouse

and so on.

Author Comment

ID: 39734211
Ok, got it.
One last thing, how do I route all the traffic from the L3 to the inside int of the firewall?
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

LVL 57

Expert Comment

ID: 39734216
I am assuming that you have another VLAN/IP subnet between your L3 switch and the firewall.

You just make the IP address of the inside interface of the firewall the defualt gateway/route on the L3 switch.

What type of L2 and L3 devices do you have?

Author Comment

ID: 39734219
"You just make the IP address of the inside interface of the firewall the defualt gateway/route on the L3 switch."

How? #ip route command?

All cisco devices 2900's and 3560
LVL 57

Expert Comment

ID: 39734226

ip route x.x.x.x

where x.x.x.x is the inside interface of the firewall.

Don't forget that you need to make the connection between the L2 switches and the L3 switches a trunk with all of your VLAN's allowed.

Author Comment

ID: 39734243

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
display iPhone Wifi network name 19 80
PCI Compliance Free scan 2 78
Cost effective dual wan w/ qos 5 29
Trunk Port 7 33
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now