0% found this document useful (0 votes)
4 views

01-02 IP Static Route Configuration

Uploaded by

prasanthaf077
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

01-02 IP Static Route Configuration

Uploaded by

prasanthaf077
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Quidway NetEngine40E

Configuration Guide - IP Routing Contents

Contents

2 IP Static Route Configuration..................................................................................................2-1


2.1 Introduction ...................................................................................................................................................2-2
2.1.1 Static Route..........................................................................................................................................2-2
2.1.2 Default Route .......................................................................................................................................2-2
2.1.3 BFD for Static Routes ..........................................................................................................................2-2
2.2 Configuring an IPv4 Static Route..................................................................................................................2-3
2.2.1 Establishing the Configuration Task ....................................................................................................2-3
2.2.2 Configuring an IPv4 Static Route ........................................................................................................2-4
2.2.3 (Optional) Configuring the Default Preference for the IPv4 Static Route ...........................................2-5
2.2.4 Checking the Configuration .................................................................................................................2-5
2.3 Configuring BFD for Static Routes...............................................................................................................2-6
2.3.1 Establishing the Configuration Task ....................................................................................................2-6
2.3.2 Configuring an IPv4 static route ..........................................................................................................2-7
2.3.3 Configure a BFD Session.....................................................................................................................2-7
2.3.4 Binding a BFD Session to a Static Route.............................................................................................2-7
2.3.5 Checking the Configuration .................................................................................................................2-7
2.4 Configuration Examples................................................................................................................................2-8
2.4.1 Example for Configuring IPv4 Static Routes.......................................................................................2-8
2.4.2 Example for Configuring BFD for Static Routes...............................................................................2-12

Issue 07 (2008-08-20) Huawei Proprietary and Confidential i


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
2 IP Static Route Configuration Configuration Guide - IP Routing

Figures

Figure 2-1 Networking diagram of the IPv4 static route configuration..............................................................2-9


Figure 2-2 Networking diagram of configuring BFD for static route ..............................................................2-12

ii Huawei Proprietary and Confidential Issue 07 (2008-08-20)


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
Configuration Guide - IP Routing 2 IP Static Route Configuration

2 IP Static Route Configuration

About This Chapter

The following table lists the contents of this chapter.

Title Description

2.1 Introduction This section describes the principle and concepts of the
static route.
2.2 Configuring an IPv4 Static This section describes how to configure IPv4 static route.
Route See Example for Configuring IPv4 Static Routes.
2.3 Configuring BFD for This section describes how to configure BFD for IS-IS.
Static Routes See Example for Configuring BFD for Static Routes.
2.4 Configuration Examples This section provides several configuration examples of
IP static route.

Issue 07 (2008-08-20) Huawei Proprietary and Confidential 2-1


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
2 IP Static Route Configuration Configuration Guide - IP Routing

2.1 Introduction
This section covers the following topics that you need to know before you configure the static
route:
z Static Route
z Default Route
z BFD for Static Routes

2.1.1 Static Route


In a relatively simple network, you only need to configure the static routes to make the
network work normally. Proper configuration and usage of the static route improve the
network performance and provide the required bandwidth for important applications.
When a fault occurs to a static route or when its topology changes, the static route requires the
help of an administrator to rectify the fault.

2.1.2 Default Route


A default route is another special route. Normally, the administrator can manually configure
the static route; but sometimes, the static route can be generated by a dynamic routing
protocol, such as OSPF and IS-IS.
To be brief, a default route is a route used only when no suitable routing table entry is
matched. In a routing table, the default route is the route to the network 0.0.0.0 (with the mask
0.0.0.0). You can see whether it has been set through the output of the display ip
routing-table command.
If the destination address of a packet does not match any entry in the routing table, the router
selects the default route to forward this packet. If there is no default route and the destination
address of the packet does not match any entry in the routing table, the packet is discarded. An
Internet Control Message Protocol (ICMP) packet is then sent, informing the originating host
that the destination host or network is not accessible.

2.1.3 BFD for Static Routes


Different from dynamic routing protocol, static route does not have a detection mechanism.
When a fault occurs on the network, an administrator needs to handle it. BFD for static routes
is used to bind BFD sessions to the public network IPv4 static routes. The BFD session is
used to detect the status of the link of a static route.
BFD for static routes is used to bind a BFD session to each static route.
z When the BFD session on a static route detects that the link changes from Up to Down,
BFD reports it to the routing management system. Then the routing management system
set the status of the route to inactive. (The route is invalid and is removed from the IP
routing table.)
z When the BFD session on a static route is successfully set up, BFD report it to the
routing management system. Then the routing management system set the status of the
route to active. (The route is valid and is added to the IP routing table.)

2-2 Huawei Proprietary and Confidential Issue 07 (2008-08-20)


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
Configuration Guide - IP Routing 2 IP Static Route Configuration

2.2 Configuring an IPv4 Static Route


2.2.1 Establishing the Configuration Task
Applicable Environment
The NE40E supports configuring a common static route and a static route associated with
VPN instances. The latter is mainly used to manage VPN routes.
For the related VPN instances, refer to the Quidway NetEngine40E Core Router
Configuration Guide VPN Volume.
When configuring IPv4 static route, you need to know the following:
z Destination address and mask
In the ip route-static command, the IPv4 destination address is in dotted decimal
notation. The mask can be in dotted decimal notation or can be represented by the mask
length (namely, the number of consecutive "1"s in the mask).
z Outbound interface and the next hop address
When configuring a static route, you can specify the interface-type interface-number and
the nexthop-address. Based on the actual situations, the outbound interface or the next
hop address is specified.
Actually, all route entries must specify the next hop addresses. When sending a packet,
the router first searches the matched route in the routing table according to the
destination address. Only if the next hop address is specified, the link layer can find the
corresponding link layer address and forward the packet.
When specifying the sending interface, note the following:
− For point-to-point interfaces, the next hop address is specified implicitly in the
specified sending interface. The address of the peer interface connected with this
interface is the next hop address. For example, when a POS interface is PPP
encapsulated, the peer IP address is obtained through PPP negotiation. In this case,
you need to specify only the sending interface without the next hop address.
− NBMA interface (such as ATM interface) supports point-to-multi-point networks. In
this case, you need to configure IP routes and build the reroute table at the link layer
(namely, the mapping between IP addresses and link layer addresses). Besides, the
next hop IP address needs to be configured.
− In static route configuration, you should not specify the Ethernet interface or the
Virtual-template interface as the sending interface. The Ethernet interface is a
broadcast interface and the Virtual-template interface has several virtual access
interfaces. Due to this, many next hops occur and a unique next hop cannot be
determined. However if you have to specify a broadcast interface (such as Ethernet
interface), a VT interface or an NBMA interface as the sending interface, specify the
next hop address at the same time.
z Other attributes
Configure different preferences for the static routes. This enables you to apply the route
management policy flexibly. For example, when configuring multiple routes to the same
destination address, you can specify the same preference for these routes to implement
the load balancing. You can also specify the different preferences to implement route
backup.

Issue 07 (2008-08-20) Huawei Proprietary and Confidential 2-3


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
2 IP Static Route Configuration Configuration Guide - IP Routing

While configuring static routes by using the ip route-static command, if you set the
destination address and the mask to all "0"s (0.0.0.0 0.0.0.0), then it indicates that you
have configured a default route.

Pre-configuration Tasks
Before configuring an IPv4 static route, complete the following tasks:
z Configuring physical parameters for related interfaces
z Configuring link layer attributes for related interfaces
z Configuring IPv4 addresses for related interfaces

Data Preparation
To configure an IPv4 static route, you need the following data.

No. Data

1 Destination address and mask


2 Outbound interface or the next hop IPv4 address
3 Preference of the IPv4 static route

Configuration Procedures
No. Procedure

1 Configuring an IPv4 Static Route


2 (Optional) Configuring the Default Preference for the IPv4 Static Route
3 Checking the Configuration

2.2.2 Configuring an IPv4 Static Route


Do as follows on the router configured with static routes:
Step 1 Run:
system-view

The system view is displayed.


Step 2 Run:
ip route-static [ vpn-instance vpn-instance-name ] ip-address { mask | mask-length }
{ nexthop-address | interface-type interface-number [ nexthop-address ] | vpn-instance
vpn-instance-name } [ preference preference ]

The IPv4 static route is enabled.


----End

2-4 Huawei Proprietary and Confidential Issue 07 (2008-08-20)


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
Configuration Guide - IP Routing 2 IP Static Route Configuration

By default, no IPv4 static route is configured.

2.2.3 (Optional) Configuring the Default Preference for the IPv4


Static Route
Do as follows on the router configured with static routes:
Step 1 Run:
system-view

The system view is displayed.


Step 2 Run:
ip route-static default-preference preference

The default preference for the static route is set.


----End

By default, the preference of the static route is 60.


In static route configuration, the default preference is adopted when no preference is explicitly
specified. The new default preference takes effect on the added only IPv4 static routes.

2.2.4 Checking the Configuration


Run the following commands to check the previous configuration.

Action Command

Check the current configuration. display current-configuration


Check the brief information of the IPv4 routing table. display ip routing-table
Check the details of the IPv4 routing table. display ip routing-table verbose

Run the display ip routing-table verbose command. If you can find information about the
static route in the detailed information of the routing table, it means that the static route is
correctly configured.
<Quidway> display ip routing-table verbose
Routing Table : Public
Destinations : 3 Routes : 3

Destination: 1.1.1.1/32
Protocol: Static Process ID: 0
Preference: 60 Cost: 0
NextHop: 2.2.2.2 Neighbour: 0.0.0.0
State: Active Adv Age: 00h00m05s
Tag: 0 Priority: 0
Label: NULL QoSInfo: 0x0
RelayNextHop: 0.0.0.0 Interface: Ethernet1/0/0
TunnelID: 0x0

Issue 07 (2008-08-20) Huawei Proprietary and Confidential 2-5


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
2 IP Static Route Configuration Configuration Guide - IP Routing

Destination: 2.2.2.0/24
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 2.2.2.2 Neighbour: 0.0.0.0
State: Active Adv Age: 00h00m16s
Tag: 0 Priority: 0
Label: NULL QoSInfo: 0x0
RelayNextHop: 0.0.0.0 Interface: Ethernet1/0/0
TunnelID: 0x0

Destination: 2.2.2.2/32
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 127.0.0.1 Neighbour: 0.0.0.0
State: Active NoAdv Age: 00h00m16s
Tag: 0 Priority: 0
Label: NULL QoSInfo: 0x0
RelayNextHop: 0.0.0.0 Interface: InLoopBack0
TunnelID: 0x0

2.3 Configuring BFD for Static Routes


2.3.1 Establishing the Configuration Task
Applicable Environment
If you want to use BFD session to provide link detection for the public network IPv4 static
routes, you can bind a BFD session to the static route. A BFD session is bound to a static
route.

Pre-configuration Tasks
Before configuring BFD for static route, complete the following tasks:
z Configuring physical parameters of the related interfaces
z Configuring link attributes of the related interfaces
z Configuring IPv4 address of the related interfaces

Data Preparation
To configure BFD for static route, you need the following data.

No. Data

1 Address and mask of the destination network


2 IPv4 address of the next hop or the outgoing interface
3 IP address of the peer detected by BFD
4 Local identifier and remote identifier of BFD session

2-6 Huawei Proprietary and Confidential Issue 07 (2008-08-20)


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
Configuration Guide - IP Routing 2 IP Static Route Configuration

Configuration Procedures
No. Procedure

1 Configuring an IPv4 static route


2 Configure a BFD Session
3 Binding a BFD Session to a Static Route
4 Checking the Configuration

2.3.2 Configuring an IPv4 static route


See “Configuring an IPv4 Static Route”.

2.3.3 Configure a BFD Session


Refer to the Quidway NetEngine40E Core Router Configuration Guide - Reliability.

2.3.4 Binding a BFD Session to a Static Route


On both ends of the link, do as follows on the static route to which a BFD session is bound:
Step 1 Run:
system-view

The system view is displayed.


Step 2 Run:
ip route-static ip-address { mask | mask-length } { nexthop-address | interface-type
interface-number [ nexthop-address ] } [ preference preference ] track bfd-session
cfg-name [ description text ]

BFD session is bound to the IPv4 static route of the public network.
----End

When binding BFD session to a static route, ensure that BFD session and the static route are on the same
link.

2.3.5 Checking the Configuration


Run the following commands to check the previous configuration.

Action Command

Check BFD session. display bfd session { all | discriminator


discr-value } [ verbose ] [ slot slot-id ]
Check the configuration of BFD for static display current-configuration | include
route. bfd

Issue 07 (2008-08-20) Huawei Proprietary and Confidential 2-7


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
2 IP Static Route Configuration Configuration Guide - IP Routing

Only after parameters of the BFD session are set and the BFD session is set up, you can view
the BFD session. If the BFD configuration is correct, you can view that the status of State in
the display is Up.
<Quidway> display bfd session all
Static Session Number : 1, Dynamic Session Number: 0
Coexistence Session Number : 0
--------------------------------------------------------------------------------
Local Remote Peer IP Address Interface Name State Type
--------------------------------------------------------------------------------
10 20 3.3.3.1 -- Up Static
--------------------------------------------------------------------------------

If the binding succeeds, you can view that the status of BFD session is Up. Use the display
current-configuration | include bfd command in the system view, and you can view that the
BFD session is bound.
<Quidway>display current-configuration | include bfd
bfd
bfd aaa bind peer-ip 3.3.3.1
ip route-static 5.5.5.0 255.255.255.0 3.3.3.1 track bfd-session aaa

2.4 Configuration Examples


This section provides the following examples:
z Example for Configuring IPv4 Static Routes
z Example for Configuring BFD for Static Routes

2.4.1 Example for Configuring IPv4 Static Routes


Networking Requirements
Figure 2-1 shows the IP addresses and masks of the interfaces and the hosts. All the hosts or
routers should be interconnected through static routes.

2-8 Huawei Proprietary and Confidential Issue 07 (2008-08-20)


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
Configuration Guide - IP Routing 2 IP Static Route Configuration

Figure 2-1 Networking diagram of the IPv4 static route configuration

PC2
1.1.2.2/24

GE3/0/0
1.1.2.1/24

POS1/0/0 POS2/0/0
1.1.4.2/30 1.1.4.5/30
RouterB
RouterA RouterC
POS1/0/0 POS1/0/0
1.1.4.1/30 1.1.4.6/30

GE2/0/0 GE2/0/0
1.1.1.1/24 1.1.3.1/24

PC1 PC3
1.1.1.2/24 1.1.3.2/24

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure the IPv4 address of each interfaces on each router to make them connected
with each other.
2. Configure the IPv4 static route to the destination address and the default route on the
router.
3. Configure the IPv4 default gateway on each host to make every two hosts connected
with each other.

Data Preparation
To complete the configuration, you need the following data:
z The next hop of Router A is the default route 1.1.4.2.
z The destination address of Router B is 1.1.1.0, and its next hop is the static route 1.1.4.1.
z The destination address of Router B is 1.1.3.0, and its next hop is the static route 1.1.4.6.
z The next hop of Router C is the default route 1.1.4.5.
z The default gateway of host PC1 is 1.1.1.1. The default gateway of host PC2 is 1.1.2.1.
The default gateway of host PC3 is 1.1.3.1.

Configuration Procedure
Step 1 Configure the IP address for each interface (not mentioned here).
Step 2 Configure static routes.

Issue 07 (2008-08-20) Huawei Proprietary and Confidential 2-9


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
2 IP Static Route Configuration Configuration Guide - IP Routing

# Configure the IPv4 default route on Router A.


[RouterA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2

# Configure two IPv4 static routes on Router B.


[RouterB] ip route-static 1.1.1.0 255.255.255.0 1.1.4.1
[RouterB] ip route-static 1.1.3.0 255.255.255.0 1.1.4.6

# Configure the IPv4 default route on Router C.


[RouterC] ip route-static 0.0.0.0 0.0.0.0 1.1.4.5

Step 3 Configure hosts.


Configure the default gateway of the host PC1, PC2 and PC3 as 1.1.1.1, 1.1.2.1 and 1.1.3.1
respectively.
Step 4 Verify the configuration.
# Display the IP routing table of Router A.
[RouterA] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 8 Routes : 8

Destination/Mask Proto Pre Cost Flags NextHop Interface

0.0.0.0/0 Static 60 0 RD 1.1.4.2 Pos1/0/0


1.1.1.0/24 Direct 0 0 D 1.1.1.1 GigabitEthernet2/0/0
1.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
1.1.4.0/30 Direct 0 0 D 1.1.4.1 Pos1/0/0
1.1.4.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
1.1.4.2/32 Direct 0 0 D 1.1.4.2 Pos1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

# Verify connectivity by using the ping command.


[RouterA] ping 1.1.3.1
PING 1.1.3.1: 56 data bytes, press CTRL_C to break
Reply from 1.1.3.1: bytes=56 Sequence=1 ttl=254 time=62 ms
Reply from 1.1.3.1: bytes=56 Sequence=2 ttl=254 time=63 ms
Reply from 1.1.3.1: bytes=56 Sequence=3 ttl=254 time=63 ms
Reply from 1.1.3.1: bytes=56 Sequence=4 ttl=254 time=62 ms
Reply from 1.1.3.1: bytes=56 Sequence=5 ttl=254 time=62 ms

--- 1.1.3.1 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 62/62/63 ms

# Verify connectivity with the tracert command.


[RouterA] tracert 1.1.3.1

2-10 Huawei Proprietary and Confidential Issue 07 (2008-08-20)


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
Configuration Guide - IP Routing 2 IP Static Route Configuration

traceroute to 1.1.3.1(1.1.3.1) 30 hops max,40 bytes packet


1 1.1.4.2 31 ms 32 ms 31 ms
2 1.1.4.6 62 ms 63 ms 62 ms

----End

Configuration Files
z Configuration file of Router A
#
sysname RouterA
#
interface GigabitEthernet2/0/0
ip address 1.1.1.1 255.255.255.0
#
interface Pos1/0/0
link-protocol ppp
ip address 1.1.4.1 255.255.255.252
#
ip route-static 0.0.0.0 0.0.0.0 1.1.4.2
#
return
z Configuration file of Router B
#
sysname RouterB
#
interface GigabitEthernet3/0/0
ip address 1.1.2.1 255.255.255.0
#
interface Pos1/0/0
link-protocol ppp
ip address 1.1.4.2 255.255.255.252
#
interface Pos2/0/0
link-protocol ppp
ip address 1.1.4.5 255.255.255.252
#
ip route-static 1.1.1.0 255.255.255.0 1.1.4.1
ip route-static 1.1.3.0 255.255.255.0 1.1.4.6
#
return
z Configuration file of Router C
#
sysname RouterC
#
interface GigabitEthernet2/0/0
ip address 1.1.3.1 255.255.255.0
#
interface Pos1/0/0
link-protocol ppp
ip address 1.1.4.6 255.255.255.252
#
ip route-static 0.0.0.0 0.0.0.0 1.1.4.5
#

Issue 07 (2008-08-20) Huawei Proprietary and Confidential 2-11


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
2 IP Static Route Configuration Configuration Guide - IP Routing

return

2.4.2 Example for Configuring BFD for Static Routes


Networking Requirements
As shown in Figure 2-2, Router A and Router B are connected by Switch C. On Router A, a
default static route should be configured to communicate with the external network. At this
time, you need to configure the BFD session between Router A and Router B to detect faults
on the link.

Figure 2-2 Networking diagram of configuring BFD for static route

GE1/0/0 GE1/0/0 Pos2/0/0


1.1.1.1/24 1.1.1.2/24 2.2.2.2/24

RouterA SwitchC RouterB

Configuration Roadmap
The configuration roadmap is as follows:
1. Set up BFD session on Router A and Router B to detect the link between Router A and
Router C.
2. Configure a default static route on Router A and bind the BFD session to the default
static route to the external network.

Data Preparation
To configure BFD for static routes, you need the following data:
z Peer IP address of the BFD detection
z Local identifier and remote identifier of the BFD Session
z Default values of BFD parameters, such as, the minimum interval for sending/receiving
BFD control packets and local detect-multiplier.

Configuration Procedure
Step 1 Configure IP address of each interface. (not mentioned here)
Step 2 Set up the BFD session between Router A and Router B.
# On Router A, configure the BFD session with Router C .
<RouterA> system-view
[RouterA] bfd
[RouterA-bfd] quit
[RouterA] bfd atoc bind peer-ip 1.1.1.2
[RouterA-bfd-session-atoc] discriminator local 10
[RouterA-bfd-session-atoc] discriminator remote 20
[RouterA-bfd-session-atoc] commit

2-12 Huawei Proprietary and Confidential Issue 07 (2008-08-20)


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
Configuration Guide - IP Routing 2 IP Static Route Configuration

[RouterA-bfd-session-atoc] quit

# On Router B, configure the BFD session with Router A.


<RouterB> system-view
[RouterB] bfd
[RouterB-bfd] quit
[RouterB] bfd ctoa bind peer-ip 1.1.1.1
[RouterB-bfd-session-ctoa] discriminator local 20
[RouterB-bfd-session-ctoa] discriminator remote 10
[RouterB-bfd-session-ctoa] commit
[RouterB-bfd-session-ctoa] quit

Step 3 Configure a default static route and bind the BFD session to the default static route.
# On Router A, configure a default static route to the external network and bind the BFD
session aaa to the default static route.
[RouterA] ip route-static 0.0.0.0 0 1.1.1.2 track bfd-session aaa

Step 4 Verify the configuration


# After the configuration is complete, run the display bfd session all command on Router A
and Router B, and you can view that the BFD session is set up and the session status is Up.
Run the display current-configuration | include bfd command in the system view, and you
can find that the BFD session is bound to the static route.
Take the display on Router A as an example:
[RouterA] display bfd session all
--------------------------------------------------------------------------------
Local Remote Peer IP Address Interface Name State Type
--------------------------------------------------------------------------------
10 20 1.1.1.2 -- Up Static
--------------------------------------------------------------------------------
Total UP/DOWN Session Number : 1/0
[RouterA] display current-configuration | include bfd
bfd
bfd aaa bind peer-ip 1.1.1.2
ip route-static 0.0.0.0 0.0.0.0 1.1.1.2 track bfd-session aaa

# Viewing the IP routing table on Router A, you can find that static routes exist in the routing
table.
[RouterA] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 3 Routes : 3

Destination/Mask Proto Pre Cost Flags NextHop Interface

0.0.0.0/0 Static 60 0 RD 1.1.1.2 GE1/0/0


1.1.1.0/24 Direct 0 0 D 1.1.1.1 GE1/0/0
1.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

# Run the shutdown command on GE 1/0/0 of Router B to simulate the fault on the link.
[RouterB] interface gigabitethernet 1/0/0
[RouterB-GigabitEthernet1/0/0] shutdown

Issue 07 (2008-08-20) Huawei Proprietary and Confidential 2-13


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
2 IP Static Route Configuration Configuration Guide - IP Routing

# You can view the following log on Router A, which indicates that BFD detects the fault on
the link.
<RouterA> terminal monitor
<RouterA> terminal debugging
<RouterA>
*0.27708400 RouterA RM/3/RMDEBUG:
RM_USR_BFDRefreshRT_H:
BfdSessionID = 10
BfdEvent = 0X0
USR : UsrDbID = 0X6, DestAdd = 0X0, Mask = 0X0, NextHop = 0X1010102
URT : TableID = 0X1, EntryID = 0XB, ProcID = 0X2, FLAG = 0X8114000
**********STATIC bfd down, the STATIC route will down**********

# Viewing the routing table of Router A, you can find that the default static route 0.0.0.0/0
does not exist. This is because the BFD session is bound to the default static route. When
detecting the fault, BFD immediately notifies all bound static routes that this route is invalid.
[RouterA] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 2 Routes : 2

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.0/24 Direct 0 0 D 1.1.1.1 Ethernet6/2/0


1.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

----End

Configuration Files
z Configuration file of Router A
#
sysname RouterA
#
bfd
#
interface GigabitEthernet1/0/0
link-protocol ppp
ip address 1.1.1.1 255.255.255.0
#
bfd aaa bind peer-ip 1.1.1.2
discriminator local 10
discriminator remote 20
commit
#
ip route-static 0.0.0.0 0.0.0.0 1.1.1.2 track bfd-session aaa
#
return
z Configuration file of Router B
#
sysname RouterB
#

2-14 Huawei Proprietary and Confidential Issue 07 (2008-08-20)


Copyright © Huawei Technologies Co., Ltd.
Quidway NetEngine40E
Configuration Guide - IP Routing 2 IP Static Route Configuration

bfd
#
interface GigabitEthernet1/0/0
ip address 1.1.1.2 255.255.255.0
#
interface Pos2/0/0
link-protocol ppp
ip address 2.2.2.2 255.255.255.0
#
bfd aaa bind peer-ip 1.1.1.1
discriminator local 20
discriminator remote 10
commit
#
return

Issue 07 (2008-08-20) Huawei Proprietary and Confidential 2-15


Copyright © Huawei Technologies Co., Ltd.

You might also like