262
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] ipv6-family unicast
[Sysname-bgp-ipv6-vpn1]
log-peer-change
Use
log-peer-change
to enable the logging of session state changes globally.
Use
undo log-peer-change
to disable the function.
Syntax
log-peer-change
undo log-peer-change
Default
Logging of session state changes is enabled globally.
Views
BGP view
Predefined user roles
network-admin
Usage guidelines
After you execute the
log-peer-change
command, BGP logs session establishment and disconnection
events. To view the log information, use the
display bgp ipv4 peer log-info
command.
If you disable the logging of session state changes globally, the
display bgp ipv4 peer log-info
command
does not show relevant log information.
Examples
# Enable the logging of session state changes globally.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] log-peer-change
Related commands
display bgp peer ipv4 unicast
network
Use
network
to inject a network to the BGP routing table.
Use
undo network
to remove the configuration.
Syntax
In BGP IPv4 unicast instance view/BGP-VPN IPv4 unicast instance view:
network
ip-address
[
mask
|
mask-length
] [
route-policy
route-policy-name
]
undo
network
ip-address
[
mask
|
mask-length
]
In BGP IPv6 unicast instance view/BGP-VPN IPv6 unicast instance view: