BGP configuration views
BGP uses different views to manage routing information for different address families and different VPN instances. Most BGP commands are available in all BGP views. BGP supports multiple VPN instances by establishing a separate routing table for each VPN instance.
Table 14 describes different BGP configuration views.
Table 14: BGP configuration views
View names | Ways to enter the views | Remarks |
---|---|---|
BGP view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] | Configurations in this view apply to all address families of the public network and all VPN instances (such as confederation, GR, and logging configurations), or apply to all address families of the public network. |
BGP IPv4 unicast address family view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] | Configurations in this view apply to IPv4 unicast routes and peers on the public network. |
BGP IPv6 unicast address family view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv6 unicast [Sysname-bgp-ipv6] | Configurations in this view apply to IPv6 unicast routes and peers on the public network. |
BGP VPNv4 address family view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family vpnv4 [Sysname-bgp-vpnv4] | Configurations in this view apply to VPNv4 routes and peers. For more information about BGP VPNv4 address family view, see MPLS Configuration Guide. |
BGP VPNv6 address family view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family vpnv6 [Sysname-bgp-vpnv6] | Configurations in this view apply to VPNv6 routes and peers. For more information about BGP VPNv6 address family view, see MPLS Configuration Guide. |
BGP L2VPN address family view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family l2vpn [Sysname-bgp-l2vpn] | Configurations in this view apply to L2VPN information and L2VPN peers. For more information about BGP l2VPN address family view, see MPLS Configuration Guide. |
BGP-VPN instance view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] | Configurations in this view apply to all address families in the specified VPN instance. |
BGP-VPN IPv4 unicast address family view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] | Configurations in this view apply to IPv4 unicast routes and peers in the specified VPN instance. |
BGP-VPN IPv6 unicast address family view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] | Configurations in this view apply to IPv6 unicast routes and peers in the specified VPN instance. |
BGP-VPN VPNv4 address family view | <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family vpnv4 [Sysname-bgp-vpnv4-vpn1] | Configurations in this view apply to VPNv4 routes and peers in the specified VPN instance. For more information about BGP-VPN VPNv4 address family view, see MPLS Configuration Guide. |