- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-BFD Commands | 90.77 KB |
bfd detect-multiplier
Syntax
bfd detect-multiplier value
undo bfd detect-multiplier
View
Interface view
Default level
2: System level
Parameters
value: Detect time multiplier, in the range of 3 to 50.
Description
Use the bfd detect-multiplier command to configure the detection time multiplier.
Use the undo bfd detect-multiplier command to restore the default.
The default is 5.
Examples
# Configure the detection time multiplier as 6 on GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 2/1/1
[Sysname-GigabitEthernet2/1/1] 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 the bfd echo-source-ip command to configure the source IP address of BFD echo packets.
Use the undo bfd echo-source-ip command to remove the configured source IP address of BFD echo packets.
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 router. Otherwise a large amount of ICMP redirect packets may be sent by the remote router, causing network congestion.
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 must be a multiple of 10. The value ranges from 10 to 1000 and defaults to 400.
Description
Use the bfd min-echo-receive-interval command to configure the minimum echo packet receiving interval on the interface.
Use the undo bfd min-echo-receive-interval command to restore the default minimum echo packet receiving interval on the interface.
By default, the minimum echo packet receiving interval on the interface is 400 milliseconds.
Examples
# Configure the minimum echo receiving interval on GigabitEthernet 2/1/1 as 500 milliseconds.
<Sysname> system-view
[Sysname] interface GigabitEthernet 2/1/1
[Sysname-GigabitEthernet2/1/1] 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 must be a multiple of 10. The value ranges from 10 to 1000 and defaults to 400.
Description
Use the bfd min-receive-interval command to configure the minimum interval for receiving BFD control packets.
Use the undo bfd min-receive-interval command to restore the default minimum interval for receiving BFD control packets.
By default, the minimum interval for receiving BFD control packets is 400 milliseconds.
If the remote router sends BFD control packets at an interval shorter than the minimum receiving interval of the local router, the remote router changes its sending interval to the minimum receiving interval of the local router.
Examples
# Configure the minimum interval for receiving BFD control packets on GigabitEthernet 2/1/1 as 500 milliseconds.
<Sysname> system-view
[Sysname] interface GigabitEthernet 2/1/1
[Sysname-GigabitEthernet2/1/1] 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 must be a multiple of 10. The value ranges from 10 to 1000 and defaults to 400.
Description
Use the bfd min-transmit-interval command to configure the minimum interval for transmitting BFD control packets.
Use the undo bfd min-transmit-interval command to restore the default minimum interval for transmitting BFD control packets.
By default, the minimum interval for transmitting BFD control packets is 400 milliseconds.
A proper interval ensures that BFD control packets are not transmitted faster than the router can deal with. The actual interval for transmitting BFD control packets at the local router 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 router.
Examples
# Configure the minimum interval for transmitting BFD control packets on GigabitEthernet 2/1/1 as 500 milliseconds.
<Sysname> system-view
[Sysname] interface GigabitEthernet 2/1/1
[Sysname-GigabitEthernet2/1/1] 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 the bfd multi-hop destination-port command to configure the destination port number for multi-hop BFD control packets as 3784 or 4784.
Use the undo bfd multi-hop destination-port command 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, BFD actively transmits BFD control packets to the remote router.
passive: Uses the passive mode. In the passive mode, BFD 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 the bfd session init-mode command to configure the mode for establishing a BFD session.
Use the undo bfd session init-mode command to restore the default.
By default, BFD uses the active mode.
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 the display bfd debugging-switches command 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 the display bfd interface command to display information about BFD-enabled interfaces.
Examples
# Display information about BFD-enabled interfaces.
<Sysname> display bfd interface
Total Interface Num: 1
Interface: GigabitEthernet 2/1/1 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: GigabitEthernet 2/1/1 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 Output description
Field |
Description |
Interface |
Interface name |
Session Num |
Number of sessions established on the local interface |
Min Trans Inter |
Expected minimum transmit interval configured on the interface |
Min Recv Inter |
Expected minimum receive interval configured on the interface |
DetectMult |
Detection time multiplier |
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
display bfd session [ 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.
all: Displays detailed information about all the BFD sessions on the card, including those not maintained by the card.
|: 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 the display bfd session command to display BFD session information.
If no slot number is specified, all the BFD session information of the router is displayed. If the all keyword is specified, the command displays the detailed BFD session information on the card (or the MPU) in the specified slot, including those sessions not maintained by the card.
Examples
# Display detailed BFD session information on the router.
<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: GigabitEthernet 3/1/1
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: 6
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: GigabitEthernet 3/1/1
Min Trans Inter: 200ms Act Trans Inter: 600ms
Min Recv Inter: 200ms Act Detect Inter: 1000ms
Running Up for: 00:02:36 Auth mode: None
Connect Type: Direct Board Num: 7
Protocol: OSPF
Diag Info: No Diagnostic
# Display detailed information about the BFD sessions maintained by slot 6 on the router.
<Sysname> display bfd session slot 6 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: GigabitEthernet 3/1/1
Min Trans Inter: 200ms Act Trans Inter: 200ms
Min Recv Inter: 200ms Act Detect Inter: 1000ms
Recv Pkt Num: 18 Send Pkt Num: 18
Hold Time: 1900ms Auth mode: None
Connect Type: Direct Board Num: 6
Protocol: OSPF/RSVP/MFW
Diag Info: No Diagnostic
Table 2 Output description
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 |
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: simple, MD5, or SHA-1 |
Connect Type |
Connection type of the interface |
Running up for |
Time interval for which the session has been up |
Board Num |
Card maintaining the session |
Protocol |
Registered protocol |
Diag Info |
Diagnostic information about the session |
reset bfd session statistics
Syntax
reset bfd session statistics [ slot slot-number ]
View
User view
Default level
1: Monitor level
Parameters
slot slot-number: Clears session statistics about the card in the specified slot. The slot-number argument refers to the card slot number.
Description
Use the reset bfd session statistics command to clear the BFD session statistics.
Examples
# Clear statistics about the BFD sessions on the card in Slot 6.
<Sysname> reset bfd session statistics slot 6
snmp-agent trap enable bfd
Syntax
snmp-agent trap enable bfd
undo snmp-agent trap enable bfd
View
System view
Default level
3: Manage level
Parameters
None
Description
Use the snmp-agent trap enable bfd command to enable sending BFD traps.
Use the undo snmp-agent trap enable bfd command to disable sending BFD traps.
By default, sending BFD traps is enabled.
Examples
# Disable sending BFD traps.
<Sysname> system-view
[Sysname] undo snmp-agent trap enable bfd