Command Reference
Protocol-independent Configuration Commands
A route-map policy may contain multiple set operations.
Examples
The following example enables policy-based routing on serial 1/0. When the interface receives the
packets from 10.0.0.0/8, they will be sent to 192.168.100.1; when the interface receives the packets
from 172.16.0.0/16, they will be sent to 172.16.100.1; all other packets will be discarded.
Ruijie(config)#interface serial
1/0
Ruijie(config-if)#ip policy route-map
load-balance
Ruijie(config)#access-list
10
permit
10.0.0.0 0.255.255.255
Ruijie(config)#access-list
20
permit
172.16.0.0 0.0.255.255
Ruijie(config)#route-map
load-balance
permit
10
Ruijie(config-route-map)#match ip address
10
Ruijie(config-route-map)#set ip next-hop
192.168.100.1
Ruijie(config)#route-map
load-balanc
e permit
20
Ruijie(config-route-map)#match ip address
20
Ruijie(config-route-map)#set ip next-hop
172.16.100.1
Ruijie(config)#route-map
load-balance
permit
30
Ruijie(config-route-map)#set interface Null
0
Related
commands
Command
Description
route-map
Define the route map.
match ip address
Match the IP address.
set default interface
Set the default outgoing interface.
set interface
Set the outgoing interface.
set ip default next-hop
Set the default next hop.
set ip precedence
Set the priority of the packets.
6.31 set ip precedence
Use this command to set the precedence of the IP head of the packet matching the rule in the route
map configuration mode. Use the
no
form of this command to remove the configured precedence
setting.
set ip precedence
{<
0-7
> |
critical
|
flash
|
flash-override
|
immediate
|
internet
|
network
|
priority
|
routine
}
no set ip precedence
Parameter
Description
Parameter
Description
number
Indicates the priority of the IP header with a number, ranging from 0
to 7.
7: critical
6: flash
5: flash-override
4: immediate
Содержание 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...