6-39
log-peer-change
Syntax
log-peer-change
undo log-peer-change
View
BGP view
Default Level
2: System level
Parameters
None
Description
Use the
log-peer-change
command to enable the global BGP logging on peers going up and down.
Use the
undo log-peer-change
command to disable the function.
By default, the function is enabled.
Examples
# Enable BGP logging on peers going up and down.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] log-peer-change
network (BGP/BGP-VPN instance view)
Syntax
network
ip-address
[
mask
|
mask-length
]
route-policy
route-policy-name
undo network ip-address
[
mask | mask-length
]
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
ip-address
: Destination IP address.
mask
: Mask of the network address, in dotted decimal notation.
mask-length
: Mask length, in the range 0 to 32.
route-policy-name
: Routing policy applied to the route. The name is a string of 1 to 19 characters.
Description
Use the
network
command to inject a network to the local BGP routing table.
Use the
undo network
command to remove a network from the BGP routing table.
By default, no network route is injected.
Note that: