Command Reference
Protocol-independent Configuration Commands
match ip next-hop
{
access-list-number
[
access-list-number... | access-list-name...
]
|access-list-name
[
access-list-number...|access-list-name
]
|
prefix-list
prefix-list-name [prefix-list-name...
]}
no match ip next-hop
[
access-list-number
[
access-list-number... | access-list-name...
]
|access-list-name
[
access-list-number...|access-list-name
]
|
prefix-list
prefix-list-name
[prefix-list-name...
]]
Parameter
description
Parameter
Description
access-list-number
Number of the access list
access-list-name
Name of the access list
prefix-list
prefix-list-name
Specify the prefix list to match.
Default
configuration
None.
Command
mode
Route map configuration mode.
Usage
guidelines
Multiple access list numbers or names may follow match ip next-hop.
You can redistribute the routes from one routing process to another routing process. For example,
you can redistribute the route in the OSPF routing domain and then advertise it to the RIP routing
domain, and vice versa. The mutual route redistribution can be implemented between all the IP
routing protocols.
For route redistribution, route maps are usually used to control the mutual route redistribution
between two routing domains.
One or more match or set commands can be executed to configure a route map. If the match
command is not used, all the routes will be matched. If the set command is not used, no operation will
be performed.
Examples
In the example below, the OSPF routing protocol redistributes the RIP routes. As long as the next hop
address of the RIP route matches the access list 10 or 20, the OSPF allows for redistribution.
Ruijie(config)# router ospf
Ruijie(config-router)# redistribute rip subnets route-map redrip
Ruijie(config-router)# network 192.168.12.0 0.0.0.255 area 0
Ruijie(config-router)# exit
Ruijie(config)# access-list 10 permit host 192.168.10.1
Ruijie(config)# access-list 20 permit host 172.16.20.1
Ruijie(config)# route-map redrip permit 10
Ruijie(config-route-map)# match ip next-hop 10 20
Related
commands
Command
Description
access-list
Set the access list.
match ip address
Match the IP address in the access list.
match interface
Match the next-hop interface of the route.
match ip route-source
Match the route source address in the access list.
Summary of Contents for RG-S29 Series
Page 1: ...RG S29 Series Switch RGOS Command Reference Release 11 4 1 B12...
Page 10: ...Command Reference Command Line Interface Commands Platform Description N A...
Page 93: ...Command Reference Line Commands Description...
Page 248: ...Command Reference PKG_MGMT Commands...
Page 332: ...Command Reference Protocol VLAN Commands Commands N A N A Platform Description...
Page 350: ...Command Reference Voice VLAN Commands Description...
Page 430: ...Command Reference LLDP Commands Description...
Page 467: ...Command Reference ERPS Commands Commands N A N A Platform Description N A...
Page 541: ...Command Reference IPv6 Commands Platform Description N A...
Page 914: ...Multicast Commands 1 IPv4 Multicast Routing Commands 2 IGMP Snooping Commands...
Page 1092: ...Configuration Guide SCC Commands Platforms N A...
Page 1196: ...Configuration Guide IPv6 Source Guard Commands Platform Description N A...
Page 1290: ...ACL QoS Configuration Commands 1 ACL Commands 2 QoS Commands...