next-hop-group (Forwarding Options)
Syntax for Routers
next-hop-group group-name {
interface interface-name {
next-hop address;
}
next-hop-subgroup subgroup-name {
interface interface-name {
next-hop address;
}
}
}
Syntax for 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 earlier 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
interface interface-name |
Name of interface used to reach the next-hop destination. |
group-type layer-2 |
(Applies only to EX switches) Group type of the next-hop group. The
allowed value for |
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. Up to 30 next-hop groups are supported. Each next-hop group must have at least two next-hop addresses. |
next-hop-group group-name |
Name of the next-hop group. The next-hop group can contain Layer 2 members, Layer 3 members, and subgroups that are either unit list (mirroring packets to each interface) or load-balanced (mirroring packets to one of several interfaces).
|
next-hop-subgroup subgroup-name |
Name of a next-hop subgroup. Subgroups are either unit list (mirroring packets to each interface) or load-balanced (mirroring packets to one of several interfaces) |
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.