Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

prefix (Security Static NAT)

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
prefix {
    address-prefix;
    mapped-port lower-port-range to upper-port-range;
    routing-instance (routing-instance-name| default);
}

Hierarchy Level

content_copy zoom_out_map
[edit security nat static rule-set rule-set-name rule rule-name then static-nat]

Description

Specify a static IP address prefix.

Note:

If you use the inet option for translation of IPv6 to IPv4 addresses (and vice versa), you do not need to specify a prefix because the inet option automatically strips the first 96 most significant bits from the 128-bit IPv6 address.

Options

  • address-prefix—Specify address prefix.

  • mapped-port lower-port-range to upper-port-range—Specify a destination port or port range to allow static NAT to map ports.

  • routing-instance —Specify routing instance type:

    • routing-instance-name—Use the user-defined static NAT routing instance to perform static NAT.

    • default—Use the default routing-instance.

Required Privilege Level

security—To view this statement in the configuration.

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

Release Information

Statement modified in Junos OS Release 9.6.

footer-navigation