997
# In BGP-VPN instance view, save routing information from peer 131.100.1.1(the
VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer 131.100.1.1 as-number 200
[Sysname-bgp-vpn1] peer 131.100.1.1 keep-all-routes
peer log-change (BGP/BGP-VPN instance view)
Syntax peer { group-name | ip-address } log-change
undo peer { group-name | ip-address } log-change
View BGP view/BGP-VPN instance view
Parameters group-name: Name of a peer group, a string of 1 to 47 characters.
ip-address: IP address of a peer.
Description Use the
peer log-change command to enable the logging of session state and
event information for a specified peer or peer group.
Use the
undo peer log-change command to remove the configuration.
The logging is enabled by default.
Examples # In BGP view, enable the logging of session state and event information for peer
group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test log-change
# In BGP-VPN instance view, enable the logging of session state and event
information for peer group test (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test log-change
peer next-hop-local (BGP/BGP-VPN instance view)
Syntax peer { group-name | ip-address } next-hop-local
undo peer { group-name | ip-address } next-hop-local
View BGP view /BGP-VPN instance view