Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 5 BGP Configuration Commands
5-44
Examples
# In BGP view, allow establishing the EBGP connection with the peer group
test
that is
on an indirectly connected network.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test ebgp-max-hop
5.1.50 peer enable
Syntax
peer ip-address
enable
undo peer ip-address
enable
View
BGP view
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
5.1.51 peer fake-as
Syntax
peer
{
group-name | ip-address
}
fake-as
as-number
undo peer
{
group-name | ip-address
}
fake-as
View
BGP view