The display bgp network command displays the routing information advertised by BGP through the network (BGP) command.
display bgp network
display bgp vpnv4 { all | vpn-instance vpn-instance-name } network
display bgp ipv6 network
display bgp vpnv6 { all | vpn-instance vpn-instance-name } network
display bgp multicast network
| Parameter | Description | Value |
|---|---|---|
vpnv4 |
Displays the Virtual Private Network version 4 (VPNv4) routing information advertised by BGP through the network (BGP) command. |
- |
all |
Displays all VPNv4 and Virtual Private Network version 6 (VPNv6) routing information advertised by BGP through the network (BGP) command. |
- |
vpn-instance vpn-instance-name |
Displays the routing information about a specified VPN instance advertised by BGP through the network (BGP) command. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
ipv6 |
Displays the IPv6 routing information advertised by BGP through the network (BGP) command. |
- |
vpnv6 |
Displays the VPNv6 routing information advertised by BGP through the network (BGP) command. |
- |
multicast |
Displays the routing information advertised by Multicast BGP (MBGP) through the network (BGP) command.
|
- |
Usage Scenario
BGP cannot discover routes by itself. Run the network (BGP) command and the import-route command to import routes from other protocols, such as IGP routes or static routes, to the BGP routing table.
The display bgp network command displays the routing information advertised by BGP through the network (BGP) command.
Precautions
BGP has multiple address families and the routing information about each address family is isolated from each other. The routing information about address families advertised by BGP through the network (BGP) command can be displayed by specifying different parameters.
If no parameter is specified, the display bgp network command displays the routing information about the IPv4 unicast address family advertised by BGP through the network (BGP) command.
# Display the routes that are advertised by BGP.
<sysname> display bgp network
BGP Local Router ID is 1.1.1.9
Local AS Number is 10(Public)
Network Mask Route-policy
1.2.0.0 255.255.0.0
3.0.0.0 255.0.0.0 Policy1
4.4.4.0 255.255.255.0
Item |
Description |
|---|---|
BGP Local Router ID is |
Router ID of the local BGP router. The format is the same as the IPv4 address. |
Local AS Number is |
Local AS number |
Network |
Address of the network that is locally advertised |
Mask |
Mask of the network address |
Route-policy |
Route-Policy used for BGP |
# Display the routing information advertised by BGP VPNv4.
<sysname> display bgp vpnv4 all network
BGP Local Router ID is 2.2.2.9
Local AS Number is 100
VPN-Instance vrf1, Router ID 1.9.9.9:
Network Mask Route-policy
4.4.4.4 255.255.255.255
VPN-Instance vrf2, Router ID 2.9.9.9:
Network Mask Route-policy
5.5.5.5 255.255.255.255
Item |
Description |
|---|---|
VPN-Instance |
Name of the VPN instance |
Router ID |
Router ID of the local BGP router. |
<sysname> display bgp ipv6 network
BGP Local Router ID is 5.5.5.5
Local AS Number is 100(PublicV6)
Network Prefix Route-policy
100:: 64
200:: 64
Item |
Description |
|---|---|
Prefix |
Network address mask advertised by local BGP router |
# Display the IPv6 routes of the VPN instance named vpn1 advertised by BGP through the network command.
<sysname> display bgp vpnv6 vpn-instance vpn1 network
BGP Local Router ID is 1.1.1.1
Local AS Number is 100
VPN-Instance vpn1, Router ID 10.4.4.4 :
Network Prefix Route-policy
2000:: 100 policy1
<sysname> display bgp vpnv6 all network
BGP Local Router ID is 2.2.2.9
Local AS Number is 100
VPN-Instance vrf1, Router ID 10.4.4.4 :
Network Prefix Route-policy
1::1 128
2::2 128
VPN-Instance vrf2, Router ID 10.5.4.4 :
Network Prefix Route-policy
3::3 128
VPN-Instance vrf2, Router ID 10.6.4.4 :
Network Prefix Route-policy
8::9 128