The display bgp routing-table peer no-advertise command displays the routes that a device is prevented from advertising to a specified peer in different address families.
display bgp routing-table peer ipv4-address no-advertise network [ mask | mask-length ]
display bgp ipv6 routing-table peer ipv6-address no-advertise ipv6–network [ prefix-length ]
display bgp vpnv4 vpn-instance vpn-instance-name routing-table peer ipv4-address no-advertise network [ mask | mask-length ]
display bgp vpnv4 all routing-table peer ipv4-address no-advertise network [ mask | mask-length ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)
display bgp ipv6 routing-table peer ipv4-address no-advertise ipv6–network [ prefix-length ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)
display bgp multicast routing-table peer ipv4-address no-advertise network [ mask | mask-length ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)
display bgp vpnv6 all routing-table peer ipv4-address no-advertise ipv6–network [ prefix-length ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)
display bgp vpnv6 vpn-instance vpn-instance-name routing-table peer ipv6-address no-advertise ipv6–network [ prefix-length ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)
display bgp l2vpn-ad routing-table peer ipv4-address no-advertise network (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)
Parameter | Description | Value |
---|---|---|
peer ipv4-address |
Displays the routes that a device is prevented from advertising to the specified IPv4 peer. |
The value is in dotted decimal notation. |
network |
Displays the routes with the specified destination IPv4 address that are prevented from being advertised. |
The value is in dotted decimal notation. |
mask |
Specifies the subnet mask of the specified IPv4 address. |
The value is in dotted decimal notation. |
mask-length |
Specifies the subnet mask length of the specified IPv4 address. |
The value is an integer that ranges from 0 to 32. |
vpnv4 |
Displays the routes that a device is prevented from advertising to a specified peer in the VPNv4 address family. |
- |
all |
Displays the routes that a device is prevented from advertising to a specified peer in all VPN instances of the current address family. |
- |
vpn-instance vpn-instance-name |
Displays the routes that a device is prevented from advertising to a specified peer in the specified VPN instance of the current address family. |
The value must be an existing VPN instance name. |
multicast |
Displays the routes that a device is prevented from advertising to a specified peer in the IPv4 multicast address family. |
- |
ipv6 |
Displays the routes that a device is prevented from advertising to a specified peer in the IPv6 unicast address family. |
- |
peer ipv6-address |
Displays the routes that a device is prevented from advertising to the specified IPv6 peer. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
ipv6–network |
Displays the routes with the specified destination IPv6 address that are prevented from being advertised. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
prefix-length |
Specifies the prefix length of an IPv6 address. |
The value is an integer that ranges from 0 to 128. |
vpnv6 |
Displays the routes that a device is prevented from advertising to a specified peer in the VPNv6 address family. |
- |
l2vpn-ad |
Displays the routes that a device is prevented from advertising to a specified peer in the L2VPN-AD address family. |
- |
To check the routes that a device is prevented from advertising to a specified peer in different address families, run the display bgp routing-table peer no-advertise command. The command output also includes the reasons why the routes are not advertised.
You can specify an address family to check the routes that a device is prevented from advertising to a specified peer in the address family. If you do not specify any address family, the command output shows the routes that a device is prevented from advertising to a specified peer in the IPv4 unicast address family.
# Display the route 10.3.3.4/32 that a device is prevented from advertising to peer with IP address 192.168.1.1 in the IPv4 unicast address family.
<HUAWEI> display bgp routing-table peer 192.168.1.1 no-advertise 10.3.3.4 32
BGP routing table entry information of 10.3.3.4/32:
From: 192.168.1.1 (10.1.1.1)
Route Duration: 22h36m17s
Relay IP Nexthop: 10.1.1.1
Relay IP Out-Interface: Vlanif100
Original nexthop: 192.168.1.1
Qos information : 0x0
AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, best, select, active, pre 255, IGP cost 1
No advertise without config reflect-client
Item |
Description |
---|---|
From |
Peer from which the route was received. |
Route Duration |
Duration of the route. |
Relay IP Nexthop |
Next-hop IP address to which the route is iterated. |
Relay IP Out-Interface |
Outbound interface to which the route is iterated. |
Original nexthop |
Original next-hop IP address of the route. |
Qos information |
QoS information.
|
AS-path |
AS_Path attribute. Nil indicates that the attribute value is null. |
origin |
Origin attribute:
|
MED |
MED of the route. |
localpref |
Local_Pref of the BGP route. |
pref-val |
PrefVal of the route. |
valid |
Valid route. |
internal |
Internal route. |
best |
Optimal route. |
select |
Selected route. |
active |
Active route. |
pre 255 |
Priority of the route (255 in this example). |
IGP cost 1 |
IGP cost of the route (1 in this example). |
No advertise without config reflect-client |
Reason why the route is not advertised:
|