Configuration Guide
Static Route Configuration
Static Route Configuration
Configuring Static Routes
Static routes are manually configured so that the packets can be sent to the specified
destination network go through the specified route. When it fails to learn the routes of some
destination networks, it becomes critical to configure static routes. It is a common practice to
configure a default route for the packets that do not have a definite route.
To configure static routes, execute the following commands in the global configuration mode:
Command
Function
Ruijie(config)#
ip route
network mask
{
ip-address
|
interface-type interface-number
[
ip-address
]}
[
distance
]
Configure static routes.
Ruijie(config)#
no ip route
network mask
Delete Static Route
Ruijie(config)#
ip static route-limit
number
Specify the maximum number of
static routes.
Ruijie(config)#
no ip static route-limit
Restore the default maximum
number of static routes.
If they are not deleted, Ruijie product will always retain the static routes. However, you can
replace the static routes with the better routes learned by the dynamic routing protocols. Better
routes mean that they have smaller distances. All routes including the static ones carry the
parameters of the management distance. The following table shows the management
distances of various sources of Ruijie product:
Route source
Default management distance
Directly connected networks
0
Static route
1
Unreachable route
255
When a port is “down”, all routes to that port will disappear from the routing table. In addition,
when Ruijie product fails to find the forwarding route to the next-hop address, the static route
will also disappear from the routing table.
When the sum of load-balancing route weights exceeds WCMP limit, the exceeded routes will
not take effect. For example, if the WCMP limit on a device is 8, only one static route
configuration is effective :
Ruijie(config)#
ip route
10.0.0.0 255.0.0.0 172.0.1.2
weight
6
Ruijie(config)#
ip route
10.0.0.0 255.0.0.0 172.0.1.4
weight
6
Summary of Contents for RG-S2900G-E Series
Page 1: ...RG S2900G E Series Switch RGOS Configuration Guide Release 10 4 2b12 p1 ...
Page 91: ...Configuration Guide Configuring PoE Configuration ...
Page 133: ...Configuration Guide EEE Configuration ...
Page 319: ...Configuration Guide QinQ Configuration ...
Page 408: ......
Page 409: ...IP Routing Configuration 1 Static Route Configuration ...
Page 412: ......
Page 413: ...Multicast Configuration 1 IGMP Snooping Configuration 2 MLD Snooping Configuration ...
Page 757: ......
Page 758: ...ACL QoS Configuration 1 Access Control List Configuration 2 QoS Configuration ...
Page 801: ...Reliability Configuration 1 RLDP Configuration 2 TPP Configuration 3 SEM Configuration ...
Page 901: ...Configuration Guide ERSPAN Configuration ...
Page 902: ...Web based Configuration 1 Web based Configuration ...