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.

Table 7 describes different BGP views.

Table 7: BGP views

View names

Ways to enter the views

Remarks

BGP view

<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp]

Configurations in this view are effective for routes and peers of all address families on the public network and in all VPN instances (such as confederation, GR, and logging configurations), or only for routes and peers of all address families on 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 are effective for 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 are effective for 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 are effective for 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 are effective for 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 are effective for 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 are effective for routes and peers of 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 are effective for 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 are effective for 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 are effective for VPNv4 routes and peers in the specified VPN instance.

For more information about BGP-VPN VPNv4 address family view, see MPLS Configuration Guide.