Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »


The set protocols bgp neighbor prefix-list command configures an IPv4 prefix list to advertise or receive routes from peers.

The delete protocols  bgp neighbor prefix-list command disables this feature.


Command Syntax

set protocols bgp [vrf <vrf-name>] [ipv4 unicast|ipv4 labeled-unicast|ipv6 unicast|ipv6 labeled-unicast] neighbor <bgppeer> prefix-list <prefix-list-v4> {in|out}

delete protocols bgp [vrf <vrf-name>] [ipv4 unicast|ipv4 labeled-unicast|ipv6 unicast|ipv6 labeled-unicast] neighbor <bgppeer> prefix-list <prefix-list-v4{in|out}


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

neighbor <bgppeer>Specifies the IP address of a peer or a Peer-Group.
 prefix-list <prefix-list-v4>Specifies the IPv4 prefix list.
{in|out}

Sets the filter policy to apply to either the received routes from the neighbor (in) or the advertised routes to the neighbor (out).


Example
• This example configures an IPv4 prefix list to receive routes from peers.

admin@XorPlus# set protocols bgp neighbor 2.2.2.2 prefix-list List1 in
admin@XorPlus# commit


  • No labels