BGP configuration views
BGP uses different views to manage routing information for different BGP instances, address families, and 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 16 describes different BGP configuration views.
Table 16: BGP configuration views
View names | Ways to enter the views | Remarks |
---|---|---|
BGP instance view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] | You can create a BGP instance and enter its view by specifying the instance keyword in the bgp command. Configurations in this view apply to all public address families for the specified BGP instance and all VPN instances (such as confederation, GR, and logging configurations), or apply to all public address families for the specified BGP instance. |
BGP IPv4 unicast address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family ipv4 unicast [Sysname-bgp-abc-ipv4] | Configurations in this view apply to public IPv4 unicast routes and peers of the specified BGP instance. |
BGP IPv6 unicast address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family ipv6 unicast [Sysname-bgp-abc-ipv6] | Configurations in this view apply to public IPv6 unicast routes and peers of the specified BGP instance. |
BGP IPv4 multicast address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family ipv4 multicast [Sysname-bgp-abc-mul-ipv4] | Configurations in this view apply to IPv4 multicast routes and peers of the specified BGP instance. |
BGP IPv6 multicast address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family ipv6 multicast [Sysname-bgp-abc-mul-ipv6] | Configurations in this view apply to IPv6 multicast routes and peers of the specified BGP instance. |
BGP VPNv4 address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family vpnv4 [Sysname-bgp-abc-vpnv4] | Configurations in this view apply to VPNv4 routes and peers of the specified BGP instance. For more information about BGP VPNv4 address family view, see MPLS Configuration Guide. |
BGP VPNv6 address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family vpnv6 [Sysname-bgp-abc-vpnv6] | Configurations in this view apply to VPNv6 routes and peers of the specified BGP instance. For more information about BGP VPNv6 address family view, see MPLS Configuration Guide. |
BGP L2VPN address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family l2vpn [Sysname-bgp-abc-l2vpn] | Configurations in this view apply to L2VPN information and L2VPN peers of the specified BGP instance. For more information about BGP L2VPN address family view, see MPLS Configuration Guide. |
BGP EVPN address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family l2vpn evpn [Sysname-bgp-abc-evpn] | Configurations in this view apply to EVPN routes and peers of the specified BGP instance. For more information about BGP EVPN address family view, see EVPN Configuration Guide. |
BGP-VPN instance view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] ip vpn-instance vpn1 [Sysname-bgp-abc-vpn1] | Configurations in this view apply to all address families in the specified VPN instance of the specified BGP instance. |
BGP-VPN IPv4 unicast address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] ip vpn-instance vpn1 [Sysname-bgp-abc-vpn1] address-family ipv4 unicast [Sysname-bgp-abc-ipv4-vpn1] | Configurations in this view apply to IPv4 unicast routes and peers in the specified VPN instance of the specified BGP instance. |
BGP-VPN IPv6 unicast address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] ip vpn-instance vpn1 [Sysname-bgp-abc-vpn1] address-family ipv6 unicast [Sysname-bgp-abc-ipv6-vpn1] | Configurations in this view apply to IPv6 unicast routes and peers in the specified VPN instance of the specified BGP instance. |
BGP-VPN VPNv4 address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] ip vpn-instance vpn1 [Sysname-bgp-abc-vpn1] address-family vpnv4 [Sysname-bgp-abc-vpnv4-vpn1] | Configurations in this view apply to VPNv4 routes and peers in the specified VPN instance of the specified BGP instance. For more information about BGP-VPN VPNv4 address family view, see MPLS Configuration Guide. |
BGP MDT address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family ipv4 mdt [Sysname-bgp-abc-mdt] | Configurations in this view apply to MDT routes and peers of the specified BGP instance. For more information about BGP MDT address family view, see IP Multicast Configuration Guide. |
BGP LS address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family link-state [Sysname-bgp-abc-ls] | Configurations in this view apply to LS messages and peers of the specified BGP instance. |
BGP IPv4 RT filter address family view | <Sysname> system-view [Sysname] bgp 100 instance abc [Sysname-bgp-abc] address-family ipv4 rtfilter [Sysname-bgp-abc-rtf-ipv4] | Configurations in this view apply to IPv4 RT filter routes and peers of the specified BGP instance. For more information about BGP IPv4 RT filter address family view, see MPLS Configuration Guide. |