CAUTION:
You must mark interfaces that participate in NAT translation as on the inside
or the outside network. See “Specifying Inside and Outside Interfaces” on page 69 for
details.
Creating Static Inside Source Translations
You use the
ip nat inside source static
command to create static translations from a
local IP address to a global IP address, and to
untranslate
the destination address when
a packet returns from the outside network to the inside network. When you configure
traditional NAT (both basic NAT and NAPT), you only need to use this command alone.
However, when you configure twice NAT, you must also use “ip nat outside source static”
on page 70 .
The
ip nat inside source static
command creates a simple (IP address only) or extended
(IP address, port, and protocol) entry in the translation table that maps the two addresses.
ip nat inside source static
•
Use to create static translations for a source address (or address/port pair) when
routing a packet from the inside network to the outside network, and to
untranslate
the destination address (or address/port pair) when a packet returns from the outside
network to the inside network.
•
A static translation created with the
ip nat inside source static
command enables any
outside host to contact the inside host by using the inside global address of the inside
host. A static translation can be used by traffic that is initiated in either direction
•
Example 1—Simple address translation
host (config) #
ip nat inside source static 10.1.2.3 171.69.68.10
•
Example 2—Extended address/port translation
host (config) #
ip nat inside source static tcp 10.1.2.3 15 171.69.68.10 30
•
Use the
no
version to remove the static translation and purge the associated translations
from the translation table.
•
See ip nat inside source static.
Creating Static Outside Source Translations
Less commonly used, outside source translation enables you to set up translation between
two non-unique or not publicly routable networks (for example, two separate networks
that use overlapping IP address blocks).
ip nat outside source static
•
Use to translate the source address when routing a packet from the outside network
to the inside network, and to
untranslate
the destination address when a packet travels
from the inside network to the outside network.
•
Creates a simple (IP address only) or extended (IP address, protocol, and port) entry
in the translation table that maps the two addresses.
Copyright © 2010, Juniper Networks, Inc.
70
JunosE 11.2.x IP Services Configuration Guide
Содержание JUNOSE 11.2.X IP SERVICES
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 2 x IP Services Configuration Guide...
Страница 18: ...Copyright 2010 Juniper Networks Inc xviii JunosE 11 2 x IP Services Configuration Guide...
Страница 22: ...Copyright 2010 Juniper Networks Inc xxii JunosE 11 2 x IP Services Configuration Guide...
Страница 28: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 2 x IP Services Configuration Guide...
Страница 116: ...Copyright 2010 Juniper Networks Inc 90 JunosE 11 2 x IP Services Configuration Guide...
Страница 144: ...Copyright 2010 Juniper Networks Inc 118 JunosE 11 2 x IP Services Configuration Guide...
Страница 230: ...Copyright 2010 Juniper Networks Inc 204 JunosE 11 2 x IP Services Configuration Guide...
Страница 262: ...Copyright 2010 Juniper Networks Inc 236 JunosE 11 2 x IP Services Configuration Guide...
Страница 294: ...Copyright 2010 Juniper Networks Inc 268 JunosE 11 2 x IP Services Configuration Guide...
Страница 328: ...Copyright 2010 Juniper Networks Inc 302 JunosE 11 2 x IP Services Configuration Guide...
Страница 345: ...PART 2 Index Index on page 321 319 Copyright 2010 Juniper Networks Inc...
Страница 346: ...Copyright 2010 Juniper Networks Inc 320 JunosE 11 2 x IP Services Configuration Guide...
Страница 356: ...Copyright 2010 Juniper Networks Inc 330 JunosE 11 2 x IP Services Configuration Guide...