apt5

updated

3 years ago

A

apt5

1 Rookie

•

14 Posts

0

180

January 11th, 2024 17:34

OS10 route leaks not matching filter

I want to leak routes matching a specific /16 from the default vrf to a voice vrf. We have S5248F-ON switches running 10.5.4. I put this into the config:

ip prefix-list voice-export seq 10 permit 10.10.0.0/16

route-map voice-export permit 10
  match ip address voice-export

ip vrf default
  update-source-ip loopback 1000
  ip route-export 1:1 route-map voice-export

ip vrf Voice
  ip route-import 1:1

And the result is every route in the default table is showing up in voice. Does this not work or am I missing something?

  • apt5

    1 Rookie

    •

    14 Posts

    0

    0

    Posted January 17th, 2024 15:40

    It works, but not with an existing loopback. The one I used at first does not have an IP in the range being leaked. I created a new loopback with an address in the range being leaked and it works. It's a lot simpler that the prefix-list, also.

    ip route vrf Voice 10.10.0.0/16 interface loopback 2

    ip route 10.10.255.252/30 interface vlan 2

                                   default VRF  X  Voice VRF

                                                        X

                                   loopback2    X  vlan2  ====> Ethernet access port

                         10.10.255.251/32   X   10.10.255.253/30

                                                        X

  • DELL-Charles R

    Moderator

    •

    4730 Posts

    •

    25476 Points

    0

    0

    Posted January 11th, 2024 21:49

    Hello,

     

    I see that the routes are showing up in the Voice VRF but the IP prefix list did not filter out the unwanted routes.

    You can try to use the syntax example provided on page 1566 of the OS10 10.5.4 OS10 User Guide

    https://dell.to/3RTeXnr

    ip prefix-list name permit [A.B.C.D/x [ge | le]] prefix-len

     

    DELL-Charles R

    Social Media and Communities Professional
    Dell Technologies | Enterprise Support Services
    #IWork4Dell

    Did I answer your query? Please click on ‘Accept as Solution’. ‘Thumbs up’ the posts you like!

  • apt5

    1 Rookie

    •

    14 Posts

    0

    0

    Posted January 11th, 2024 22:09

    @Dell -Charles R​  thanks. That is what I typed in. The "seq 10" was added by the switch. And the syntax seems to be correct to catch any route that falls in the /16; from page 1535: "For example, in 112.24.0.0/16, the first 16 bits of the address 112.24.0.0 match all addresses between 112.24.0.0
    to 112.24.255.255." It's like the route map isn't actually filtering the export.

  • DELL-Erman O

    Moderator

    •

    2984 Posts

    •

    14874 Points

    0

    0

    Posted January 12th, 2024 07:33

    Hi, might be checking to verify each VRF is helpful. To confirm the routes in each VRF, you can use the command show ip route vrf <name>. To see the forwarding information base for each VRF, you can use the command show ip cef vrf <name>

    DELL-Erman O

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • apt5

    1 Rookie

    •

    14 Posts

    0

    0

    Posted January 12th, 2024 15:06

    I did show ip route; that's how I know it's not working as intended. show ip cef does not appear to be a Dell command.

  • DELL-Erman O

    Moderator

    •

    2984 Posts

    •

    14874 Points

    0

    0

    Posted January 12th, 2024 15:15

    Maybe this is a software issue. I didn't come across an article directly related to this. Let's see what our community will suggest.

    DELL-Erman O

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • DELL-Charles R

    Moderator

    •

    4730 Posts

    •

    25476 Points

    0

    0

    Posted January 12th, 2024 17:07

    Hello,

     

    I had another observation is that the route-map usually has a match clause and a set clause.

    In your case there is a match clause only.

    route-map voice-export permit 10

     

           match ip address voice-export

    For example on page 1045 of the same document, this is the syntax for the set clause:

    set {ip | ipv6} vrf vrf-name next-hop next-hop-ipv4address

    This next-hop-address is reachable through a different VRF instance in your case Voice VRF.

    If the next-hop is reachable on the specified vrf VOICE instance, the packet will be redirected;

    otherwise, the packet follows the regular routing flow.

    Possibly in your case adding the SET clause can redirect only the Matched traffic.

     

    DELL-Charles R

    Social Media and Communities Professional
    Dell Technologies | Enterprise Support Services
    #IWork4Dell

    Did I answer your query? Please click on ‘Accept as Solution’. ‘Thumbs up’ the posts you like!

  • apt5

    1 Rookie

    •

    14 Posts

    0

    0

    Posted January 12th, 2024 18:14

    I looked at set next-hop and all of the variations call for a next hop IP address and it needs to be more general; there is no single interface to direct the traffic to. I set a community string just to see if any set clause would work, but it didn't change the outcome.

    The examples I've seen, such as on page 754 of the 10.5.4 User Guide, do not include a set clause. I can't make a protocol source, as in that example, work for this. 

    I wonder if there is some disconnect between the prefix list and the route map. There is supposed to be a default deny but even a list with specific deny statements for the rest of the RFC1918 address space has no effect. It's like either the prefix list or calling it from the route map don't actually work.

  • DELL-Chris H

    7 Practitioner

    •

    9682 Posts

    •

    48046 Points

    0

    0

    Posted January 12th, 2024 18:22

    Apt5,

     

    You may want to consider calling into support, as it may require direct access and reviewing the logs to find the specific source of the leak and to correct it. 

     

     

     

    DELL-Chris H

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

  • apt5

    1 Rookie

    •

    14 Posts

    0

    0

    Posted January 12th, 2024 19:11

    I just deleted the route export and changed the route map to set the metric to 15. Then I ran "show ip bgp" and none of the routes have the metric changed by the route map. So none of the route maps I've tried seem to be working. That is apparently the problem; there is some hook or parameter missing to make the route maps work.