beautypg.com

Bfd for static routes configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 33

background image

2-8

BFD for Static Routes Configuration Example

Network requirements

As shown in

Figure 2-2

:

z

Configure a static route to subnet 120.1.1.0/24 on Switch A and configure a static route to subnet

121.1.1.0/24 on Switch B. Both routes have BFD enabled.

z

When the link over which Switch A communicates with Switch B through the Layer 2 switch fails,

BFD can detect the failure immediately. Then Switch A and Switch B communicate through Switch

C.

Figure 2-2 Network diagram for configuring BFD for static routes

Device Interface

IP

address

Device Interface

IP

address

Switch A

Vlan-int10

12.1.1.1/24

Switch B

Vlan-int11

12.1.1.2/24

Vlan-int11

10.1.1.102/24

Vlan-int13

13.1.1.1/24

Switch C

Vlan-int11

10.1.1.100/24

Vlan-int13

13.1.1.2/24

Configuration procedure

Configure IP addresses of the interfaces (omitted).

Configure BFD

# Configure static routes on Switch A and enable BFD control packet mode for the static route through

the Layer 2 switch.

system-view

[SwitchA] interface vlan-interface12

[SwitchA-vlan-interface12] bfd min-transmit-interval 500

[SwitchA-vlan-interface12] bfd min-receive-interval 500

[SwitchA-vlan-interface12] bfd detect-multiplier 9

[SwitchA-vlan-interface12] quit

[SwitchA] ip route-static 120.1.1.0 24 vlan-interface 10 12.1.1.2 bfd control-packet

[SwitchA] ip route-static 120.1.1.0 24 vlan-interface 11 10.1.1.100 preference 65

[SwitchA] quit

# Configure static routes on Switch B and enable BFD control packet mode for the static route through

the Layer 2 switch.

system-view

[SwitchB] interface vlan-interface12

[SwitchB-vlan-interface12] bfd min-transmit-interval 500

[SwitchB-vlan-interface12] bfd min-receive-interval 500

[SwitchB-vlan-interface12] bfd detect-multiplier 9

[SwitchB-vlan-interface12]] quit

[SwitchB] ip route-static 121.1.1.0 24 vlan-interface 10 12.1.1.1 bfd control-packet