D-Link DGS-3600 Switch User Manual


 
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
100
debug bgp packet
Direction of packet:
in
out
enable - Enable the BGP debug function
disable - Disable the BGP debug function
Restrictions Only Administrator level users can issue this command.
Example usage:
Configure BGP to display debugging information after it received update packets:
DGS-3627:admin# debug bgp packet all in enable
Command: debug bgp packet all in enable
Success.
DGS-3627:admin#
After the BGP peer FSM event debug flag is enabled, it may print following information:
BGP:Peer:<10.1.1.10> RCV OPEN, version:<4>,remote-as:<40>, HoldTime:<180>,RID:<16.0.0.1>
BGP:Peer:<10.1.1.10> RCV KEEPALIVE.
BGP:Peer:<10.1.1.10> RCV UPDATE, withdraw: <21.0.0.0/8>,<22.0.0.0/8>,<23.0.0.0/8>,
<24.0.0.0/8>,<25.0.0.0/8>...
BGP:Peer:<10.1.1.10> RCV UPDATE,attr:<Orign:i,As-path:10,Next-
hop:10.1.1.10,Med:5>, NLRI:
<21.0.0.0/8>,<22.0.0.0/8>
BGP:Peer:<10.1.1.10> RCV NOTIFYCATION,Code:<OPEN Message Error.>,SubCode:<Bad Peer AS.>
BGP:Peer:<10.1.1.10> RCV REFRESH,afi:<1>,safi:<1>
BGP:Peer:<10.1.1.10> RCV Capability Action:Set,Code: GRST ,Length:2
debug bgp error
Purpose This command is used to set the flag of debugging information related to BGP errors, to not
send BGP notifications
Syntax
debug bgp error state [enable | disable]
Description This command is used to set the flag of debugging information related to BGP errors, to not
send BGP notifications
Parameters
enable - Enable the BGP debug function
disable - Disable the BGP debug function
Restrictions Only Administrator level users can issue this command.
Example usage:
Configure BGP to enable the error debug flag:
DGS-3627:admin# debug bgp error state enable
Command: debug bgp error state enable
Success.
DGS-3627:admin#