next-hop-group (Forwarding Options)
Syntax
next-hop-group group-name { interface interface-name { next-hop address; } next-hop-subgroup subgroup-name { interface interface-name { next-hop address; } } }
Syntax EX3400, EX4100, EX4100-F, EX4300-MP, and EX4400 Switches
next-hop-group group-name { group-type layer-2; interface interface-name; }
Hierarchy Level
[edit forwarding-options]
Description
Specify the next-hop address for sending copies of packets to an analyzer.
(This paragraph applies only to routers.) The commit operation fails when a next-hop group has only one interface configured. It is implicitly assumed that a subgroup is up only if more than one interface in the subgroup is up.
(This Note
applies
only to routers.) In Junos OS releases through Release 14.2,
the next-hop-group
statement is present in the
forwarding-options
stanza for a routing instance, but the
next-hop-group
statement is not allowed in a routing
instance. In other words, in a routing instance, [edit routing-instances
routing-instance-name forwarding-options
next-hop-group]
is not supported. You will get an error message if
you try to commit this type of configuration. Starting in Junos OS Release 14.2,
the next-hop-group
statement is not present in [edit
routing-instances routing-instance-name
forwarding-options]
.
Options
group-name — Name of next-hop group.
-
Routers—Up to 30 next-hop groups are supported. Each next-hop group must have at least two next-hop addresses.
-
Switches—Up to 4 next-hop groups are supported.
next-hop address — (Applies only to routers) IP address of the next-hop router. Each next-hop group supports up to 16 next-hop addresses. Each next-hop group must have at least two next-hop addresses.
group-type layer-2 — (Applies only to EX switches) Group type
of the next-hop group. The allowed
value for
group-type
is layer-2
.
interface interface-name — Interface used to reach the next-hop destination.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 22.4R1 for EX3400, EX4100, EX4100-F, EX4300-MP, and EX4400 switches.