6-53
Parameters
ip-address
: IP address of a peer.
Description
Use the
peer enable
command to enable the specified peer.
Use the
undo peer enable
command to disable the specified peer.
By default, the BGP peer is enabled.
If a peer is disabled, the router will not exchange routing information with the peer.
Examples
# Disable peer 18.10.0.9.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 18.10.0.9 group group1
[Sysname-bgp] undo peer 18.10.0.9 enable
peer fake-as (BGP/BGP-VPN instance view)
Syntax
peer
{
group-name | ip-address
}
fake-as
as-number
undo peer
{
group-name | ip-address
}
fake-as
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
group-name
: Name of a peer group, a string of 1 to 47 characters.
ip-address
: IP address of a peer.
as-number
: Local autonomous system number, in the range 1 to 4294967295.
Description
Use the
peer fake-as
command to configure a fake local AS number for a peer or peer group.
Use the
undo peer fake-as
command to remove the configuration.
By default, no fake local AS number is configured for a peer or peer group.
The
peer fake-as
command is only applicable to an EBGP peer or peer group.
Examples
# In BGP view, configure a fake AS number of 200 for the peer group
test
.
<Sysname> system-view