Route policy prefix commands

prefix-list

Syntax

[no] prefix-list name

Context

config>router>policy-options

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

Commands in this context configure a prefix list to use in route policy entries.

The no form of this command deletes the named prefix list.

Parameters

name

Specifies the prefix list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.

prefix

Syntax

[no] prefix [ipv-prefix/prefix-length] [exact | longer | through length | prefix-length-range length1-length2]

no prefix [ipv-prefix/prefix-length] [exact | longer | through length | prefix-length-range length1-length2]

Context

config>router>policy-options>prefix-list

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command creates a prefix entry in the route policy prefix list.

The no form of this command deletes the prefix entry from the prefix list.

Parameters

ip-prefix

Specifies the IP prefix for a prefix list entry, in dotted decimal notation.

Values

ipv4-prefix:

a.b.c.d (host bits must be 0)

ipv4-prefix-length:

0 to 32

ipv6-prefix - x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

x - [0 to FFFF]H

d - [0 to 255]D

ipv6-prefix-le - [0 to 128]

<exact|longer|thro*> : keyword

<length> : [0 to 128] (prefix-length <= length)

<length1-length2> : length1/length - [0 to 128] (prefix-length <= length1 <=length2)

exact

Keyword to specify the prefix list entry only matches the route with the specified ip-prefix and prefix mask (length) values.

longer

Keyword to specify the prefix list entry matches any route that matches the specified ip-prefix and prefix mask length values greater than the specified mask.

through length

Specifies the prefix list entry matches any route that matches the specified ip-prefix and has a prefix length between the specified length values inclusive.

Values

0 to 32

prefix-length-range length1 - length2

Specifies a route must match the most significant bits and have a prefix length with the specific range. The range is inclusive of start and end values.

Values

0 to 32, length2 > length1