Command Reference
Protocol-independent Configuration Commands
Parameter
description
Parameter
Description
ip-address
IP address of the next hop.
weight
Weight of the next hop.
Default
configuration
None
Command
mode
Route map configuration mode
Usage
guideline
This command supports two operation modes: WCMP load balancing mode and non-WCMP load
balancing mode. In the former mode, the system implements WCMP load balancing according to the
weight inputted.
Up to 32 IP addresses may follow the
set ip default next-hop
command.
If a weight follows ip address, up to 4 next hop IP addresses can be configured.
Note: If a weight follows any next-hop, the operation mode of this command will be automatically
switched to the WCMP load balancing mode. In this mode, the weight of those next hop IP addresses
whose weight is not configured is 1 by default.
Differences between set ip next-hop and set ip default next-hop: After the set ip next-hop command is
configured, the policy-based routing takes precedence over the routing table; while after the set ip
default next-hop command is configured, the routing table takes precedence over the policy-based
routing.
Use this command to customize a default route for a specified user. If the software fails to find the
forwarding route, the packet will be forwarded to the nexthop set with this command.
To use the policy-based routing, you must specify the route map for it and create the route map. A
route map contains multiple policies, and each policy defines one or more match rules and the
corresponding operations. After policy-based routing is applied to an interface, the packets received
by the interface will be checked. The packets that do not match any policy in the route map will be
forwarded through the usual route. The packets that match a policy in the route map will be processed
according to the operation defined in the policy.
A route-map policy may contain multiple set operations.
Examples
The following example forwards the packets from two different nodes through different routes.
For the messages received on the synchronous interface 1 from 1.1.1.1, if the software cannot find
the forwarding route, they are forwarded to device 6.6.6.6. For the messages received from 2.2.2.2, if
the software cannot find the forwarding route, they are forwarded to device 7.7.7.7. The other
messages will be discarded if the software cannot find the forwarding route.
Ruijie(config)#access-list 1 permit 1.1.1.1 0.0.0.0
Ruijie(config)#access-list 2 permit 2.2.2.2 0.0.0.0
Ruijie(config)#interface async 1
Ruijie(config-if)#ip policy route-map equal-access
Ruijie(config)#route-map equal-access permit 10
Ruijie(config- route-map)#match ip address 1
Ruijie(config-route-map)#set ip default next-hop 6.6.6.6
Содержание RG-S29 Series
Страница 1: ...RG S29 Series Switch RGOS Command Reference Release 11 4 1 B12...
Страница 10: ...Command Reference Command Line Interface Commands Platform Description N A...
Страница 93: ...Command Reference Line Commands Description...
Страница 236: ...Command Reference PoE Management Commands Related Commands Command Description N A N A Platform Description N A...
Страница 248: ...Command Reference PKG_MGMT Commands...
Страница 332: ...Command Reference Protocol VLAN Commands Commands N A N A Platform Description...
Страница 350: ...Command Reference Voice VLAN Commands Description...
Страница 430: ...Command Reference LLDP Commands Description...
Страница 467: ...Command Reference ERPS Commands Commands N A N A Platform Description N A...
Страница 541: ...Command Reference IPv6 Commands Platform Description N A...
Страница 858: ...Command Reference NSM Commands Description N A N A Defaults N A Command Mode Privileged EXEC mode Usage guideline N A...
Страница 914: ...Multicast Commands 1 IPv4 Multicast Routing Commands 2 IGMP Snooping Commands...
Страница 1092: ...Configuration Guide SCC Commands Platforms N A...
Страница 1196: ...Configuration Guide IPv6 Source Guard Commands Platform Description N A...
Страница 1290: ...ACL QoS Configuration Commands 1 ACL Commands 2 QoS Commands...