H3C Technologies H3C S12500 Series Switches User Manual

Page 68

Advertising
background image

52

# Configure a static route to Switch A on Switch C.

[SwitchC] ip route-static 192.168.1.0 24 vlan-interface 200 192.168.2.1

5.

Verify the configuration:
# Display the BFD session information of Switch A.

<SwitchA> display bfd session

Total Session Num: 1 Init Mode: Active

Session Working Under Ctrl Mode:

LD/RD SourceAddr DestAddr State Holdtime Interface

6/3 192.168.1.1 192.168.2.2 Up 1700ms vlan100

# Display RIP routes destined for 100.1.1.0/24 on Switch A.

<SwitchA> display ip routing-table 100.1.1.0 24 verbose

Routing Table : Public

Summary Count : 2

Destination: 100.1.1.0/24

Protocol: RIP Process ID: 1

Preference: 100 Cost: 1

IpPrecedence: QosLcId:

NextHop: 192.168.1.2 Interface: vlan-interface 100

BkNextHop: 0.0.0.0 BkInterface:

RelyNextHop: 0.0.0.0 Neighbor : 192.168.1.2

Tunnel ID: 0x0 Label: NULL

BKTunnel ID: 0x0 BKLabel: NULL

State: Active Adv Age: 00h00m47s

Tag: 0

Destination: 100.1.1.0/24

Protocol: RIP Process ID: 2

Preference: 100 Cost: 2

IpPrecedence: QosLcId:

NextHop: 192.168.3.2 Interface: vlan-interface 300

BkNextHop: 0.0.0.0 BkInterface:

RelyNextHop: 0.0.0.0 Neighbor : 192.168.3.2

Tunnel ID: 0x0 Label: NULL

BKTunnel ID: 0x0 BKLabel: NULL

State: Inactive Adv Age: 00h12m50s

Tag: 0

# Enable RIP event debugging on Switch A.

<SwitchA> debugging rip 1 event

<SwitchA> terminal debugging

%Jan 19 10:41:51:203 2008 SwitchA BFD/4/LOG:Sess[192.168.1.1/192.168.2.2,

Vlan-interface 100, Ctrl], Sta: UP->DOWN, Diag: 1

*Jan 19 10:41:51:203 2008 SwitchA RM/6/RMDEBUG: RIP-BFD: Message Type Disable, Connect

Type Indirect-connect, Pkt Type Control, Src IP Address 192.168.1.1, Src IFIndex 4,

Nbr IP Address 192.168.2.2.

The output shows that when the link over VLAN-interface 100 fails, Switch A can quickly detect the
link state change.
# Display the BFD information on Switch A.

<SwitchA> display bfd session

Advertising