RE: set interface with a route map

From: Bill Burns (bburns@racktimerentals.com)
Date: Tue Apr 01 2008 - 20:01:37 ART


Hi Enrique,

The IOS in question is 4.12(18) and this is the behavior it exhibits...

Rack1R6(config)#route-map NAT
Rack1R6(config-route-map)#match ip add prefix-list ?
Rack1R6(config-route-map)#match ip add prefix-list TEST
Rack1R6(config-route-map)#set interface ?
Rack1R6(config-route-map)#set interface lo0 (or fa0/0, s0/0/0, null0)
% route-map:can not set interface.
% Use P2P interfaces for set interface clause

The previous version of 4.12(13b) allows you to add the interface feature to
the route-map.

Now a way around that is if you are on this code

Rack1R6(config-route-map)#set default interface lo0

I believe this will send the traffic in the direction you want.

Thank you,

Bill Burns
CCIE #12464, CCSI
Rack Time Rentals
www.racktimerentals.com

  

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Enrique Langmaack
Sent: Tuesday, April 01, 2008 2:57 PM
To: ccielab@groupstudy.com
Subject: set interface with a route map

Hi guys,

Recently I was trying to do one of the internetwork expert sections in which
nat on a stick should be configured.

The solution includes a policy based routing in which traffic coming from an
specific network should be routed to a loopback which has an ip nat inside
statement. In order to forward the traffic to the interface they use a
route-map:

route-map NAT permit 10
match <match an access list>
set interface loopback 0

However, when I try to set the interface command, the router displays a
message that says something like the set interface command should only be
applied to non broadcast interfaces. (I don't remember the exact wording)

Unfortunally I don't know what IOS version I was using because it was a
racktimerentals session and I didn't write the version down.

Could someone tell me if this is a bug? Or could it be the IOS version?

Thank you guys,

Enrique



This archive was generated by hypermail 2.1.4 : Thu May 01 2008 - 08:25:49 ART