02-12-2013 02:57 PM - edited 03-04-2019 07:00 PM
Hi everyone,
I'd like to setup my layer 3 switch ad a router switch with multivlan routing. I've researched the cisco site and it tells me that I onky jave to enable ip routing.
My question is I've enabled ip routing but how do you assign gateways for you routing for each vlan? On ROAS you create sub interfaces but how do create it on a layer 3 switch? I dont recall learning this on my ccna class or I may have missed it.
Thanks,
Wolfy
Sent from Cisco Technical Support Android App
02-12-2013 03:20 PM
Layer 3 switching is not covered in the CCNA curriculum, so you did not miss anything, don't worry!
On a 3560 you would first enable "ip routing" globally. This tells the switch to activate routing capabilities which is of course, essential to what you are trying to do.
On a router you created sub-interfaces to route between VLANs.
On a layer 3 switch you create Switched Virtual Interfaces or SVI's - which can be equated to a virtual router interface inside the switch. You need 1 SVI for each VLAN you want routed, you will use the SVI IP address as the default router for all devices on the network.
The configuration looks like this:
interface vlan 10
ip address x.x.x.x x.x.x.x.x
02-12-2013 03:43 PM
Ok lets see if I understand.
Conf t
Int vlan 123
Ip add 192.168.10.254 255.255.255.0
No shut
Is this correct?
Now I use ospf to route to other branches and gateway if last resort to my wan address. Do I add my vlan networks to the ospf table or static route.
Sent from Cisco Technical Support Android App
02-12-2013 03:46 PM
Hello,
basic layer 3 switch config:
Core switch
config t
ip routing
(create svi's for you vlans)
int vlan 1
shut
int vlan 10
Description Management vlan
ip adddress 10.10.1.254 255.255.255.0
int vlan 11
Description access-port vlan
ip adddress 10.10.2.254 255.255.255.0
int faxx
Description wan port
ip address x.x.x.x y.y.y.y or ip address dhcp
vlan 10,11,
exit
vtp mode server
vtp domain TST
ip route 0.0.0.0 0.0.0.0 (wan next hop ip)
or
ip route 0.0.0.0 0.0.0.0 dhcp
int faxx
description trunk to access swtich
switchport trunk encap dot
switchport mode trunk
no shut
access switch
conf t
no ip routing
int faxx
description trunk to core swtich
switchport trunk encap dot
switchport mode trunk
no shut
vtp mode client
vtp domain TST
int vlan 1
shut
int vlan 10
Description Management vlan
ip adddress 10.10.1,1 255,255.255.0
ip default-gateway 10.10.1.254
int faxx
description access ports
switchport mode access
switchport acess vlan 11
not shut
res
Paul
Please don't forget to rate this post if it has been helpful.
02-12-2013 04:31 PM
Thanks for the configs pdriver but I'm wanting to setup my 3560 as my router switch at a branch no router and just the single switch itself. Vtp is not a need at this time. Its a branch needing connection to out main network.
Wolfy
Sent from Cisco Technical Support Android App
02-12-2013 05:15 PM
Hello wolfy,
Please don't forget to rate any posts that has been helpful.
res
Paul
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide