Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?





Hierarchy Level

Release Information

Statement introduced before Junos OS Release 7.4.

Statement introduced in Junos OS Release 12.3 for ACX Series routers.


Configure a dynamic tunnel between two PE routers.


ACX Series routers do not support the gre statement.

Configure dynamic IPv4-over-IPv6 tunnels and define their attributes to forward IPv4 traffic over an IPv6-only network. IPv4 traffic is tunneled from customer premises equipment to IPv4-over-IPv6 gateways. You must also configure extended-nexthop option at [edit protocols bgp family inet unicast] hierarchy level to allow BGP to route IPv4 address families over an IPv6 session.


greEnable dynamic generic routing encapsulation type tunnel mode for IPv4


  • next-hop-based-tunnel—Enable next hop base dynamic-tunnel for steering IPv4 traffic with IPv6 next hop address.

source-addressSpecify the source address of the tunnel.
tunnel-nameName of the dynamic tunnel.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

routing—To view this statement in the configuration.

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