3Com 3031 Command Reference Manual page 643

3com 3031: reference guide
Hide thumbs Also See for 3031:
Table of Contents

Advertisement

filter-policy export
filter-policy import
<3Com> display bgp routing-table regular-expression ^600$
Flags:
- valid,
D - damped, H - history,
I - internal,
Destination/Mask
Pref
As-Path
--------------------------------------------------------------------
1.1.1.0/24
256
1.1.2.0/24
256
1.1.3.0/24
256
2.2.3.0/24
256
4.4.4.0/24
256
9.9.9.0/24
256
10.10.10.0/24
256
Syntax
filter-policy { acl-number | ip-prefix ip-prefix-name } export [ protocol ]
undo filter-policy { acl-number | ip-prefix ip-prefix-name } export [ protocol ]
View
BGP unicast view, multicast view, VPNv4 view, VPN instance view
Parameter
acl-number: Specifies the number of access control list matching the
destination address field of routing information, ranging from 1 to 199.
ip-prefix-name: Specifies the name of the address prefix list matching the
destination address field of routing information, ranging from 1 to 19.
protocol: Routing information of which kind of route protocol to be filtered. It
includes direct, ospf, ospf-ase, ospf-nssa, isis, rip, and static at present.
Description
Using the filter-policy export command, you can filter the advertised routes and
only the routes passing the filter can be advertised by BGP. Using the undo
filter-policy export command, you can cancel the filtering to the advertised routes.
By default, the advertised routing information is not filtered.
If the parameter protocol is specified, only the imported route generated by the
specified protocol is filtered and the imported routes generated by other protocols
are not affected. If the parameter protocol is not specified, the imported route
generated by any protocol will be filtered.
Example
Use acl 3 to filter the routing information advertised by all BGPs.
[3Com-bgp] filter-policy 3 export
Syntax
filter-policy gateway ip-prefix-name import
undo filter-policy gateway ip-prefix-name import
filter-policy { acl-number | ip-prefix ip-prefix-name } import
undo filter-policy { acl-number | ip-prefix ip-prefix-name } import
BGP Configuration Commands
^ - best,
S – aggregate suppressed
Next-hop
Med
10.10.10.1
0
10.10.10.1
0
10.10.10.1
0
10.10.10.1
0
10.10.10.1
0
10.10.10.1
0
10.10.10.1
0
643
Local-Pref
Origin
IGP
200
IGP
200
IGP
200
INC
200
IGP
200
INC
200
IGP
200

Advertisement

Table of Contents
loading

Table of Contents