- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
10-BFD Commands | 118.33 KB |
bfd detect-multiplier
Syntax
bfd detect-multiplier value
undo bfd detect-multiplier
View
Interface view
Default level
2: System level
Parameters
value: Specifies the detect time multiplier in the range of 3 to 50.
Description
Use bfd detect-multiplier to configure the detection time multiplier.
Use undo bfd detect-multiplier to restore the default.
The default is 5.
Examples
# Configure the detection time multiplier as 6 on VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] bfd detect-multiplier 6
bfd echo-source-ip
Syntax
bfd echo-source-ip ip-address
undo bfd echo-source-ip
View
System view
Default level
2: System level
Parameters
ip-address: Source IP address of BFD echo packets.
Description
Use bfd echo-source-ip to configure the source IP address of BFD echo packets.
Use undo bfd echo-source-ip to remove the configured source IP address of BFD echo packets.
Since a large amount of ICMP redirect packets might be sent by the remote switch, causing network congestion, do not configure the source IP address of the BFD echo packets to belong to the same network segment as any interface address of the switch.
Examples
# Configure the source IP address of echo packets as 10.1.1.1.
<Sysname> system-view
[Sysname] bfd echo-source-ip 10.1.1.1
bfd min-echo-receive-interval
Syntax
bfd min-echo-receive-interval value
undo bfd min-echo-receive-interval
View
Interface view
Default level
2: System level
Parameters
value: Minimum echo receiving interval, in milliseconds. The value range and default value depend on the main processing unit (MPU) model of the switch:
· For switches with MPU LSR1SRP2D1, LSR1SRP2C1, or LSR1SRP2C2, the value is in the range of 10 to 1000, and must be a multiple of 10. The default value is 400.
· For switches with MPU LSR1SRP2B1 or LSR1SRP2B2, the value is in the range of 1000 to 10000, and must be a multiple of 100. The default value is 1000.
Description
Use bfd min-echo-receive-interval to configure the minimum echo packet receiving interval on the interface.
Use undo bfd min-echo-receive-interval to restore the default.
By default, the minimum BFD echo packet receiving interval on the interface is 400 milliseconds.
Examples
# Configure the minimum echo receiving interval on VLAN-interface 1 as 500 milliseconds.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] bfd min-echo-receive-interval 500
bfd min-receive-interval
Syntax
bfd min-receive-interval value
undo bfd min-receive-interval
View
Interface view
Default level
2: System level
Parameters
value: Minimum interval for receiving BFD control packets, in milliseconds. The value range and default value depend on the MPU model of the switch:
· For switches with LSR1SRP2D1, MPU LSR1SRP2C1, or LSR1SRP2C2, the value is in the range of 10 to 1000, and must be a multiple of 10. The default value is 400.
· For switches with MPU LSR1SRP2B1 or LSR1SRP2B2, the value is in the range of 1000 to 10000, and must be a multiple of 100. The default value is 1000.
Description
Use bfd min-receive-interval to configure the minimum interval for receiving BFD control packets.
Use undo bfd min-receive-interval to restore the default.
By default, the minimum interval for receiving BFD control packets is 400 milliseconds.
If the remote switch sends BFD control packets at an interval shorter than the minimum receiving interval of the local switch, the remote switch changes its sending interval to the minimum receiving interval of the local switch.
Examples
# Configure the minimum interval for receiving BFD control packets on VLAN-interface 1 as 500 milliseconds.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] bfd min-receive-interval 500
bfd min-transmit-interval
Syntax
bfd min-transmit-interval value
undo bfd min-transmit-interval
View
Interface view
Default level
2: System level
Parameters
value: Minimum interval for transmitting BFD control packets, in milliseconds. The value range and default value depend on the MPU model of the switch:
· For switches with LSR1SRP2D1, MPU LSR1SRP2C1 or LSR1SRP2C2, the value is in the range of 10 to 1000, and must be a multiple of 10. The default value is 400.
· For switches with MPU LSR1SRP2B1 or LSR1SRP2B2, the value is in the range of 1000 to 10000, and must be a multiple of 100. The default value is 1000.
Description
Use bfd min-transmit-interval to configure the minimum interval for transmitting BFD control packets.
Use undo bfd min-transmit-interval to restore the default.
By default, the minimum interval for transmitting BFD control packets is 400 milliseconds.
A proper interval ensures BFD control packets are not transmitted faster than the switch can deal with. The actual interval for transmitting BFD control packets at the local switch should be the greater between the minimum interval for sending BFD control packets configured on the local interface and the minimum interval for receiving BFD control packets on the remote switch.
Examples
# Configure the minimum interval for transmitting BFD control packets on VLAN-interface 1 as 500 milliseconds.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] bfd min-transmit-interval 500
bfd multi-hop destination-port
Syntax
bfd multi-hop destination-port port-number
undo bfd multi-hop destination-port
View
System view
Default level
2: System level
Parameters
port-number: Destination port number of multi-hop BFD control packets, 3784 or 4784.
Description
Use bfd multi-hop destination-port to configure the destination port number for multi-hop BFD control packets as 3784 or 4784.
Use undo bfd multi-hop destination-port to restore the default.
By default, the destination port number for multi-hop BFD control packets is 4784.
Examples
# Configure the destination port number for multi-hop BFD control packets as 3784.
<Sysname> system-view
[Sysname] bfd multi-hop destination-port 3784
bfd session init-mode
Syntax
bfd session init-mode { active | passive }
undo bfd session init-mode
View
System view
Default level
2: System level
Parameters
active: Uses the active mode. In the active mode, upon being enabled with BFD, an interface actively transmits a BFD control packet to the remote switch.
passive: Uses the passive mode. In the passive mode, an interface does not actively transmit a BFD control packet to the remote end; it transmits a BFD control packet only after receiving a BFD control packet from the remote end.
Description
Use bfd session init-mode to configure the mode for establishing a BFD session.
Use undo bfd session init-mode to restore the default.
By default, BFD sessions are established in the active mode.
|
NOTE: At least one end must operate in the active mode for a BFD session to be established. |
Examples
# Configure the session establishment mode as passive.
<Sysname> system-view
[Sysname] bfd session init-mode passive
display bfd debugging-switches
Syntax
display bfd debugging-switches [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display bfd debugging-switches to display enabled BFD debugging switches.
Examples
# Display enabled BFD debugging switches.
<Sysname> display bfd debugging-switches
BFD Error debugging is on
BFD Event debugging is on
BFD FSM debugging is on
BFD Packet Receive debugging is on
BFD Packet Send debugging is on
BFD SCM debugging is on
BFD Timer debugging is on
display bfd interface
Syntax
display bfd interface [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
verbose: Displays detailed interface information.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display bfd interface to display information about BFD-enabled interfaces.
Besides the information displayed by the display bfd interface command, the display bfd interface verbose command displays brief session information of the interfaces.
Examples
# Display information about BFD-enabled interfaces.
<Sysname> display bfd interface
Total Interface Num: 1
Interface: Vlan-interface500 Session Num: 1
Min Trans Inter: 200ms Min Recv Inter: 200ms
DetectMult: 3 Min Echo Recv Inter: 400ms
# Display detailed information about BFD-enabled interfaces.
<Sysname> display bfd interface verbose
Total Interface Num: 1
Interface: Vlan-interface500 Session Num: 1
Min Trans Inter: 200ms Min Recv Inter: 200ms
DetectMult: 3 Min Echo Recv Inter: 400ms
LD/RD SourceAddr DestAddr ConnType State Mode
2/2 192.168.11.11 192.168.11.10 Direct Up Ctrl
Table 1 Command output
Field |
Description |
Interface |
Interface name. |
Session Num |
Number of sessions established on the local interface. |
Min Trans Inter |
Minimum control packet transmit interval configured on the interface. |
Min Recv Inter |
Minimum control packet receive interval configured on the interface. |
DetectMult |
Detection time multiplier. |
Min Echo Recv Inter |
Minimum echo packet receive interval configured on the interface. |
LD |
Local ID of the session. |
RD |
Remote ID of the session. |
SourceAddr |
Source IP address of the session. |
DestAddr |
Destination IP address of the session. |
ConnType |
Connection type of the interface. |
State |
Session state. |
Mode |
Working mode of the session: control (Ctrl) mode or echo (Echo) mode. |
display bfd session
Syntax
Standalone mode:
display bfd session [ slot slot-number [ all | verbose ] | verbose ] [ | { begin | exclude | include } regular-expression ]
IRF mode:
display bfd session [ chassis chassis-number slot slot-number [ all | verbose ] | verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
verbose: Displays detailed session information.
slot slot-number: Displays the session information of the specified card. The slot-number argument refers to the card slot number. Use this option when your switch is operating in standalone mode.
all: Displays detailed information about all the BFD sessions on the card.
chassis chassis-number slot slot-number: Displays the session information of a card on an IRF member switch. The chassis-number argument refers to the ID of the member switch, and the slot-number argument refers to the number of the slot. You can display the member ID and slot number with the display device command. Use this option when your switch is operating in IRF mode.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display bfd session to display BFD session information.
· If no slot number is specified, all the BFD session information of the device is displayed. If the all keyword is specified, the command displays the detailed BFD session information on the MPU in the specified slot (standalone mode).
· If no chassis number or slot number is specified, all the BFD session information of the current member device is displayed. If the all keyword is specified together with a card and a member device, the command displays the detailed BFD session information on the specified MPU of the specified IRF member device (IRF mode).
Examples
# Display detailed information about the BFD sessions maintained by all the cards (standalone mode).
<Sysname> display bfd session verbose
Total session number: 2 Up session number: 2 Init Mode: Active
Ipv4 session working under Ctrl mode:
Local Discr: 1 Remote Discr: 1
Source IP: 192.168.11.11 Destination IP: 192.168.11.10
Session State: Up Interface: Vlan-interface1000
Min Trans Inter: 200ms Act Trans Inter: 200ms
Min Recv Inter: 200ms Act Detect Inter: 1000ms
Running Up for: 00:02:36 Auth mode: None
Connect Type: Direct Board Num: 0
Protocol: OSPF/RSVP/MFW
Diag Info: No Diagnostic
Local Discr: 2 Remote Discr: 2
Source IP: 192.168.12.11 Destination IP: 192.168.12.10
Session State: Up Interface: GigabitEthernet4/0/2
Min Trans Inter: 200ms Act Trans Inter: 200ms
Min Recv Inter: 200ms Act Detect Inter: 1000ms
Running Up for: 00:02:36 Auth mode: None
Connect Type: Direct Board Num: 0
Protocol: OSPF/RSVP/MFW
Diag Info: No Diagnostic
# Display detailed information about the BFD sessions maintained by slot 0 on chassis 1 (distributed IRF member device).
<Sysname> display bfd session chassis 1 slot 0 verbose
Ipv4 session working under Ctrl mode:
Local Discr: 1 Remote Discr: 1
Source IP: 192.168.11.11 Destination IP: 192.168.11.10
Session State: Up Interface: GigabitEthernet1/3/0/2
Min Trans Inter: 200ms Act Trans Inter: 200ms
Min Recv Inter: 200ms Act Detect Inter: 1000ms
Recv Pkt Num: 16927 Send Pkt Num: 17146
Hold Time: 800ms Auth mode: None
Connect Type: Direct Chassis/Board Num: 1/0
Protocol: OSPF/RSVP/MFW
Diag Info: No Diagnostic
Table 2 Command output
Field |
Description |
Total session number |
Total number of BFD sessions. |
Up session number |
Total number of active BFD sessions. |
Init mode |
BFD operating mode, active or passive. |
session working under xx mode |
IPv4/IPv6 BFD session mode: · Ctrl—Control packet mode. · Echo—Echo mode. |
Local Discr |
Local ID of the session. |
Remote Discr |
Remote ID of the session. |
Source IP |
Source IP address of the session. |
Destination IP |
Destination IP address of the session. |
Session State |
Session state. |
Interface |
Name of the interface of the session. |
Min Trans Inter |
Expected minimum transmit interval configured on the interface. |
Min Recv Inter |
Expected minimum receive interval configured on the interface. |
Act Trans Inter |
Actual transmit interval. |
Act Detect Inter |
Actual session detection timer. |
Recv Pkt Num |
Number of packets received. |
Send Pkt Num |
Number of packets sent. |
Hold Time |
Length of time before session detection timer expires. |
Auth mode |
Session authentication mode. The switch does not support authentication. |
Connect Type |
Connection type of the interface. |
Running up for |
Time interval for which the session has been up. |
Chassis/Board Num |
Chassis/card maintaining the session. |
Protocol |
Registered protocol. |
Diag Info |
Diagnostic information about the session. |
reset bfd session statistics
Syntax
In standalone mode:
reset bfd session statistics [slot slot-number ]
In IRF mode:
reset bfd session statistics [ chassis chassis-number slot slot-number ]
View
User view
Default level
1: Monitor level
Parameters
slot slot-number: Specifies a card by its slot number. Use this option when your switch is operating in standalone mode.
chassis chassis-number slot slot-number: Specifies a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the member ID and slot number with the display device command. Use this option when your switch is operating in IRF mode.
Description
Use reset bfd session statistics to clear the BFD session statistics of the current protocol. If a slot number is specified, statistics about the BFD sessions maintained by the specified board will be cleared.
Examples
# Clear statistics about the BFD sessions in Slot 6.
<Sysname> reset bfd session statistics slot 6
# Clear statistics about the BFD sessions in Slot 6 of Chassis 1.
<Sysname> reset bfd session statistics chassis 1 slot 6