The display bgp network command displays the routes imported into the BGP routing table by using the network 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 (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 |
---|---|---|
vpnv4 |
Displays the VPNv4 routes that are advertised by using the network command. |
- |
vpnv6 |
Displays the VPNv6 routes that are advertised by using the network command. |
- |
all |
Displays all the VPNv4 routes that are advertised by using the network command. |
- |
vpn-instance vpn-instance-name |
Displays the routes of a specified VPN instance that are advertised by using the network command. |
The value must be an existing VPN instance name. |
ipv6 |
Displays the IPv6 routes advertised by BGP. |
- |
Usage Scenario
BGP cannot discover routes by itself. Run the network (BGP) command and the import-route (BGP) 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 information about routes that are imported using the network command.
<HUAWEI> display bgp network
BGP Local Router ID is 10.1.1.9
Local AS Number is 10(Public)
Network Mask Route-policy
10.2.0.0 255.255.0.0
10.0.0.0 255.0.0.0 Policy1
10.4.4.0 255.255.255.0
Item |
Description |
---|---|
Local AS Number |
Indicates the local AS number. |
Network |
Indicates the locally-advertised network address. |
Mask |
Indicates the mask of the network address. |
Route-policy |
Indicates the used routing policy. |
<HUAWEI> display bgp vpnv4 all network
BGP Local Router ID is 10.2.2.9
Local AS Number is 100
VPN-Instance vrf1, Router ID 10.2.2.9:
Network Mask Route-policy
10.4.4.4 255.255.255.255
VPN-Instance vrf2, Router ID 2.2.2.9:
Network Mask Route-policy
10.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. |
<HUAWEI> display bgp ipv6 network
BGP Local Router ID is 10.5.5.5
Local AS Number is 100(PublicV6)
Network Prefix Route-policy
FC00:0:0:100:: 64
FC00:0:0:200:: 64
<HUAWEI> display bgp vpnv6 vpn-instance vpn1 network
BGP Local Router ID is 10.1.1.1
Local AS Number is 100
Route Distinguisher: 100:1 (vpn1)
Network Prefix Route-policy
FC00:0:0:2000:: 100 policy1
Item |
Description |
---|---|
BGP Local Router ID |
Indicates the ID of the local BGP device. The ID is in the same format as an IPv4 address. |
Local AS Number |
Indicates the local AS number. |
Route Distinguisher |
Indicates the route distinguisher for the VPN instance. |
Prefix |
Indicates the network address mask advertised by the local BGP device. |
<HUAWEI> display bgp vpnv6 all network
BGP Local Router ID is 10.2.2.9
Local AS Number is 100
Route Distinguisher: 100:4 (vpn1)
Network Prefix Route-policy
FC00:0:0:1::1 128
FC00:0:0:2::2 128
Route Distinguisher: 100:5 (vrf1)
Network Prefix Route-policy
FC00:0:0:3::3 128
Route Distinguisher: 100:9 (vrf2)
Network Prefix Route-policy
FC00:0:0:8::9 128