User's Manual

Table Of Contents
457
Users Manual of CS-6306R
45.4.2.1.7 Configuring Neighbor-Based BGP Routing Filtration
The router software provides the following methods to filter the BGP routes of the designated neighbor:
(1) Use the Aspath list filter with the commands ip aspath-list and neighbor filter-list.
Command Purpose
ip aspath-listaspaths-list-name {permit | deny}
as-regular-expression
Defines a BGP-related access table.
router bgpautonomous-system
Enters the router configuration mode.
neighbor {ip-address } filter-listaspath-list-name {in | out }
Establishes a BGP filter.
(2) Use the access list with the commands ip access-list and neighbor distribute-list.
Command Purpose
ip access-liststandardaccess-list-name
Defines an access list.
router bgpautonomous-system
Enters the router configuration mode.
neighbor {ip-address } distribute-listaccess-list-name {in | out }
Establishes a BGP filter.
(3) Use the prefix list with the commands ip prefix-list and neighbor prefix-list.
Command Purpose
ip prefix-listprefixs-list-name |sequence number
permit |denyA.B.C.D/n ge x le y
Defines a prefix list.
router bgpautonomous-system
Enters the router configuration mode.
neighbor {ip-address } prefix-listprefix-list-name
{in | out}
Establishes a BGP filter.
(4) Use the route mapping with the commands route-map and neighbor route-map.
Route mapping can filter and change the routing attribute.
For details, refer to the section “Example for Neighbor-Based BGP Path Filtration”.
45.4.2.1.8 Configuring Port-Based BGP Route Filtration
You can use the access list or the prefix list to configure the port-based BGP route filtration. You can filter the
network number or the gateway address of the route. You can designate the access-list option to use the
access list, or designate the prefix-list option to use the prefix list to filter the network number of the route.
You also can designate the gateway option to use the access list to filter the Nexthop attribute of the route.
The access-list option and the prefix-list option cannot be used together. The asterisk mark (*) can be
designated to filter routes on all ports.
Run the following command in BGP configuration mode to configure the port-based BGP route filtration.
Command Purpose
filter interface in | out}〔 access-list
access-list-name〕〔 prefix-list prefix-list-name
gateway access-list-name
Configures the port-based BGP route
filtration.
For details, refer to the section “Example for Port-Based BGP Route Filtration”.