208
To enable BGP:
1. Enter system view.
system-view
N/A
2. Configure a global router ID.
router id
router-id
By default, no global router ID is
configured, and BGP uses the
highest loopback interface IP
address—if any—as the router ID. If
no loopback interface IP address is
available, BGP uses the highest
physical interface IP address as the
route ID regardless of the interface
status.
3. Enable BGP and enter BGP
instance view.
bgp
as-number [
instance
instance-name ]
By default, BGP is disabled and no
BGP instances exist.
4. (Optional.) Configure an
SNMP context for the BGP
instance.
snmp context-name
context-name
By default, no SNMP context is
configured for a BGP instance.
5. (Optional.) Configure a
router ID for the BGP
instance.
router-id
router-id
By default, no router ID is
configured for a BGP instance, and
the BGP instance uses the global
router ID configured by the
command in system view.
6. (Optional.) Enter BGP-VPN
instance view.
ip vpn-instance
vpn-instance-name
The specified VPN instance must
have been created and have an RD.
For more information about VPN
instances, see MPLS Configuration
Guide.
7. (Optional.) Configure a
router ID for the BGP VPN
instance.
router-id
{ router-id |
auto-select
}
By default, no router ID is
configured for a BGP VPN instance,
and the BGP VPN instance uses
the router ID configured in BGP
instance view. If no router ID is
configured in BGP instance view,
the BGP VPN instance uses the
global router ID configured in
system view.
Configuring a BGP peer
Configuring a BGP peer (IPv4 unicast address family)
1. Enter system view.
system-view
N/A
2. Enter BGP instance view or
BGP-VPN instance view.
• Enter BGP instance view:
bgp as-number [ instance
instance-name ]
• Enter BGP-VPN instance
view:
a. bgp as-number
[ instance
instance-name ]
b. ip vpn-instance
N/A