382
Predefined user roles
network-admin
Parameters
group-name
: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address
: Specifies a peer by its IP address. The peer must have been created.
ipv6-address
: Specifies a peer by its IPv6 address. The peer must have been created.
Usage guidelines
In MPLS L3VPN, if EBGP is used between PE and CE, sites in different geographical areas must have
different AS numbers assigned to ensure correct route advertisement. If different CEs use the same AS
number, you must configure the relevant PE to replace the AS number of the CE as its own AS number to
ensure correct advertisement of private network routes.
Examples
# In BGP view, substitute the local AS number for the AS number of peer 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 substitute-as
# In BGP-VPN instance view, substitute the local AS number for the AS number of peer 1::1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer 1::1 substitute-as
peer timer
Use
peer timer
to configure a keepalive interval and holdtime for a peer or peer group.
Use
undo peer timer
to restore the default.
Syntax
peer
{
group-name
|
ip-address
|
ipv6-address
}
timer
keepalive
keepalive
hold
holdtime
undo peer
{
group-name
|
ip-address
|
ipv6-address
}
timer
Default
The keepalive interval is 60 seconds, and the holdtime is 180 seconds.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
Parameters
group-name
: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address
: Specifies a peer by its IP address. The peer must have been created.