Administrator Guide
5 Filter routes based on the criteria in the congured route map.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | peer-group-name} filter-list as-path-name {in | out}
Congure the following parameters:
• ip-address or peer-group-name: enter the neighbor’s IP address or the peer group’s name.
• as-path-name: enter the name of a congured AS-PATH ACL.
• in: apply the AS-PATH ACL map to inbound routes.
• out: apply the AS-PATH ACL to outbound routes.
To view which commands are congured, use the show config command in CONFIGURATION ROUTER BGP mode and the show ip
as-path-access-list command in EXEC Privilege mode.
To forward all routes not meeting the AS-PATH ACL criteria, include the permit .* lter in your AS-PATH ACL.
Redistributing Routes
In addition to ltering routes, you can add routes from other routing instances or protocols to the BGP process. With the redistribute
command, you can include ISIS, OSPF, static, or directly connected routes in the BGP process.
To add routes from other routing instances or protocols, use any of the following commands in ROUTER BGP mode.
• Include, directly connected or user-congured (static) routes in BGP.
ROUTER BGP or CONF-ROUTER_BGPv6_ AF mode
redistribute {connected | static} [route-map map-name]
Congure the map-name parameter to specify the name of a congured route map.
• Include specic ISIS routes in BGP.
ROUTER BGP or CONF-ROUTER_BGPv6_ AF mode
redistribute isis [level-1 | level-1-2 | level-2] [metric value] [route-map map-name]
Congure the following parameters:
• level-1, level-1-2, or level-2: Assign all redistributed routes to a level. The default is level-2.
• metric value: The value is from 0 to 16777215. The default is 0.
• map-name: name of a congured route map.
• Include specic OSPF routes in IS-IS.
ROUTER BGP or CONF-ROUTER_BGPv6_ AF mode
redistribute ospf process-id [match external {1 | 2} | match internal] [metric-type {external
| internal}] [route-map map-name]
Congure the following parameters:
• process-id: the range is from 1 to 65535.
• match external: the range is from 1 or 2.
• match internal
• metric-type: external or internal.
• map-name: name of a congured route map.
Border Gateway Protocol IPv4 (BGPv4)
195










