cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
926
Views
5
Helpful
2
Replies

Set default route for one host

nkillgore
Level 1
Level 1

I'm trying to test our new firewall. I need to set the default route for my pc to be 10.1.1.2. The default route configured on the router is 10.1.1.1.

I set up and access list with my permit host mypc any any

Then i created a route map:

ip route-map test

set ip default next-hop 10.1.1.2

When I do a traceroute from my pc, it still routes through 10.1.1.1

Did I configure this right?

2 Replies 2

Hello

access-list 10 permit x.x.x.x ( source address)

route-map TEST

match ip address 10

set ip next-hop 10.1.1.2

int xx ( this is the interface facing source pc)

ip policy route-map TEST

res

Paul

Please don't forget to rate any posts that have been helpful.

Thanks.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Bilal Nawaz
VIP Alumni
VIP Alumni

There is no need to do policy based routing here unnecessarily, this is not something I would do (if I understood you correctly) that the router is on the same LAN as the PC and firewall?

If this isn't the case you could put your PC on the same VLAN and test.

You just have a static IP on your PC and configure your gateway manually to be the new firewall, then test.

Otherwise as described by Paul, PBR will help.

Hope this helps

Sent from Cisco Technical Support iPhone App

Please rate useful posts & remember to mark any solved questions as answered. Thank you.