Configuration commands

Use these M4500 CLI commands to create IPv6 prefix lists, match IPv6 addresses, set IPv6 next hops in route maps, and clear prefix lists.

ipv6 prefix-list

To create a IPv6 prefix list or add a prefix list entry, use the ipv6 prefix-list command in Global Configuration mode. An IPv6 prefix list can contain only IPv6 addresses. Prefix lists allow matching of route prefixes with those specified in the prefix list. Each prefix list includes of a sequence of prefix list entries ordered by their sequence numbers. A router sequentially examines each prefix list entry to determine if the route's prefix matches that of the entry. For IPv6 routes, only IPv6 prefix lists are matched. An empty or nonexistent prefix list permits all prefixes. An implicit deny is assume if a given prefix does not match any entries of a prefix list. Once a match or deny occurs the router does not go through the rest of the list. An IPv6 prefix list may be used within a route map to match a route's prefix using the command "match ipv6 address" A route map may contain both IPv4 and IPv6 prefix lists. If a route being matched is an IPv6 route, only the IPv6 prefix lists are matched. Up to 128 prefix lists may be configured. The maximum number of statements allowed in prefix list is 64. These numbers indicate only IPv6 prefix lists. IPv4 prefix lists may be configured in appropriate numbers independently. To delete a IPv6 prefix list or a statement in a prefix list, use the no form of this command. The command no ipv6 prefix-list list-name deletes the entire prefix list. To remove an individual statement from a prefix list, you must specify the statement exactly, with all its options.

Default No prefix lists are configured by default. When neither the ge nor the le option is configured, the destination prefix must match the network/length exactly. If the ge option is configured without the le option, any prefix with a network mask greater than or equal to the ge value is considered a match. Similarly, if the le option is configured without the ge option, a prefix with a network mask less than or equal to the le value is considered a match.
Format ipv6 prefix-list <list-name> {[seq <seq number>] {permit | deny} ip6-prefix/prefix-length [ge <length>] [le <length>] | description <text> | renumber [<renumber-interval> [<first-statement-number>]]} no ipv6 prefix-list <list-name> {[seq <seq number>] {permit | deny} ip6-prefix/prefix-length [ge <length>] [le <length>] | description}
Mode Global Config
Fields Definition
list-name The text name of the prefix list. Up to 32 characters.
seq number (Optional) The sequence number for this prefix list statement. Prefix list statements are ordered from lowest sequence number to highest and applied in that order. If you do not specify a sequence number, the system will automatically select a sequence number five larger than the last sequence number in the list. Two statements may not be configured with the same sequence number. The value ranges from 1 to 4,294,967,294.
permit Permit routes whose destination prefix matches the statement.
deny Deny routes whose destination prefix matches the statement.
ipv6-prefix/prefix-length Specifies the match criteria for routes being compared to the prefix list statement. The ipv6-prefix can be any valid IPv6 prefix where the address is specified in hexadecimal using 16-bit values between colons. The prefix-length is the length of the IPv6 prefix, given as a decimal value that indicates how many of the high-order contiguous bits of the address comprise the prefix (the network portion of the address). A slash mark must precede the decimal value.
ge length (Optional) If this option is configured, specifies a prefix length greater than or equal to the ipv6-prefix/prefix-length. It is the lowest value of a range of the length.
le length (Optional) If this option is configured, specifies a prefix length less than or equal to the ipv6-prefix/prefix-length. It is the highest value of a range of the length.
<renumber-interval> <first-statement-number> (Optional) Provides the option to renumber the sequence numbers of the IPv6 prefix list statements with a given interval starting from a particular sequence number. The valid range for renumber-interval is 1 - 100, and the valid range for first-statement-number is 1 - 1000

match ipv6 address

Use this command to configure a route map to match based on a destination prefix. prefix-list prefix-listname identifies the name of an IPv6 prefix list used to identify the set of matching routes. Up to eight prefix lists may be specified. If multiple prefix lists are specified, a match occurs if a prefix matches any one of the prefix lists. If you configure a match ipv6 address statement within a route map section that already has a match ipv6 address statement, the new prefix lists are added to the existing set of prefix lists, and a match occurs if any prefix list in the combined set matches the prefix.

To delete a match statement from a route map, use the no form of this command.

Default No match criteria are defined by default
Format

match ipv6 address prefix-list <list-name> [list-name...]

no match ipv6 address prefix-list <list-name> [list-name...]

Mode Route Map Config

Display Messages

Fields Definition
list-name The name of a prefix list used to identify the set of matching routes. Up to eight prefix lists may be specified.

set ipv6 next-hop

To set the IPv6 next hop of a route, use the set ipv6 next-hop command in Route Map Configuration mode. When used in a route map applied to UPDATE messages received from a neighbor, the command sets the next hop address for matching IPv6 routes received from the neighbor.

When used in a route map applied to UPDATE messages sent to a neighbor, the command sets the next hop address for matching IPv6 routes sent to the neighbor. If the address is a link local address, the address is assumed to be on the interface where the UPDATE is sent or received. If the command specifies a global IPv6 address, the address is not required to be on a local subnet.

To remove a set command from a route map, use the no form of this command.

Default None
Format

set ipv6 next-hop <next-hop-ipv6-address >

no set ipv6 next-hop

Mode Route Map Config

Display Messages

Fields Definition
next-hop-ipv6-address The IPv6 address set as the Network Address of Next Hop field in the MP_NLRI attribute of an UPDATE message.

clear ipv6 prefix-list

Use this command to reset and clear IPv6 prefix-list hit counters. The hit count is a value indicating the number of matches to a specific prefix list entry.

Format clear ipv6 prefix-list [list-name] [ipv6-prefix/prefix-length]
Mode Privileged Exec

Display Messages

Fields Definition
list-name (Optional) Name of the prefix list from which the hit count is to be cleared.
ipv6-prefix/prefix-length (Optional) IPv6 prefix number and length (in bits) of the network mask. If this option is specified, hit counters are only cleared for the matching statement.