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 network { ipv4 | ipv6 } [ unicast ] [ vpn-instance vpn-instance-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
ipv4: Displays IPv4 address family information.
ipv6: Displays IPv6 address family information.
unicast: Displays IPv4 or IPv6 unicast address family information regardless of whether this keyword is specified or not.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays routing information for the public network.
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 for the public network.
<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 for the public network.
<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
# 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 in VPN instance vpn1.
<Sysname> display bgp network ipv4 vpn-instance vpn1 BGP local router ID: 192.168.1.135 Local AS number: 100 Network Mask Route-policy Short-cut 50.1.1.0 255.255.255.0 No 40.1.1.0 255.255.255.0 Yes
Table 71: 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 | Indicates whether the route is a shortcut route:
|