Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Configure the conditions for enabling dynamic-bridged generic routing encapsulation (GRE) tunnel creation on the MX Series router Wi-Fi access gateway (WAG).


Configuration of multiple dynamic tunnel groups is supported.


destination-networks [prefix]

Use the specified IP subnets from which soft-GRE connection requests from the customer can be processed.


Name of the dynamic GRE tunnel group.

dynamic-profile profile-name

Name of the dynamic profile that creates the tunnel.


To support VLAN autosensing on a GRE tunnel, you must also specify the auto-configure options at the [edit dynamic-profile profile-name interfaces unit] hierarchy level. These options include a reference to the dynamic profile that creates VLANs.

service-interface psn

Use the specified pseudowire subscriber interface device (IFD) on which the tunnels are built.

source-address wag-ip-address

Use the specified source IP address of the GRE tunnels for the WAG. This is the IP address on which incoming GRE traffic must be received by the MX Series router.

tunnel-idle-timeout seconds

(Optional) Use the specified number of seconds that a GRE tunnel remains up after the last subscriber session on the tunnel has ended. If set to 0, then no idle timeout is set, and the tunnel remains up for an unlimited period of time.

  • Range: 0 through 65535

  • Default: 120

Required Privilege Level

admin—To view this statement in the configuration.

admin-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 17.2R1.