Quick Reference Guide

PowerConnect B-Series TI24X Configuration Guide 801
53-1002269-02
Filtering
25
PowerConnect(config)# route-map NetMap permit 1
PowerConnect(config-routemap NetMap)# match ip address 1
Syntax: match ip address <name-or-num>
Syntax: match ip address prefix-list <name>
The <name-or-num> parameter with the first command specifies an IP ACL and can be a number
from 1 – 199 or the ACL name if it is a named ACL. To configure an IP ACL, use the ip access-list or
access-list command. Refer to Chapter 13, “Configuring Rule-Based IP Access Control Lists”.
The <name> parameter with the second command specifies an IP prefix list name. To configure an
IP prefix list, refer to “Defining IP prefix lists” on page 795.
Matching based on next-hop router
To construct match statements for a route map that match based on the IP address of the next-hop
router, use either of the following methods. You can use the results of an IP ACL or an IP prefix list
as the match condition.
To construct a route map that matches based on the next-hop router, enter commands such as the
following.
PowerConnect(config)# route-map HopMap permit 1
PowerConnect(config-routemap HopMap)# match ip next-hop 2
Syntax: match ip next-hop <num>
Syntax: match ip next-hop prefix-list <name>
The <num> parameter with the first command specifies an IP ACL and can be a number from 1 –
199 or the ACL name if it is a named ACL. To configure an IP ACL, use the ip access-list or
access-list command. Refer to Chapter 13, “Configuring Rule-Based IP Access Control Lists”.
The <name> parameter with the second command specifies an IP prefix list name. To configure an
IP prefix list, refer to “Defining IP prefix lists” on page 795.
Matching based on the route source
To match a BGP4 route based on its source, use the match ip route-source statement. Here is an
example.
PowerConnect(config)# access-list 10 permit 192.168.6.0 0.0.0.255
PowerConnect(config)# route-map bgp1 permit 1
PowerConnect(config-routemap bgp1)# match ip route-source 10
The first command configures an IP ACL that matches on routes received from 192.168.6.0/24.
The remaining commands configure a route map that matches on all BGP4 routes advertised by
the BGP4 neighbors whose addresses match addresses in the IP prefix list. You can add a set
statement to change a route attribute in the routes that match. You also can use the route map as
input for other commands, such as the neighbor and network commands and some show
commands.
Syntax: match ip route-source <ACL> | prefix <name>
The <ACL> | prefix <name> parameter specifies the name or ID of an IP ACL, or an IP prefix list.