cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
279
Views
0
Helpful
2
Replies

static routes

bsudol79p
Level 1
Level 1

I have inter vlan routing configured on my switch. The switch is directly connected to the router. On the router I have static routes to the switch, the static routes point to the management vlan. My question is should I have each static route point the vlan interfaces or to the management vlan, in which case is vlan 1 in my config. Which method is better or correct? any performance differences? Or either one is correct? Thanks for the assistance!!!

here is the config

the port between switch and router is a physical port, " no switchport"

router ethernet 1/0

ip address 172.21.19.1 255.255.255.0

switch with inter-vlan routing

vlan 1 172.21.19.0 255.255.255.0 mangement

vlan 23 172.23.0.0 255.255.0.0

vlan 20 172.20.0.0 255.255.0.0

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Hi

There are probably 2 ways to approach this

1) Create a dedicated vlan for the router to switch connection and use a /30 eg.

router

eth1/0

ip address 192.168.5.1 255.255.255.252

int vlan 3

ip address 192.168.5.2 255.255.255.252

and then put the port that the router connects to in vlan 3. Then your routes are

ip route 172.23.0.0 255.255.255.0 192.168.5.2

ip route 172.23.0.0 255.255.0.0 192.168.5.2

ip route 172.20.0.0 255.255.0.0 192.168.5.2

or

2) Pretty much the same as above except instead of using a dedicated vlan make the port that the router connects to a L3 routed port ie. on the switch

int fa0/10

no switchport

ip address 192.168.5.2 255.255.255.252

And then add routes as in 1

You can of course run a routing protocol between the L3 switch and the router.

As for the options i would go with option 2 if possible.

HTH

Jon

View solution in original post

2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

Hi

There are probably 2 ways to approach this

1) Create a dedicated vlan for the router to switch connection and use a /30 eg.

router

eth1/0

ip address 192.168.5.1 255.255.255.252

int vlan 3

ip address 192.168.5.2 255.255.255.252

and then put the port that the router connects to in vlan 3. Then your routes are

ip route 172.23.0.0 255.255.255.0 192.168.5.2

ip route 172.23.0.0 255.255.0.0 192.168.5.2

ip route 172.20.0.0 255.255.0.0 192.168.5.2

or

2) Pretty much the same as above except instead of using a dedicated vlan make the port that the router connects to a L3 routed port ie. on the switch

int fa0/10

no switchport

ip address 192.168.5.2 255.255.255.252

And then add routes as in 1

You can of course run a routing protocol between the L3 switch and the router.

As for the options i would go with option 2 if possible.

HTH

Jon

Istvan_Rabai
Level 7
Level 7

Hi Bart,

I removed my message, as I can see Jon already answered.

Cheers:

Istvan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card