Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Newbie question: Define a special route for special IP address.

Hi all,

Our cisco6509 has 20 vlan interfaces with internal IP addresses set. I place an "ip route 0/0 0/0 172.16.1.1" to forwad these packets to an NAT server(172.16.1.1). Now I need to add a vlan interface with IP 100.1.1.1(formal IP). Of course, I want 6509 to forward this part of packets directly to next hop instead of our NAT server. What should I do to define an additional route for this new vlan?

Any help will be appreciated.

zuohong

2 REPLIES
Silver

Re: Newbie question: Define a special route for special IP addre

Zuohong,

Using PBR on your new VLAN interface you should be able to force this new traffic to your desired next-hop. Here is a link on PBR for your reference.

http://www.cisco.com/en/US/partner/products/sw/iosswrel/ps1828/products_configuration_guide_chapter09186a00800ca590.html#4826

It would look something like this:

access-list 1 permit ip 100.1.1.x x.x.x.x

!

interface

ip policy route-map New-Next_hop

!

route-map New_Next_hop permit 10

match ip address 1

set ip next-hop x.x.x.x <----- this would be the new next hop for this traffic

!

Hope this helps you,

Don

New Member

Re: Newbie question: Define a special route for special IP addre

Hi Don,

It really works now. Thank you so much.

zuohong

99
Views
0
Helpful
2
Replies
CreatePlease to create content