0% found this document useful (0 votes)
39 views18 pages

5) Static Route

Static routes are commonly used in networks for their simple configuration and low cost. They can be configured to provide a default route for traffic to unknown destinations or to load balance traffic across multiple paths. However, static routes require manual configuration and maintenance as they do not adjust automatically to network changes.

Uploaded by

Angel Clavel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views18 pages

5) Static Route

Static routes are commonly used in networks for their simple configuration and low cost. They can be configured to provide a default route for traffic to unknown destinations or to load balance traffic across multiple paths. However, static routes require manual configuration and maintenance as they do not adjust automatically to network changes.

Uploaded by

Angel Clavel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

T

Static Route

www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved


Static is applied abroad in network
because of simple configuration and low
cost.

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 2 T


Upon completion of this course, you will be
able to:
Master static route configuration
Master default route configuration
Master route load balance and route
backup

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 3 T


Static Route

It is configured by network administrator, and the configuration is simple.

It need maintenance manually: when the network fails, the static route

won’t changed automatically.

It is suitable for simple topological network.

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 4 T


Static Route Configuration

Configuring a static route towards destination 10.1.1.1 on router B

RTA RTB

.1 1.1.1.0/24 .2
10.1.1.1/32 20.1.1.1/32
S0 S0

[RTB] ip route-static 10.1.1.1 255.255.255.255 1.1.1.1

or [RTB] ip route-static 10.1.1.1 32 1.1.1.1

Or [RTB] ip route-static 10.1.1.1 32 Serial 0

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 5 T


Static Route Configuration

<RTB> display ip routing-table


Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.0/24 Direct 0 0 1.1.1.2 Serial0
1.1.1.1/32 Direct 0 0 1.1.1.1 Serial0
1.1.1.2/32 Direct 0 0 127.0.0.1 InLoopBack0
10.1.1.1/32 Static 60 0 1.1.1.1 Serial0
20.1.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 6 T


Load Balance of Static Route

Configuring 3 routes towards destination 10.1.1.1 of router A


on router B
RTA RTB
1.1.1.0/24
10.1.1.1/32 20.1.1.1/32
.1 2.2.2.0/24 .2
3.3.3.0/24

[RTB] ip route-static 10.1.1.1 255.255.255.255 1.1.1.1


[RTB] ip route-static 10.1.1.1 255.255.255.255 2.2.2.1
[RTB] ip route-static 10.1.1.1 255.255.255.255 3.3.3.1

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 7 T


Load Balance

[RTB] display ip routing-table


Routing Tables: Public
Destinations : 13 Routes : 15
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.0/24 Direct 0 0 1.1.1.2 Serial0
1.1.1.1/32 Direct 0 0 1.1.1.1 Serial0
1.1.1.2/32 Direct 0 0 127.0.0.1 InLoopBack0
……
10.1.1.1/32 Static 60 0 1.1.1.1 Serial0
222222222222 Static 60 0 2.2.2.1 Serial1
222222222 Static 60 0 3.3.3.1 Serial2
……

ECMP realizes load-


balance

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 8 T


Route Backup of Static Route

Configuring backup route towards destination 10.1.1.1 of router


A on router B
RTA RTB
1.1.1.0/24
10.1.1.1/32 20.1.1.1/32
2.2.2.0/24
.1 .2

[RTB] ip route-static 10.1.1.1 255.255.255.255 1.1.1.1


[RTB] ip route-static 10.1.1.1 255.255.255.255 2.2.2.1 preference 100

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 9 T


Backup Route

[RTB] display ip routing-table


Routing Tables: Public
Destinations : 13 Routes : 15
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.0/24 Direct 0 0 1.1.1.2 Serial0
1.1.1.1/32 Direct 0 0 1.1.1.1 Serial0
1.1.1.2/32 Direct 0 0 127.0.0.1 InLoopBack0
……
10.1.1.1/32 Static 60 0 1.1.1.1 Serial0
20.1.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0
……

Router select the higher


preference route firstly

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 10 T


Router Backup

[RTB] display ip routing-table protocol static


Public Routing Table : Static Higher preference
Destinations : 1 Routes : 2 route is used
route and added
to routing table
Static Routing table Status : < Active>
Destinations : 1 Routes : 1

Destination/Mask Proto Pre Cost NextHop Interface


Lower preference
10.1.1.1/32 Static 60 0 1.1.1.1 Serial0
route is backup
route, not added
Static Routing table Status : < Inactive> to routing table
Destinations : 1 Routes : 1

Destination/Mask Proto Pre Cost NextHop Interface


10.1.1.1/32 Static 100 0 2.2.2.1 Serial1

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 11 T


Route Backup
Shut down the used link
[RTB-Serial0] shutdown
[RTB-Serial0] display ip routing-table
Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost NextHop Interface
2.2.2.0/24 Direct 0 0 2.2.2.2 Serial1
2.2.2.1/32 Direct 0 0 2.2.2.1 Serial1
2.2.2.2/32 Direct 0 0 127.0.0.1 InLoopBack0
10.1.1.1/32 Static 100 0 2.2.2.1 Serial1
……

Backup route becomes


used route, and it is added
to routing table

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 12 T


Default Route

Default route is special route, it can be configured as static route,

and some dynamic route can also create default route, such as

OSPF and IS-IS.

In routing table, the destination of default route is 0.0.0.0 (mask is

also 0.0.0.0).

When router received a data packet but can’t matches the

destination in routing table, it will send the data packet to the next

hop of default .

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 13 T


Default Route Configuration

Configuring default route on router B

RTA RTB

1.1.1.0/24
10.1.1.1/30 20.1.1.1/30
.1 .2

[RTB] ip route-static 0.0.0.0 0.0.0.0 1.1.1.1

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 14 T


Default Route

[RTB] display ip routing-table


Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 Static 60 0 1.1.1.1 Serial0
1.1.1.0/24 Direct 0 0 1.1.1.2 Serial0
1.1.1.1/32 Direct 0 0 1.1.1.1 Serial0
1.1.1.2/32 Direct 0 0 127.0.0.1 InLoopBack0
10.1.1.1/32 Static 60 0 1.1.1.1 Serial0
20.1.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 15 T


Default Route

Default route also support load balance and route backup.

[RTB] display ip routing-table


Routing Tables: Public
Destinations : 10 Routes : 11
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 Static 60 0 1.1.1.1 Serial0
Static 60 0 2.2.2.1 Serial1
1.1.1.0/24 Direct 0 0 1.1.1.2 Serial0
1.1.1.1/32 Direct 0 0 1.1.1.1 Serial0
1.1.1.2/32 Direct 0 0 127.0.0.1 InLoopBack0
2.2.2.0/24 Direct 0 0 2.2.2.2 Serial1
2.2.2.1/32 Direct 0 0 2.2.2.1 Serial1
……

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 16 T


Summary

What’s the difference between


load balance and route backup
of static route?
What’s default route?

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 17 T


Thank
T You
www.huawei.com

You might also like