Using Route-Map Questions

Answered Question
Jul 20th, 2009
User Badges:

Hello,


I want to understand the route-map command purpose. Through my research, it seems like it can only be used with dynamic routing protocol. I have two static route entry in my route. If the source destination of the traffic is 10.1.0.24, I want to route through 10.1.1.1. If the source destination is 10.1.0.25, I want to route through 10.1.1.2. Can I accomplish this with route-map command?


Thanks,

Correct Answer by Jon Marshall about 7 years 8 months ago

Malanda


access-list 101 permit ip host 10.1.0.24 any


access-list 102 permit ip host 10.1.0.25 any


route-map PBR permit 10

match ip address 101

set ip next-hop 10.1.1.1


route-map PBR permit 20

match ip address 102

set ip next-hop 10.1.1.2


int fa0/0

ip address 10.1.0.1 255.255.255.0

ip policy route-map PBR


Jon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Jon Marshall Mon, 07/20/2009 - 07:41
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Malanda


access-list 101 permit ip host 10.1.0.24 any


access-list 102 permit ip host 10.1.0.25 any


route-map PBR permit 10

match ip address 101

set ip next-hop 10.1.1.1


route-map PBR permit 20

match ip address 102

set ip next-hop 10.1.1.2


int fa0/0

ip address 10.1.0.1 255.255.255.0

ip policy route-map PBR


Jon

Actions

This Discussion