< Home

Displaying BGP/MPLS IP VPN Configuration

After completing the BGP/MPLS IP VPN configuration, you can run the display commands in any view to view the BGP/MPLS IP VPN configuration.

Displaying VPN Instance Configuration

You can run the commands listed in Table 1 to view VPN instance configuration.

Table 1 Displaying VPN instance configuration

Operation

Command

Display detailed information about a specified VPN instance.

display ip vpn-instance verbose vpn-instance-name

Display brief information about a specified VPN instance.

display ip vpn-instance vpn-instance-name

Displaying the Basic BGP/MPLS IP VPN Configuration

Run the commands listed in Table 2 in any view to display the basic BGP/MPLS IP VPN configuration.

Table 2 Displaying the basic BGP/MPLS IP VPN configuration

Operation

Command

Display routing information about a specified VPN on a PE.

display ip routing-table vpn-instance vpn-instance-name

Display routing information on a CE.

display ip routing-table

Displaying Tunnel Policy Configuration

Run the commands listed in Table 3 in any view to display tunnel policy configuration.

Table 3 Displaying tunnel policy configuration

Operation

Command

Display tunnel policy configuration.

display tunnel-policy [ policy-name ]

Display information about a tunnel policy of a VPN instance.

display ip vpn-instance verbose [ vpn-instance-name ]

Display information about a specified tunnel.

display tunnel-info tunnel-id tunnel-id

Displaying the Hub and Spoke Configuration

After completing the configuration, view routing information about the VPN-in and VPN-out instances. You can see that the routing table of the VPN-in instance contains the routes to all Spoke sites, and that the routing table of the VPN-out instance contains the route to the Hub site and routes to all Spoke sites.

The routing tables of the Hub-CE and Spoke-CE contain the route to the Hub site and the routes to all Spoke sites.

Run the commands listed in Table 4 in any view to display the Hub and Spoke configurations.

Table 4 Displaying the Hub and Spoke configuration

Operation

Command

Display the routing information about the VPN-in and VPN-out on Hub-PE.

display ip routing-table vpn-instance vpn-instance-name

Display the routing information on the Hub-CE and all the Spoke-CEs.

display ip routing-table

Displaying the Inter-AS VPN Option A Configuration

On the PE or ASBR PE, run the commands listed in Table 5 in any view to display the inter-AS VPN Option A configuration.

Table 5 Displaying the inter-AS VPN Option A configuration

Operation

Command

Display information about all BGP peer relationships on a PE or an ASBR PE.

display bgp vpnv4 all peer

Display information about IPv4 VPN routes on a PE or ASBR PE.

display bgp vpnv4 all routing-table

Display the VPN routing table on a PE or ASBR PE.

display ip routing-table vpn-instance vpn-instance-name

After completing the configuration, run the display bgp vpnv4 all peer command on the PE or ASBR PE. You can see that the status of the BGP VPNv4 peer between the PE and ASBR PE in the same AS is Established, which means that the BGP peers can exchange packets.

Run the display bgp vpnv4 all routing-table command on the PE or ASBR PE. The IPv4 VPN routing information in the routing table of the ASBR PE is displayed.

Run the display ip routing-table vpn-instance vpn-instance-name command on the PE or ASBR PE. You can see that the VPN routing table of the PE or ASBR PE contains all VPN routes.

Displaying the Inter-AS VPN Option B Configuration

On the PE or ASBR PE, run the commands listed in Table 6 in any view to display information about inter-AS VPN Option B configuration.

Table 6 Displaying the inter-AS VPN Option B configuration

Operation

Command

Display information about all BGP peer relationships on a PE or an ASBR PE.

display bgp vpnv4 all peer

Display information about IPv4 VPN routes on a PE or an ASBR PE.

display bgp vpnv4 all routing-table

Display the VPN routing table on a PE.

display ip routing-table vpn-instance vpn-instance-name

Display information about the LSP and label on the ASBR.

display mpls lsp

Run the display bgp vpnv4 all routing-table command on an ASBR. You can see that the routing table of the ASBR contains the IPv4 routes maintained for a VPN.

Run the display bgp vpnv4 all peer command on a PE or an ASBR. You can see that the state of the IBGP peer between the PE and ASBR in the same AS is Established, and that the state of the EBGP peer between two directly connected ASBRs in different ASs is also Established.

Run the display ip routing-table vpn-instance vpn-instance-name command on a PE. You can see that the VPN routing table of the PE contains all VPN routes.

Displaying the Inter-AS VPN Option C Configuration

On the PE or ASBR PE, run the commands listed in Table 7 in any view to display the inter-AS VPN Option C configuration.

Table 7 Displaying the inter-AS VPN Option C configuration

Operation

Command

Display information about all BGP peer relationships on a PE.

display bgp vpnv4 all peer

Display information about IPv4 VPN routes on a PE or an ASBR PE.

display bgp vpnv4 all routing-table

Display label information about IPv4 routes on an ASBR PE.

display bgp routing-table label

Display the VPN routing table on a PE.

display ip routing-table vpn-instance vpn-instance-name

Run the display bgp vpnv4 all peer command on a PE. You can see that the status of all EBGP peer relationships between PEs is Established.

Run the display bgp vpnv4 all routing-table command on a PE and an ASBR. You can see that the routing table of the PE contains BGP IPv4 VPN routes and BGP VPN instance routes, and that the routing table of the ASBR contains no such information.

Run the display bgp routing-table label command on an ASBR. You can see label information about the IPv4 routes.

Run the display ip routing-table vpn-instance vpn-instance-name command on a PE. You can see that the VPN routing table of the PE contains all VPN routes to the CEs.

Displaying the Multi-VPN-Instance CE Configuration

On a multi-instance CE, run the command listed in Table 8 in any view to display the multi-VPN-instance CE configuration. You can see that for each service, the routing table of the multi-VPN-instance CE contains the routes to the LAN and to remote sites.

Table 8 Displaying the multi-VPN-instance CE configuration

Operation

Command

Display the VPN routing table on the multi-VPN-instance CE.

display ip routing-table vpn-instance vpn-instance-name [ verbose ]

Displaying the OSPF Sham Link Configuration

Run the commands listed in Table 9 in any view to display OSPF sham link configuration.

Table 9 Displaying the OSPF sham link configuration

Operation

Command

Display the routing table of the specified VPN instance on a PE.

display ip routing-table vpn-instance vpn-instance-name [ verbose ]

Display the routing table on a CE.

display ip routing-table

Display the setup state of a sham-link on a PE.

display ospf process-id sham-link [ area area-id ]

Display the routes discovered by OSPF on a CE.

display ospf routing

Displaying the VPN Instance and Internet Interconnection Configuration

Run the commands listed in Table 10 in any view to display VPN instance and Internet interconnection configuration.

Table 10 Displaying the VPN instance and Internet interconnection configuration

Operation

Command

Display the VPN routing table on a PE.

display ip routing-table vpn-instance vpn-instance-name [ verbose ]

Display the routing tables on a CE and a destination FW on the public network.

display ip routing-table

  • Run the display ip routing-table vpn-instance vpn-instance-name command on a PE. You can see that the VPN routing table contains the routes to the CE and the destination FW on the public network.

  • Run the display ip routing-table command on the CE. You can see that the routing table of the CE contains the route to the destination FW on the public network and the routing table of the destination FW on the public network also contains the route to the CE.

  • The CE and the destination FW on the public network can ping each other.

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