cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6249
Views
10
Helpful
5
Replies

3560 layer 3 routing

waguilar71
Level 1
Level 1

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

5 Replies 5

Kyle McKay
Level 1
Level 1

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

waguilar71
Level 1
Level 1

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

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.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

waguilar71
Level 1
Level 1

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

Hello wolfy,

Please don't forget to rate any posts that has been helpful.

res

Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card