cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
611
Views
0
Helpful
4
Replies

Selective default route Question

dan_track
Level 1
Level 1

Hi,

I'd like to set on our 3750 switch some sort of rule that will say for client 10.50.20.12 set the deafult route 0.0.0.0 to be ip 10.44.81.250, instead of the global default route of 10.45.81.250.

Thanks for any help.

Dan

4 Replies 4

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hi,

I'd like to set on our 3750 switch some sort of rule that will say for client 10.50.20.12 set the deafult route 0.0.0.0 to be ip 10.44.81.250, instead of the global default route of 10.45.81.250.

Thanks for any help.

Dan

Hi Dan,

It can be achievable if 3750 supports poilicy based routing if yes then you can create route-map and set the next hop for those specific ip address,check out the below sample example hope that help !!

access-list 111 remark acl for lan1
access-list 111 permit ip 192.168.3.0 0.0.0.255 any

route-map rock permit 10
match ip address 111
set ip next-hop 1.1.1.2

If helpful do rate the post !!

Ganesh.H

Thanks for that. But how do I install the route-map into the routing table. I'm running eigrp.

Thanks

dan_track wrote:

Thanks for that. But how do I install the route-map into the routing table. I'm running eigrp.

Thanks

Dan

You apply the route-map in Ganesh's example to the interface on which traffic from 10.50.20.12 will be arriving eg.

int vlan 10

ip policy route-map

Jon

on switches, i think you will also need to change the sdm prefer to routing before you can apply PBR.

Nhat

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco