display bgp network
Use display bgp network to display information about routes advertised by the network command and shortcut routes configured by the network short-cut command.
Syntax
display bgp [ instance instance-name ] network { ipv4 | ipv6 } { multicast | [ unicast ] [ vpn-instance vpn-instance-name ] }
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays information for the default BGP instance.
ipv4: Displays IPv4 address family information.
ipv6: Displays IPv6 address family information.
multicast: Displays BGP multicast address family information.
unicast: Displays BGP unicast address family information.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command displays routing information for the public network.
Usage guidelines
By default, the unicast keyword is used if neither the multicast keyword nor the unicast keyword is specified.
Examples
# Display information about routes advertised by the network command and shortcut routes configured by the network short-cut command in the IPv4 unicast address family.
<Sysname> display bgp network ipv4 BGP local router ID: 192.168.1.135 Local AS number: 100 Network Mask Route-policy Short-cut 20.1.1.0 255.255.255.0 No 40.1.1.0 255.255.255.0 abc No 30.1.1.0 255.255.255.0 Yes
# Display information about routes advertised by the network command and shortcut routes configured by the network short-cut command in the IPv6 unicast address family.
<Sysname> display bgp network ipv6 BGP local router ID: 192.168.1.135 Local AS number: 100 Network PrefixLen Route-policy Short-cut 1:: 24 No 2:: 24 No 3:: 64 policy1 No 2:: 24 Yes
Table 89: Command output
Field | Description |
---|---|
Network | Destination network address of the routes advertised by the network command and the shortcut routes. |
Mask | Mask of the destination network address. |
PrefixLen | Prefix length of the destination network address. |
Route-policy | Routing policy that is applied to the route. |
Short-cut | Whether the route is a shortcut route:
|