From: Derek P (rizacer@gmail.com)
Date: Tue Feb 13 2007 - 04:36:12 ART
Doing some more testing with this it appears it works fine when I don't have
any routing / static routes configured. My only guess to this is it has to
do with route recursion but I cant seem to fully understand why it shouldn't
work.
On 2/12/07, Derek P <rizacer@gmail.com> wrote:
>
> Group,
>
> I cant seem to get my various routers/switches to policy route locally
> generated traffic.
>
> Its a very simple config, I can see the packets getting matched for policy
> routing as well as the counters incrementing. However the debugs show it
> doest actually use the correct source IP address. I have tried on different
> model routers and IOS ver's
>
> R3#show ip int brie | in up
> FastEthernet0/0 10.0.0.3 YES manual
> up up
> Loopback1 150.1.3.3 YES manual
> up up
> R3#conf t
> Enter configuration commands, one per line. End with CNTL/Z.
> R3(config)#route-map LOCAL per 10
> R3(config-route-map)#set int lo1
> R3(config-route-map)#exi
> R3(config)#ip local policy route-map LOCAL
> R3(config)#^Z
> R3#show
> *Mar 1 06:36:55.722: %SYS-5-CONFIG_I: Configured from console by console
> R3#show ip policy
> Interface Route map
> local LOCAL
> R3#show ip local pol
> Local policy routing is enabled, using route map LOCAL
> route-map LOCAL, permit, sequence 10
> Match clauses:
> Set clauses:
> interface Loopback1
> Policy routing matches: 0 packets, 0 bytes
> R3#deb ip pol
> Policy routing debugging is on
>
> R3#deb ip icm
> ICMP packet debugging is on
> R3#pi 150.1.4.4 re 1
>
> Type escape sequence to abort.
> Sending 1, 100-byte ICMP Echos to 150.1.4.4, timeout is 2 seconds:
> !
> Success rate is 100 percent (1/1), round-trip min/avg/max = 4/4/4 ms
> R3#
> *Mar 1 00:03:36.667: IP: s=10.0.0.3 (local), d= 150.1.4.4, len 100,
> policy match
> *Mar 1 00:03:36.667: IP: route map LOCAL, item 10, permit
> *Mar 1 00:03:36.667: IP: s=10.0.0.3 (local), d= 150.1.4.4 (Loopback1),
> len 100, policy routed
> *Mar 1 00:03:36.667: IP: local to Loopback1 150.1.4.4
> *Mar 1 00:03:36.671: ICMP: echo reply rcvd, src 150.1.4.4 , dst 10.0.0.3
>
>
> R3#
> R3#pi 150.1.4.4 re 1 so lo1
> Type escape sequence to abort.
> Sending 1, 100-byte ICMP Echos to 150.1.4.4, timeout is 2 seconds:
> Packet sent with a source address of 150.1.3.3
> !
> Success rate is 100 percent (1/1), round-trip min/avg/max = 4/4/4 ms
> R3#
> *Mar 1 06:38:22.098 : ICMP: echo reply rcvd, src 150.1.4.4, dst 150.1.3.3
> R3#u all
> All possible debugging has been turned off
> R3#
> R3#show ip local policy
> Local policy routing is enabled, using route map LOCAL
> route-map LOCAL, permit, sequence 10
> Match clauses:
> Set clauses:
> interface Loopback1
> Policy routing matches: 3 packets, 300 bytes
>
>
>
> R4#
> R4#
> R4#
> R4#
> *Mar 1 00:03:48.037: IP: tableid=0, s= 10.0.0.3 (Ethernet0/0), d=
> 150.1.4.4 (Loopback0), routed via RIB
> *Mar 1 00:03:48.037: IP: s=10.0.0.3 (Ethernet0/0), d= 150.1.4.4, len 100,
> rcvd 4
> *Mar 1 00:03:48.041: IP: tableid=0, s=150.1.4.4 (Loopback0), d=10.0.0.3(Ethernet0/0), routed via RIB
> *Mar 1 00:03:48.041 : IP: s=150.1.4.4 (Loopback0), d=10.0.0.3(Ethernet0/0), g=
> 10.0.0.3, len 100, forward
> *Mar 1 00:03:48.045: IP: tableid=0, s= 10.0.0.3 (Ethernet0/0), d=
> 150.1.4.4 (Loopback0), routed via RIB
> *Mar 1 00:03:48.049: IP: s=10.0.0.3 (Ethernet0/0), d=150.1.4.4 , len 100,
> rcvd 4
> *Mar 1 00:03:48.049: IP: tableid=0, s=150.1.4.4 (Loopback0), d=10.0.0.3(Ethernet0/0), routed via RIB
> R4#
> *Mar 1 00:03:48.049: IP: s= 150.1.4.4 (Loopback0), d=10.0.0.3(Ethernet0/0), g=
> 10.0.0.3, len 100, forwa
This archive was generated by hypermail 2.1.4 : Thu Mar 01 2007 - 07:38:46 ART