Chapter 35 static route, 1 introduction to static route, 2 introduction to default route – PLANET XGS3-24042 User Manual

Page 280: 3 static route configuration task list, Chapter 35 static route -1, Ntroduction to, Tatic, Oute, Efault, Onfiguration

Advertising
background image

35-1

Chapter 35 Static Route

35.1 Introduction to Static Route

As mentioned earlier, the static route is the manually specified path to a network or a host. Static route is

simple and consistent, and can prevent illegal route modification, and is convenient for load balance and route

backup. However, it also has its own defects. Static route, as its name indicates, is static, it won’t modify the

route automatically on network failure, and manual configuration is required on such occasions, therefore it is

not suitable for mid and large-scale networks.

Static route is mainly used in the following two conditions: 1) in stable networks to reduce load of route

selection and routing data streams. For example, static route can be used in route to STUB network. 2) For

route backup, configure static route in the backup line, with a lower priority than the main line.

Static route and dynamic route can coexist; layer3 switch will choose the route with the highest priority

according to the priority of routing protocols. At the same time, static route can be introduced (redistribute) in

dynamic route, and change the priority of the static route introduced as required.

35.2 Introduction to Default Route

Default route is a kind of static route, which is used only when no matching route is found. In the route table,

default route in is indicated by a destination address of 0.0.0.0 and a network mask of 0.0.0.0, too. If the route

table does not have the destination of a packet and has no default route configured, the packet will be

discarded, and an ICMP packet will be sent to the source address indicate the destination address or network

is unreachable.

35.3 Static Route Configuration Task List

1. Static route configuration

2. VRF configuration

1. Static route configuration

Command

Explanation

Global mode

ip route {<ip-prefix> <mask> |

<ip-prefix>/<prefix-length>} {<gateway-address> |

<gateway-interface>} [<distance>]

no ip route {<ip-prefix> <mask> |

<ip-prefix>/<prefix-length>} [<gateway-address> |

<gateway-interface>] [<distance>]

Set static routing; the no ip

route {<ip-prefix> <mask> |

<ip-prefix>/<prefix-length>}

[<gateway-address>

|

<gateway-interface>]

[<distance>] command deletes

a static route entry

Advertising
This manual is related to the following products: