Solved

routing vlans on a switch

Posted on 2014-10-27
7
167 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 27

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Which NIC is live in Win/Linux? 25 95
gns3 - switchport trunk allow vlan error 4 63
Skype for Business video calls drops 2 60
Can't ping New Linux Servers 40 66
Security is one of the biggest concerns when moving and migrating your data from your on-premise location to the Public Cloud.  Where is your data? Who can access it? Will it be safe from accidental deletion?  All of these questions and more are imp…
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.
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

778 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