D-Link DI-3660 [268/506] Configure the bgp route filtering based on port

D-Link DI-3660 [268/506] Configure the bgp route filtering based on port
Command Line Interface Reference Manual
268
Please Input the code of command to be excute(0-17): 7
input 2Select prefix-list option prompt is as below:
(00)WORD       Name of prefix-list
Please Input the code of command to be excute(0-0): 0
input 0Select WORD option prompt is as below:
Please input a string:
input string prompt is as below:
(00)in          Filter incoming routes
(01)out         Filter outgoing routes
Please Input the code of command to be excute(0-1): 
Select parameter .
4. Use the global command route-map and command neighbor route-map together to apply router mapping.
With route map you can not only filter but also change the route attribute, which will be presented in the following
chapter.
About the examples of route filtering based on neighbor, refer to the “Examples of the BGP Route Filtering based on
Neighbor“.
5.10.9 Configure the BGP Route Filtering based on Port
You can use the access list and the prefix list to configure the BGP route filtering based on port. You can filter the network
ID of the route, and you can also filter the gateway address of the route. You can specify the option access-list to use the
access list to filter the network ID of the route, specify the prefix-list option to use the prefix list to filter the network ID,
and specify the gateway option to use the access list to filter the Nexthop attribute of the route. You can even
synchronously filter the network ID and the Nexthop attribute of the route, but the access-list option cant be used along
with the prefix-list option. Specify *, you can filter the routes on all ports.
To configure the BGP route based on port, perform the following configruation in BGP configuration mode:
Command Purpose
filter interface in | out}〔 access-list access-list-name
prefix-list prefix-list-name〕〔 gateway access-list-name
Filter the BGP route based
on port.
In the prompt Select  option prompt is as below:
(00)interface-name
(01)* All interface
Please Input the code of command to be excute(0-1): 0
input 0Select interface-name option prompt is as below:
Please input a interface name:
input port then prompt is as below:
(00)in Filter incoming routing updates
(01)out Filter outgoing routing updates
Please Input the code of command to be excute(0-1):
Select port filter patternthen prompt is as below:
(00)access-list Filter routes by access-list
(01)gateway Filter gateway by access-list
(02)prefix-list Filter routes by prefix-list
Please Input the code of command to be excute(0-2):
Select parameter .
Prefer the “Examples of the BGP Route Map based on Portfor the examples of route filtering based on port.

Содержание

Скачать