Local policy routing

From: Derek P (rizacer@gmail.com)
Date: Fri Feb 23 2007 - 22:03:16 ART


Can someone confirm this config is correct? My routers dont seem to want to
local policy-route correctly.It shows its getting matched in the policy but
its not correctly swapping the source IP. Any help is greatly appreciated on
this.

!
interface Loopback0
 ip address 1.1.1.1 255.255.255.0
!
interface Ethernet0
 ip address 132.1.100.1 255.255.255.0
!
ip local policy route-map LOCAL_POLICY
!
route-map LOCAL_POLICY permit 10
 set interface Loopback0
!

R1#deb ip pol
Policy routing debugging is on
R1#pi 132.1.100.2 re 2

Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 132.1.100.2, timeout is 2 seconds:
U
*Mar 1 00:24:45.031: IP: s=132.1.100.1 (local), d=132.1.100.2, len 100,
policy match
*Mar 1 00:24:45.035: IP: route map LOCAL_POLICY, item 10, permit
*Mar 1 00:24:45.039: IP: s=132.1.100.1 (local), d=132.1.100.2 (Loopback0),
len 100, policy routed
*Mar 1 00:24:45.043: IP: local to Loopback0 132.1.100.2
*Mar 1 00:24:45.067: IP: s=132.1.100.1 (local), d=132.1.100.2, len 100,
policy match
*Mar 1 00:24:45.071: IP: route map LOCAL_POLICY, item 10, permit
*Mar 1 00:24:45.071: IP: s=132.1.100.1 (local), d=132.1.100.2 (Loopback0),
len 100, policy routed
*Mar 1 00:24:45.075: IP: local to Loopback0 132.1.100.2.
Success rate is 0 percent (0/2)
R1#
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip tcp synwait-time 5
R1(config)#do tel 132.1.100.2
Trying 132.1.100.2 ...
% Destination unreachable; gateway or host down

R1(config)#
*Mar 1 00:25:43.923: IP: s=132.1.100.1 (local), d=132.1.100.2, len 44,
policy match
*Mar 1 00:25:43.927: IP: route map LOCAL_POLICY, item 10, permit
*Mar 1 00:25:43.927: IP: s=132.1.100.1 (local), d=132.1.100.2 (Loopback0),
len 44, policy routed
*Mar 1 00:25:43.931: IP: local to Loopback0 132.1.100.2
R1(config)#

DP



This archive was generated by hypermail 2.1.4 : Thu Mar 01 2007 - 07:38:48 ART