3com S7906E 参考指南

下载
页码 2327
 
1-48 
ip-address: IP address of a peer. 
hop-count: Maximum hop count, in the range 1 to 255. The default is 64. 
Description 
Use the peer ebgp-max-hop command to allow establishing an EBGP connection with a peer/peer 
group that is on an indirectly connected network. 
Use the undo peer ebgp-max-hop command to restore the default. 
By default, this feature is disabled. 
You can use the argument hop-count to specify the maximum route hop count of the EBGP connection. 
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 
# In BGP-VPN instance view, allow establishing the EBGP connection with the peer group test that is 
on an indirectly connected network (the VPN has been created). 
<Sysname> system-view 
[Sysname] bgp 100 
[Sysname-bgp] ipv4-family vpn-instance vpn1 
[Sysname-bgp-vpn1] peer test ebgp-max-hop 
peer enable (BGP view) 
Syntax 
peer ip-address enable 
undo peer ip-address enable 
View 
BGP view 
Default Level 
2: System level 
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.