Configuring BFD MAD

Before you configure BFD MAD, choose a BFD MAD link scheme as described in "BFD MAD."

As a best practice, connect the BFD MAD links after you finish the BFD MAD configuration.

Configuring BFD MAD that uses common Ethernet ports

Configure BFD MAD on a VLAN interface if you use common Ethernet ports for BFD MAD.

When you configure BFD MAD settings, follow these restrictions and guidelines:

Category

Restrictions and guidelines

BFD MAD VLAN

  • Do not enable BFD MAD on VLAN-interface 1.

  • If you are using an intermediate device, perform the following tasks on both the IRF fabric and the intermediate device:

    • Create a VLAN and VLAN interface for BFD MAD.

    • Assign the ports of BFD MAD links to the BFD MAD VLAN.

  • Make sure the IRF fabrics on the network use different BFD MAD VLANs.

  • Make sure the BFD MAD VLAN contains only ports on the BFD MAD links. Exclude a port from the BFD MAD VLAN if the port is not on the BFD MAD link. For example, if you have assigned the port to all VLANs by using the port trunk permit vlan all command, use the undo port trunk permit command to exclude the port from the BFD MAD VLAN.

BFD MAD VLAN and feature compatibility

Do not use the BFD MAD VLAN for any purpose other than configuring BFD MAD.

  • Configure only the mad bfd enable and mad ip address commands on the VLAN interface used for BFD MAD. If you configure other features, both BFD MAD and other features on the interface might run incorrectly.

  • Disable the spanning tree feature on all Layer 2 Ethernet ports in the BFD MAD VLAN. The MAD feature is mutually exclusive with the spanning tree feature.

MAD IP address

  • Use the mad ip address command instead of the ip address command to configure MAD IP addresses on the BFD MAD-enabled VLAN interface.

  • Make sure all the MAD IP addresses are on the same subnet.

To configure BFD MAD that uses common Ethernet ports:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. (Optional.) Assign a domain ID to the IRF fabric.

irf domain domain-id

By default, the domain ID of an IRF fabric is 0.

3. Create a VLAN dedicated to BFD MAD.

vlan vlan-id

The default VLAN on the device is VLAN 1.

4. Return to system view.

quit

N/A

5. Enter interface view or interface range view.

  • Enter interface range view:interface range { interface-type interface-number [ to interface-type interface-number ] } &<1-24>

  • Enter interface view:interface interface-type interface-number

To assign a range of ports to the BFD MAD VLAN, enter interface range view.

To assign one port to the BFD MAD VLAN, enter Ethernet interface view.

6. Assign the port or the range of ports to the BFD MAD VLAN.

  • Assign the port to the VLAN as an access port: port access vlan vlan-id

  • Assign the port to the VLAN as a trunk port: port trunk permit vlan vlan-id

  • Assign the port to the VLAN as a hybrid port: port hybrid vlan vlan-id { tagged | untagged }

The link type of BFD MAD ports can be access, trunk, or hybrid.

The default link type of a port is access.

7. Return to system view.

quit

N/A

8. Create the VLAN interface and enter VLAN interface view.

interface vlan-interface vlan-interface-id

N/A

9. Enable BFD MAD.

mad bfd enable

By default, BFD MAD is disabled.

10. Assign a MAD IP address to a member device on the VLAN interface.

mad ip address ip-address { mask | mask-length } member member-id

By default, no MAD IP addresses are configured on any VLAN interfaces.

Repeat this step to assign a MAD IP address to each member device on the VLAN interface.

Configuring BFD MAD that uses management Ethernet ports

When you configure BFD MAD that uses management Ethernet ports, follow these restrictions and guidelines:

Category

Restrictions and guidelines

Management Ethernet ports for BFD MAD

Connect a management Ethernet port on each IRF member device to the common Ethernet ports on the intermediate device.

BFD MAD VLAN

  • On the intermediate device, create a VLAN for BFD MAD, and assign the ports used for BFD MAD to the VLAN. On the IRF fabric, you do not need to assign the management Ethernet ports to the VLAN.

  • Make sure the IRF fabrics on the network use different BFD MAD VLANs.

  • Make sure the BFD MAD VLAN on the intermediate device contains only ports on the BFD MAD links. Exclude a port from the BFD MAD VLAN if the port is not on the BFD MAD link. For example, if you have assigned the port to all VLANs by using the port trunk permit vlan all command, use the undo port trunk permit command to exclude the port from the BFD MAD VLAN.

MAD IP address

  • Use the mad ip address command instead of the ip address command to configure MAD IP addresses on the BFD MAD-enabled management Ethernet ports.

  • Make sure all the MAD IP addresses are on the same subnet.

To configure BFD MAD that uses management Ethernet ports:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. (Optional.) Assign a domain ID to the IRF fabric.

irf domain domain-id

By default, the domain ID of an IRF fabric is 0.

3. Enter management Ethernet interface view.

interface m-gigabitethernet interface-number

Of all management Ethernet ports on an IRF fabric, only the master's management Ethernet port is accessible.

4. Enable BFD MAD.

mad bfd enable

By default, BFD MAD is disabled.

5. Assign a MAD IP address to each member device.

mad ip address ip-address { mask | mask-length } member member-id

By default, no MAD IP addresses are configured.