ip route bfd

Syntax

ip route <DEST-IPV4-ADDR>/<NETMASK> [<NEXT-HOP-IP-ADDR> | <INTERFACE>] [bfd]

Description

Enables or disables BFD on the specified static route. To disable BFD, issue the command without the bfd option.

Command context

config

Parameters

<DEST-IPV4-ADDR>

Specifies a route destination in IPv4 format (x.x.x.x), where x is a decimal number from 0 to 255.

<NETMASK>

Specifies the number of bits in the address mask in CIDR format (x), where x is a decimal number from 0 to 128.

<NEXT-HOP-IP-ADDR>

Specifies the next hop address for reaching the destination in IPv4 format (x.x.x.x), where x is a decimal number from 0 to 255.

<INTERFACE>

Specifies the next hop as an outgoing interface.

bfd

Enables BFD on the static route. Omit this parameter to disable BFD.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Enabling BFD on a static route:

switch(config)# interface 1/1/1
switch(config-if)# ip address 20.1.1.2/24
switch(config-if)# no shutdown
switch(config-if)# exit
switch(config)# ip route 192.0.0.0/8 20.1.1.1 bfd

Disabling BFD on a static route:

switch(config)# ip route 192.0.0.0/8 20.1.1.1

Enabling BFD on a static route:

switch(config)# interface 1/1/1
switch(config-if)# ip address 20.1.1.2/24
switch(config-if)# no shutdown
switch(config-if)# exit
switch(config)# ip route 192.0.0.0/8 1/1/1 bfd

Disabling BFD on a static route:

switch(config)# ip route 192.0.0.0/8 1/1/1