Solved

routing vlans on a switch

Posted on 2014-10-27
7
164 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
  • 3
  • 3
7 Comments
 
LVL 50

Assisted Solution

by:Don Johnston
Don Johnston earned 333 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 333 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 26

Assisted Solution

by:Predrag Jovic
Predrag Jovic earned 167 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Hello to you all, I hear of many people congratulate AWS (Amazon Web Services) on how easy it is to spin up and create new EC2 (Elastic Compute Cloud) instances, but then fail and struggle to connect to them using simple tools such as SSH (Secure…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) 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…

747 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

12 Experts available now in Live!

Get 1:1 Help Now