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
Solved

routing vlans on a switch

Posted on 2014-10-27
7
168 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
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 28

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

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.

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…
Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

808 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