DXS-3600 Series 10GbE Layer 2/3 Switch CLI Reference Guide
102
7-49 neighbor prefix-list
This command is used to set a routing policy to a specified peer or a peer group based on the prefix list. To remove a
prefix list, use the no form of this command.
neighbor {
IP-ADDRESS
|
PEER-GROUP-NAME
} prefix-list
PREFIX-LIST-NAME
{in | out}
no neighbor {
IP-ADDRESS
|
PEER-GROUP-NAME
} prefix-list {in | out}
Parameters
Example
This example shows how to create a peer group named ‘MAIN-GROUP’.
DXS-3600-32S#configure terminal
DXS-3600-32S(config)#router bgp 40000
DXS-3600-32S(config-router)#neighbor MAIN-GROUP peer-group
DXS-3600-32S(config-router)#
IP-ADDRESS
Specifies the IP address of the BGP peer.
PEER-GROUP-NAME
Specifies the name of a Border Gateway Protocol (BGP) peer group. The maximum
length is 16 characters.
PREFIX-LIST-NAME
Specifies the name of a prefix list. The length is up to 16 characters.
in
Specifies the filter list that is applied to incoming advertisements from that neighbor.
out
Specifies the filter list that is applied to outgoing advertisements to that neighbor.
Default
All external and advertised address prefixes are distributed to BGP neighbor.
Command Mode
Router Configuration Mode.
Address Family Configuration Mode (IPv4 Unicast, VPNv4 and VRF).
Command Default Level
Level: 8. (
EI Mode Only Command
)
Usage Guideline
The command is used to configure the filter related setting for a BGP neighbor or a
peer group based on the prefix list.
If the prefix list doesn’t exist or the prefix list does exist but has no filter entry defined,
it will permit all.
Use the
show ip bgp neighbors
or
show ip bgp peer-group
command to verify
your settings.
Example
This example shows how to configure the BGP neighbor 172.18.1.1 to apply the
prefix list named myprefix to incoming advertisements:
Firstly, create an
ip prefix-list
named ‘myprefix’.
DXS-3600-32S#configure terminal
DXS-3600-32S(config)#ip prefix-list myprefix permit 172.20.0.0/16 le 32
DXS-3600-32S(config)#
Example
Then, set the routing policy to neighbor 172.18.1.1.
DXS-3600-32S#configure terminal
DXS-3600-32S(config)#router bgp 40000
DXS-3600-32S(config-router)#neighbor 172.18.1.1 remote-as 65200
DXS-3600-32S(config-router)#neighbor 172.18.1.1 prefix-list myprefix in
DXS-3600-32S(config-router)#
Summary of Contents for DXS-3600-16S
Page 1: ...CLI Reference Guide Product Model DXS 3600 Series Layer 2 3 Managed 10GbE Switch Release 1 10 ...
Page 232: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 224 ...
Page 301: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 293 ...
Page 349: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 341 ...
Page 494: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 486 ...
Page 564: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 556 ...
Page 649: ...DXS 3600 Series 10GbE Layer 2 3 Switch CLI Reference Guide 641 ...