| Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
- Enter your password if prompted.
|
| Step 2 |
configure
terminal
Example:
Device# configure terminal
|
Enters global configuration mode.
|
| Step 3 |
ip
prefix-list
list-name
[seq
seq-value] {deny
network
/
length |
permit
network
/
length} [ge
ge-value] [le
le-value]
Example:
Device(config)# ip prefix-list FILTER seq 10 permit 192.168.1.0/24
|
Creates a prefix list for prefix-based outbound route filtering.
- Outbound route filtering supports prefix length matching, wildcard-based prefix matching, and exact address prefix matching on a per address-family basis.
- The prefix list is created to define the outbound route filter. The filter must be created when the outbound route filtering capability is configured to be advertised in send mode or both mode. It is not required when a peer is configured to advertise receive mode only.
- The example creates a prefix list named FILTER that defines the 192.168.1.0/24 subnet for outbound route filtering.
|
| Step 4 |
router
bgp
autonomous-system-number
Example:
Device(config)# router bgp 100
|
Enters router configuration mode, and creates a BGP routing process.
|
| Step 5 |
address-family
ipv4
[unicast |
multicast |
vrf
vrf-name]
Example:
Device(config-router)# address-family ipv4 unicast
|
Specifies the IPv4 address family and enters address family configuration mode.
- The
unicast keyword specifies the IPv4 unicast address family. By default, the router is placed in address family configuration mode for the IPv4 unicast address family if the
unicast keyword is not specified with the
address-family
ipv4 command.
- The
multicast keyword specifies IPv4 multicast address prefixes.
- The
vrf keyword and
vrf-name argument specify the name of the VRF instance to associate with subsequent IPv4 address family configuration mode commands.
| Note
| Outbound route filtering is configured on a per-address family basis.
|
|
| Step 6 |
neighbor
{ip-address |
peer-group-name}
remote-as
autonomous-system-number
Example:
Device(config-router-af)# neighbor 10.1.1.1 remote-as 200
|
Establishes peering with the specified neighbor or peer group. BGP peering must be established before ORF capabilities can be exchanged.
- The example establishes peering with the 10.1.1.1 neighbor.
|
| Step 7 |
neighbor
ip-address
ebgp-multihop
[hop-count]
Example:
Device(config-router-af)# neighbor 10.1.1.1 ebgp-multihop
|
Accepts or initiates BGP connections to external peers residing on networks that are not directly connected.
|
| Step 8 |
neighbor
ip-address
capability
orf
prefix-list
[send |
receive |
both]
Example:
Device(config-router-af)# neighbor 10.1.1.1 capability orf prefix-list both
|
Enables the ORF capability on the local router, and enables ORF capability advertisement to the BGP peer specified with the
ip-address argument.
- The
send keyword configures a router to advertise ORF send capabilities.
- The
receive keyword configures a router to advertise ORF receive capabilities.
- The
both keyword configures a router to advertise send and receive capabilities.
- The remote peer must be configured to either send or receive ORF capabilities before outbound route filtering is enabled.
- The example configures the router to advertise send and receive capabilities to the 10.1.1.1 neighbor.
|
| Step 9 |
neighbor
{ip-address |
peer-group-name}
prefix-list
prefix-list-name {in |
out}
Example:
Device(config-router-af)# neighbor 10.1.1.1 prefix-list FILTER in
|
Applies an inbound prefix-list filter to prevent distribution of BGP neighbor information.
- In this example, the prefix list named FILTER is applied to incoming advertisements from the 10.1.1.1 neighbor, which prevents distribution of the 192.168.1.0/24 subnet.
|
| Step 10 |
end
Example:
Device(config-router-af)# end
|
Exits address family configuration mode, and enters privileged EXEC mode.
|
| Step 11 |
clear
ip
bgp
{ip-address |
*}
in
prefix-filter
Example:
Device# clear ip bgp 10.1.1.1 in prefix-filter
|
Clears BGP outbound route filters and initiates an inbound soft reset.
- A single neighbor or all neighbors can be specified.
| Note
| The inbound soft refresh must be initiated with the
clear
ip
bgp command in order for this feature to function.
|
|