dustin.coil Wed, 04/22/2009 - 07:11
User Badges:

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.

davy.timmermans Wed, 04/22/2009 - 07:19
User Badges:
  • Silver, 250 points or more

(config)#ip routing [enter]

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

dustin.coil Wed, 04/22/2009 - 07:45
User Badges:

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?

andy-gerace Wed, 04/22/2009 - 08:40
User Badges:

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.

glen.grant Wed, 04/22/2009 - 07:46
User Badges:
  • Purple, 4500 points or more

As an example:

conf t

go into enable mode

vlan 2 , enter

vlan 3 , enter


interface vlan 2

ip address

interface vlan 3

ip address

dustin.coil Mon, 04/27/2009 - 03:35
User Badges:

Ok, I may not be thinking of this correctly. For example I have two VLAN's with there own ip addresses ( and, and all the other ports are assigned to use a gateway( 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 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?


dustin.coil Mon, 04/27/2009 - 08:18
User Badges:

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


This Discussion