Routing Policy Commands; Ip Policy Route-Map; Ip Prefix-List - Ubiquiti EDGESWITCH ES-24-250W Command Reference Manual

Hide thumbs Also See for EDGESWITCH ES-24-250W:
Table of Contents

Advertisement

EdgeSwitch CLI Command Reference

Routing Policy Commands

This section describes the commands you use to configure IP routing policies on the switch .

ip policy route-map

Use this command to identify a route map to use for policy-based routing on an interface specified by
route-map-name . Policy-based routing is configured on the interface that receives the packets, not on the
interface from which the packets are sent .
When a route-map applied on the interface is changed – that is, if new statements are added to route-map
or match/set terms are added or removed from route-map statement, or if route-map that is applied on an
interface is removed – then route-map needs to be removed from the interface and added back again in order
for the changed route-map configuration to be effective .
ip policy route-map-name
Format
Mode
Interface Config
Example: The following is an example of this command .
(UBNT EdgeSwitch) (Config)#interface 0/1
(UBNT EdgeSwitch) (Interface 0/1)#
(UBNT EdgeSwitch) (Interface 0/1)# #ip policy route-map equal-access
In order to disable policy based routing from an interface, use the
no ip policy route-map-name

ip prefix-list

To create a prefix list or add a prefix list entry, use the
mode . Prefix lists allow matching of route prefixes with those specified in the prefix list . Each prefix list includes
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 . An empty or nonexistent prefix list permits
all prefixes . An implicit deny is assumed 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 . A prefix list may be used within a route map to
match a route's prefix using the
Up to 128 prefix lists may be configured . The maximum number of statements allowed in the prefix list is 64 .
Default
No prefix lists are configured by default. When neither the
prefix must match the network/length exactly. If the
with a network mask greater than or equal to the
is configured without the
considered a match.
ip prefix-list list-name {[seq number] {permit | deny} network/length
Format
[ge length] [le length] | renumber renumber-interval first-statement-number}
Mode
Global Configuration
Parameter
list-name
seq number
permit
deny
network/length
ge length
Ubiquiti Networks, Inc.
match ip address
ge
option, a prefix with a network mask less than or equal to the
Description
The text name of the prefix list. Up to 32 characters.
(Optional) The sequence number for this prefix list statement. Prefix list statements are ordered by this
number (lowest to highest) and applied in that order. If no sequence number is specified, the system
automatically selects a sequence number five larger than the last sequence number in the list. Two
statements may not be assigned the same sequence number. The value ranges from 1 to 4,294,967,294.
Permit routes whose destination prefix matches the statement.
Deny routes whose destination prefix matches the statement.
Specifies the match criteria for routes being compared to the prefix list statement. The network can be
any valid IP prefix. The length is any IPv4 prefix length from 0 to 32.
(Optional) If this option is configured, then a prefix is only considered a match if its network mask
length is greater than or equal to this value. This value must be longer than the network length and
less than or equal to 32.
no
form of this command:
ip prefix-list
command in Global Configuration
command ( "match ip address" on page 335) .
ge
le
nor the
ge
option is configured without the
ge
value is considered a match. Similarly, if the
Routing Commands
option is configured, the destination
le
option, any prefix
le
option
le
value is
333

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Edgeswitch es-24-500wEdgeswitch es-48-750wEdgeswitch es-48-500wEdgeswitch es-24-250w

Table of Contents