Configuration commands

Set BFD source IP address for echo packets

This command helps to set a source IP address of echo packet for all BFD instances on the switch.

Syntax

[no] bfd echo-src-ip-address IP-ADDR

Description

Set the source IP address for BFD echo packets transmitted by the switch. The special value 0.0.0.0 will close only BFD echo sessions. Any existing control sessions will not be affected.

Options

echo-src-ip-address

Set the source IP address for BFD echo packets transmitted by the switch.

IP-ADDR

The source IP address for BFD echo packets transmitted by the switch.

Set BFD source IP address for echo packets configuration

HP-5406Rzl2(config)# bfd echo-src-ip-address 2.2.2.2
ATTENTION!! Make sure that echo packet source IP configured,
does not belong to same subnet as the IP address assigned to any VLAN on the switch.

Running configuration:

; J9850A Configuration Editor; Created on release #KB.16.02.0000x
; Ver #0b:fc.59.f4.7b.ff.ff.fc.ff.ff.3f.ef:0d
hostname "HP-5406Rzl2"
module A type j9989a
module F type j9987a
no rest-interface
password minimum-length 8
ip routing
snmp-server community "public" unrestricted
oobm
  ip address dhcp-bootp
  exit
bfd enable
bfd echo-src-ip-address 2.2.2.2
vlan 1
  name "DEFAULT_VLAN"
  untagged A1-A24,F1-F24
  ip address dhcp-bootp
  exit
no allow-v2-modules

Show BFD-session

HP-5406Rzl2# show bfd-session

Bidirectional Forwarding Detection (BFD) Information

 Admin Status   : Enabled
 Echo source IP : 2.2.2.2

 Session VLAN  Source IP  Destination IP  Echo State application
 ------ ------ ---------- --------------- ----- ---- -----------
HP-5406Rzl2#
HP-5406Rzl2# show bfd-session 1

BFD Session Information
BFD session 1 not found

Enable BFD session

Syntax

[no] bfd enable| disable echo-src-ip-address

Description

Configure Bidirectional Forwarding Detection (BFD) global settings.

options

enable

Enable BFD globally.

disable

Disable BFD globally.

echo-src-ip-address

Set the source IP address for BFD echo packets transmitted by the switch.

Enable BFD session: Configuration

; J9850A Configuration Editor; Created on release #KB.16.02.0000x
; Ver #0b:fc.59.f4.7b.ff.ff.fc.ff.ff.3f.ef:0d
hostname "HP-5406Rzl2"
module A type j9989a
module F type j9987a
no rest-interface
password minimum-length 8
ip routing
snmp-server community "public" unrestricted
oobm
   ip address dhcp-bootp
   exit
bfd enable
vlan 1
   name "DEFAULT_VLAN"
   untagged A1-A24,F1-F24
   ip address dhcp-bootp
   exit
no allow-v2-modules

HP-5406Rzl2# show bfd-session


Bidirectional Forwarding Detection (BFD) Information

  Admin Status   : Enabled
  Echo source IP :

  Session  VLAN  Source IP  Destination IP  Echo  State  Application
 -------- ------ ---------- ----------- --- ----- ------ -----------
HP-5406Rzl2# show bfd-session 1

BFD Session Information
BFD session 1 not found

Enable debug logging

This command enables logging BFD packet fields and/or BFD events for the identified session.

Syntax

[no] debug bfd packet | event session SESS-ID

Description

Enable BFD debug logging.

Options

BFD

Enable BFD debug logging.

session

Display debug messages for a specific session.

SESS-ID

A BFD session number to display debug messages for.

packet

Display important fields of BFD packets.

event

Display BFD state machine events.

Clear BFD statistics

This command helps to reset the specified BFD counter.

Syntax

clear statistics bfd SESS-ID

Description

Reset Bidirectional Forwarding Detection (BFD) statistics.

Options

BFD

Reset Biderectional Forwarding Detection (BFD) statistics.

SESS-ID

The id of the session whose statistics should be cleared.

Clear BFD statistics: Before clearing statistics

HP-5412Rzl2# sh bfd

Bidirectional Forwarding Detection (BFD) Information

  Admin Status   : Enabled
  Echo source IP : 2.2.2.2

  Global Statistics:
  Total Number of Control Packets Transmitted  : 13
  Total Number of Control Packets Received     : 13
  Total Number of Control Packets Dropped      : 0

Session VLAN SourceIP       DestIP          Echo  State Application
------ ----- -------------- --------------  ----- ----- -----------
1        20  100.100.100.100 100.100.100.101 Enabled Up    OSPF
witch# show bfd-session 1

BFD Session Information – Session 1
  
  Min Tx Interval (sec)       : 10                 
  Min Rx Interval (sec)       : 10                 
  Min Echo Rx Interval (msec) : 700               
  Detect Multiplier           : 3                 
  Authentication Mode         : NONE                     
  Password                    : ""                    
  Application                 : OSPF       
  Local Discriminator         : 1          
  Remote Discriminator        : 1          
  Echo                        : Enabled  
  Local Diagnostic            : No diagnostics configured.        
  
  VLAN Source IP     Destination IP  State Pkt In Pkt Drop Pkt Out 
  ---- ------------ ---------------   ----- ------ ------- -------
  3    100.100.100.100 100.100.100.101 Up    322      0        320

Clear BFD statistics: After clearing BFD statistics

HP-5412Rzl2# sh bfd

Bidirectional Forwarding Detection (BFD) Information

  Admin Status   : Enabled
  Echo source IP : 2.2.2.2

  Global Statistics:
  Total Number of Control Packets Transmitted  : 0
  Total Number of Control Packets Received     : 0
  Total Number of Control Packets Dropped      : 0

Session VLAN SourceIP       DestIP          Echo  State Application
------ ----- -------------- --------------  ----- ----- -----------
1        20  100.100.100.100 100.100.100.101 Enabled Up    OSPF
Switch# show bfd-session 1

BFD Session Information – Session 1
  
  Min Tx Interval (sec)       : 10                 
  Min Rx Interval (sec)       : 10                 
  Min Echo Rx Interval (msec) : 700               
  Detect Multiplier           : 3                 
  Authentication Mode         : NONE                     
  Password                    : ""                    
  Application                 : OSPF       
  Local Discriminator         : 1          
  Remote Discriminator        : 1          
  Echo                        : Enabled  
  Local Diagnostic            : No diagnostics configured.        
  
  VLAN Source IP     Destination IP  State Pkt In Pkt Drop Pkt Out 
  ---- ------------ ---------------   ----- ------ ------- -------
  3    100.100.100.100 100.100.100.101 Up    0      0       0