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

I have a question in static route on catalyst 4506 switch

Hi All,

I have a doubt on static route in Catalyst switch 4506E. Details are follows,

Source  - 10.72.XX.XX/23

Destination - YY.YY.YY.YY

Gateway - 10.0.XX.XX

I want to write static route that which ever the traffic from source subnet to the destination IP should be routed via gateway IP address.

Please help me to do it. If you have any questions do let me know. Thanks!

Regards,

Chandru

Thanks and regards, Chandhuru.M
1 Accepted Solution

Accepted Solutions

Bobby Stojceski
Level 1
Level 1

You will need to use Policy-Based Routing if I understand you correctly.

http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25ew/configuration/guide/conf/pbroute.html 

(Untested) An example is:

!

access-list 10 permit ip 10.72.XX.XX 0.0.1.255 YY.YY.YY.YY <wildcard bits>

!

interface GigabitEthernet2/2

 ip policy route-map MyRoute

!

route-map MyRoute permit 10

 match ip address 10

 set ip next-hop 10.0.xx.xx

!

I've never done PBR using both Source and Destination matching but I can only assume this would work. Good luck.

View solution in original post

2 Replies 2

Bobby Stojceski
Level 1
Level 1

You will need to use Policy-Based Routing if I understand you correctly.

http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25ew/configuration/guide/conf/pbroute.html 

(Untested) An example is:

!

access-list 10 permit ip 10.72.XX.XX 0.0.1.255 YY.YY.YY.YY <wildcard bits>

!

interface GigabitEthernet2/2

 ip policy route-map MyRoute

!

route-map MyRoute permit 10

 match ip address 10

 set ip next-hop 10.0.xx.xx

!

I've never done PBR using both Source and Destination matching but I can only assume this would work. Good luck.

Francesco Molino
VIP Alumni
VIP Alumni

Hi

Static routes is based on destination only. If you want base the forwarding decision on the source you need to use pbr.

The config will looks like:

access-list 100 permit ip 10.72.XX.XX 0.0.1.255 yy.yy.yy.yy 0.0.0.255

Route-map PBR permit 10

Match ip address 100

Set ip next-hop 10.0.xx.xx

Interface x/y

Ip policy route-map PBR

Hope this clear.

Thanks 

PS: Please don't forget to rate and mark as correct answer if this solved your issue 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question