The peer log-change command enables a BGP device to log the session status and events of a specified peer or a peer group.
The undo peer log-change command disables a BGP device to log the session status and events of a specified peer or a peer group.
By default, a BGP device is enabled to log the session status and events of a specified peer or peer group.
peer { group-name | ipv4-address | ipv6-address } log-change
undo peer { group-name | ipv4-address | ipv6-address } log-change
Parameter | Description | Value |
---|---|---|
group-name | Specifies the name of a peer group. | The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
ipv4-address | Specifies the IPv4 address of a peer. | It is in dotted decimal notation. |
ipv6-address | Specifies the IPv6 address of a peer. | The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
ipv4-address is valid only in the BGP view and BGP-VPN instance IPv4 address family view.
ipv6-address is valid only in the BGP view and BGP-VPN instance IPv6 address family view.
BGP view, BGP-VPN instance IPv4 address family view, or BGP-VPN instance IPv6 address family view