Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

4948 Layer 3 Switch Routing

Hi - I have a cisco c4948 switch using the 12.2(50)SG software. I am wondering how to set up the routing between two VLANs in the CLI.

Thanks, Dustin

8 REPLIES
Super Bronze

Re: 4948 Layer 3 Switch Routing

Configure "ip routing".

Community Member

Re: 4948 Layer 3 Switch Routing

Ok so when I'm in the CLI i start with

switch# configure terminal

switch(config)# ip routing

and from her i can hit enter or go into protocol -> purge -> interface and then hit enter.

I don't see how to route two vlans.

Re: 4948 Layer 3 Switch Routing

(config)#ip routing [enter]

the switch will record the different subnets in its routing table (recorded via SVI or via subinterface IP)

Community Member

Re: 4948 Layer 3 Switch Routing

Ok, then this must not be what I was looking for becuase I want to be able to ping from a computer on one vlan to another computer on a different vlan. Is this possible?

Community Member

Re: 4948 Layer 3 Switch Routing

If you have IP addresses on your VLANs - then the switch (router at this point) will route the directly connected subnets. However, you need to make sure you have the "ip routing" command entered.

But, you MUST have IP addresses assigned to the VLAN interfaces for it to route between them.

Purple

Re: 4948 Layer 3 Switch Routing

As an example:

conf t

go into enable mode

vlan 2 , enter

vlan 3 , enter

exit

interface vlan 2

ip address 192.168.2.1 255.255.255.0

interface vlan 3

ip address 192.168.3.1 255.255.255.0

Community Member

Re: 4948 Layer 3 Switch Routing

Ok, I may not be thinking of this correctly. For example I have two VLAN's with there own ip addresses (192.168.20.3 and 192.168.76.3), and all the other ports are assigned to use a gateway(192.168.124.1). I am still unable to ping from a computer on one VLAN to a computer on the other VLAN. However, I am able to ping from a computer on a 192.168.124.1 port to a computer on a VLAN and vice versa. I need to be able to ping through the computer that is not on a vlan to another computer across the internet. I can ping from this computer to the other one across the internet, but not from the computer on vlan->not on vlan->across internet. Is there somehow to set up the routing so I can achieve this?

Thanks!

Community Member

Re: 4948 Layer 3 Switch Routing

I think I may have gotten a little farther... I can ping the destination server from the computer that is connected to the internet, and now I can ping the same server from the switch itself. I just need to find a way that all of the vlan's can also see this "gateway". Does anyone know how to do this? Thanks

2489
Views
0
Helpful
8
Replies
CreatePlease to create content