ipv6 prefix-list

Use this command to create an entry for an ipv6 prefix-list.

Router starts to match prefixes from the top of the prefix list, and stops whenever a match or deny occurs. To promote efficiency, use the seq parameter and place common matches or denials towards the top of the list. The sequence values are generated in the sequence of 5.

The parameters ge and le specify the range of the prefix length to be matched.

Use the no parameter with this command to delete the prefix-list entry.

Command Syntax

Copy
ipv6 prefix-list WORD
 (deny|permit) (X:X::X:X/M|any)
 (deny|permit) X:X::X:X/M ge <0-128>
 (deny|permit) X:X::X:X/M ge <0-128> le <0-128>
 (deny|permit) X:X::X:X/M le <0-128>
 (deny|permit) X:X::X:X/M le <0-128> ge <0-128>
 seq <1-4294967295> (deny|permit) (X:X::X:X/M|any)
 seq <1-4294967295> (deny|permit) X:X::X:X/M ge <0-128>
 seq <1-4294967295> (deny|permit) X:X::X:X/M ge <0-128> le <0-128>
 seq <1-4294967295> (deny|permit) X:X::X:X/M le <0-128>
 seq <1-4294967295> (deny|permit) X:X::X:X/M le <0-128> ge <0-128>
 description LINE
 no seq <1-4294967295> (deny|permit) (X:X::X:X/M|any)
 no description
no ipv6 prefix-list WORD
ipv6 prefix-list sequence-number
no ipv6 prefix-list sequence-number

Parameters

WORD

Name of the prefix list.

deny

Reject packets.

permit

Accept packets.

X:X::X:X/M

IP address mask and length of the prefix list mask.

any

Take all packets of any length. This is the same as specifying ::/0 for X:X::X:X/M.

le

Maximum prefix length match

ge

Minimum prefix length match

<0-128>

Prefix length to match

<1-4294967295>

Sequence number of the prefix list.

sequence-number

To suppress sequence number generation, give the no ipv6 prefix-list sequence-number command. If you disable the generating sequence numbers, you must specify the sequence number for each entry using the sequence number parameter in the ipv6 prefix-list command.
To enable sequence number generation, give the ipv6 prefix-list sequence-number command.

LINE

Up to 80 characters describing this prefix-list.

Default

None

Command Mode

Configure mode

Applicability

This command was introduced before OcNOS version 1.3.

Examples

Copy
#configure terminal
(config)#ipv6 prefix-list mylist
(config-ipv6-prefix-list)#seq 12345 deny 3ffe:345::/16 le 22 ge 14