cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
184
Views
0
Helpful
1
Replies

route map and ip route two method difference and which better?

Maivoko
Level 1
Level 1

Policy Based Routing with the Multiple Tracking Options Feature Configuration Example - Cisco

Method 1

route-map alpha permit 10

!--- Define a route-map to set the next hop depending on !--- the state of the tracked routers.

set ip next-hop verify-availability 192.168.0.10 10 track 123
set ip next-hop verify-availability 192.168.1.20 20 track 124

set ip next-hop verify-availability 192.168.1.30 30 track 125

 

Method 2

ip route 0.0.0.0 0.0.0.0 192.168.0.10 1 track 1

ip route 0.0.0.0 0.0.0.0 192.168.0.20 2 track 2 

ip route 0.0.0.0 0.0.0.0 192.168.0.30 3 track 3

 

Route 1 192.168.0.10

Route 2 192.168.0.20

Route 3 192.168.0.30

I applied at uplink of Layer 3 switch router,

what are difference between method 1 and method 2? which is better ?

 

 

1 Reply 1

Ip route is better 

It dont add excessive work on cpu

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