R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

245
ip-prefix-name: Name of an IP prefix list used to filter outgoing routing information, a string of 1 to 19
characters.
direct: Filters direct routes.
isis process-id: Filters outgoing routes redistributed from an ISIS process. The ID is in the range of 1 to
65535.
ospf process-id: Filters outgoing routes redistributed from the OSPF process with an ID in the range of 1
to 65535.
rip process-id: Filters outgoing routes redistributed from a RIP process. The ID is in the range of 1 to
65535.
static: Filters static routes.
Usage guidelines
If no routing protocol is specified, all outgoing routes are filtered.
To reference an advanced ACL (with a number in the range of 3000 to 3999) in the command, configure
the ACL in one of the following ways:
To deny/permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ip source
sour-addr sour-wildcard.
To deny/permit a route with the specified destination and mask, use rule [ rule-id ] { deny | permit }
ip source sour-addr sour-wildcard destination dest-addr dest-wildcard.
The source keyword specifies the destination address of a route, and the destination keyword specifies
the subnet mask of the route. (The subnet mask must be valid. Otherwise, the configuration is ineffective.)
Examples
# In BGP view, reference ACL 2000 to filter all outgoing routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] filter-policy 2000 export
# In BGP-VPN instance view, reference ACL 2000 to filter all outgoing routes. (The VPN has been
created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] filter-policy 2000 export
# Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and reference ACL 3000 to filter
outgoing routes.
<Sysname> system-view
[Sysname] acl number 3000
[Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.0 0
[Sysname-acl-adv-3000] rule 100 deny ip
[Sysname-acl-adv-3000] quit
[Sysname] bgp 100
[Sysname-bgp] filter-policy 3000 export
filter-policy import (BGP/BGP-VPN instance view)
Use filter-policy import to configure the filtering of incoming routing information.