< Home

display bgp routing-table peer no-advertise

Function

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.

Format

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)

Parameters

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.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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
Table 1 Description of the display bgp routing-table peer no-advertise command output

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.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

AS-path

AS_Path attribute. Nil indicates that the attribute value is null.

origin

Origin attribute:
  • IGP: indicates that the route is added to the BGP routing table using the network (BGP) command.
  • EGP: indicates that the route is learned through the EGP protocol.
  • Incomplete: indicates that the origin of the route cannot be identified. For example, if a route is imported using the import-route (BGP) command, its origin is Incomplete.

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:

  • No advertise with no-adv flag: The route carries the No-Advertise flag.

  • No advertise with peer default-route-advertise in vt family: The local device is configured to advertise only default routes to the peer in the VT address family.

  • No advertise with no-adv flag in community attr: The route carries the No-Advertise community attribute.

  • No advertise with no-export flag in community attr: The route carries the No-Export community attribute.

  • No advertise with no-export-subconfed flag in community attr: The route carries the No_Export_Subconfed community attribute.

  • No advertise by detail route with config aggregate: Specific routes for summarization are not advertised.

  • No advertise with config active-route-advertise: Only the active routes in the IP routing table are advertised.

  • No advertise with config peer upe and no export policy: The specified peer is a UPE, and the route fails to match the export policy.

  • No advertise without config reflect-client: No RR is configured.

  • No advertise with config reflect-client but without config reflect between-clients: Route reflection among RR clients is disabled.

  • No advertise for other reason: Other reasons prevent the route from being advertised.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >