cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2395
Views
15
Helpful
18
Replies

Inter-Vlan Routing Configuration

jessnew321
Level 1
Level 1

I am configuring a Cisco 2960C switch for inter-vlan routing and can't seem to get it working. I have set the gateway of last resort as my routers eth1 interface ip (192.168.1.1) and the vlan shows up in the routing table but I cannot ping from a pc or get any type of vlan routing.

 

I have a static route set up on the router with a destination of the vlan in question using 192.168.1.1 as its next hop. Obviously something is not configured correctly, so what am I missing??

18 Replies 18

Hello Martin,

 

I quite do not understand. From the below output it is clear that it is doing intervlan routing between Vlan1 and 99. May be it does not support routing protocols , however i have not chekced it.

 

@Jesse,

Are you having router on a stick? I mean for both vlan 1 and 99 have you configured a sub interfce on your upstream router?

I think you are not doing that.

 

Thanks,

Madhu

 

 

@Madhu, I have static routes setup on the upstream router corresponding to each vlan on the switch. I believe this is so the router knows where/how to route traffic back to the switch.

Thus, for vlan 1 on the router I have a static route with the destination of 192.168.0.0/24 (the network id of vlan 1 on the switch) with a next hop setting of 192.168.1.1 (the router's interface connected to the switch, eth1 in my case).

I have this type of setup configured on the router for each vlan on the switch.

On the switch I have the vlans configured with ip addresses (SVI). My gateway of last resort is 192.168.1.1 (my router). I do not have trunking setup on the switch.

Since I do not have trunking configured and my vlans have ip addresses that tells me I am not doing router-on-a-stick. Is that correct or am I missing something?

Many thanks for your help Madhu.

 

You are absolutely correct Jesse.

For intervlan routing , your switch itself is doing it.  For remote subnets it will go to your router as you have a default route pointing to Router. Return traffic comes back via static routes set up on router.

 

So i guess you are pretty good.

HTH,

Madhu.

 

****rating encourages particapation*******

 

The switch is doing the routing, therefore it is only traffic with an unknown destination that will get forwarded to the router, as per your default route. You will also need to configure a route on that, if you have not already done so, as said.

Martin