?
Solved

routing vlans on a switch

Posted on 2014-10-27
7
Medium Priority
?
174 Views
Last Modified: 2014-11-02
Please read carefully. What is the syntax to get a layer 3 switch to act functionally equivalent to a router on a stick by routing vlans, but not use an actual router. Every piece of documentation I find refers to an actual router.
0
Comment
Question by:hatcherb1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 50

Assisted Solution

by:Don Johnston
Don Johnston earned 1332 total points
ID: 40407327
Well... It would really help to know what make/model switch.

But assuming a Cisco multilayer switch:

int g0/1 ! Interface connecting to the other (L2) switch
 switchport mode trunk
int vlan 10
 ip address 192.168.10.1 255.255.255.0
int vlan 20
 ip address 192.168.20.1 255.255.255.0
int vlan 30
 ip address 192.168.30.1 255.255.255.0

There you go.  Instant switch on a stick.
0
 
LVL 1

Author Comment

by:hatcherb1234
ID: 40407343
I don't have to set up switchport trunk encap dot1q on the trunk port?
The switch in question is either a 3750G-12S-E or a 3850-12S-E
0
 
LVL 50

Assisted Solution

by:Don Johnston
Don Johnston earned 1332 total points
ID: 40407397
I don't have to set up switchport trunk encap dot1q on the trunk port?
On the 3750's, the default is to negotiate the encapsulation. If you want to manually set it, "switchport trunk encap dot1q" is the command.  IIRC, the 3850's only support dot1q.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 30

Assisted Solution

by:Predrag
Predrag earned 668 total points
ID: 40407844
And most important command  in global configuration mode :)
ip routing
It is not enabled by default on L3 switches.
And on L3 switch simply forget about router on a stick, you don't need it.
0
 
LVL 1

Accepted Solution

by:
hatcherb1234 earned 0 total points
ID: 40408767
So just setting IP routing...setting up a trunk line (assumed open to all the various VLANs)... Assign a subnet to each vlan and they all intercommunicate? Thank You
0
 
LVL 50

Expert Comment

by:Don Johnston
ID: 40409152
Yep.
0
 
LVL 1

Author Closing Comment

by:hatcherb1234
ID: 40417999
I didn't select my own comment and both gentlemen contributed to the answer
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

AWS has developed and created its highly available global infrastructure allowing users to deploy and manage their estates all across the world through the use of the following geographical components   RegionsAvailability ZonesEdge Locations  Wh…
In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

752 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