D-Link DGS-3600 Switch User Manual


 
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
339
Example usage:
The following example creates one IP prefix list named 1:
DGS-3627:admin# create ip prefix_list 1
Command: create ip prefix_list 1
Success.
DGS-3627:admin#
config ip prefix_list
Purpose Used to configure a prefix list by adding/deleting a prefix list entry or adding/deleting the
description of a prefix_list.
Syntax
config ip prefix_list <list_name 16> [[add | delete] {sequence <value 1-65535 >}
<network_address> {ge <value 1-32>}{le <value 1-32>}[deny | permit]|[description
<desc 80> | clear_description]]
Description The config ip prefix_list command defines the rule entry for an IP route prefix list.
A prefix list can have multiple rule entries; each is represented by a sequence number.
The rule with the lower sequence number will be evaluated first.
If the sequence number is not specified for the defined rule entry, the sequence number will
be automatically given. The automatically given sequence number will be a multiple of 5.
Therefore, if the defined rule is the first rule in the prefix list, the automatically given
sequence number will be 5. If the defined rule is not the first rule in the prefix list, the
sequence number will be the number that is a multiple of 5 and larger than the largest
sequence number of an existing rule in the prefix list.
A prefix list consists of an IP address and a bit mask. The bit mask is entered as a number
from 1 to 32. An implicit deny is applied to traffic that does not match any prefix-list entry.
Parameters
<list_name 16> - Specifies the name for the prefix list.
sequence - Specifies the sequence number for the rule entry.
deny - The specified network will be denied.
permit - The specified network will be permitted.
add - Add a rule entry.
delete - Delete a rule entry.
<network_address> - Configures the network address
clear_discription - Specifies the description for the prefix list to null.
discription - Specifies the description for the prefix list.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
The following example configures a prefix list 1 to permit routes from the 10.0.0.0/8 network that have a mask length that
is less than or equal to 24 bits:
DGS-3627:admin# config ip prefix_list 1 add sequence 10 10.0.0.0/8 le 24 permit
Command: config ip prefix_list 1 add sequence 10 10.0.0.0/8 le 24 permit
Success.
DGS-3627:admin#