Information Technology Reference
In-Depth Information
14.
Click the OK button to complete the configuration of the interface.
To delete a NAT interface, do the following:
1.
Right-click the interface object in the right pane, and select Delete.
Using a Command-Line Interface
You can manage NAT interfaces on your router by using the netsh routing ip nat command.
To display the NAT interfaces already configured, run the following command:
> netsh routing ip nat show interface
The output will look similar to the following:
> netsh routing ip nat show interface
NAT Server Local Area Connection Configuration
---------------------------
Mode : Private Interface
NAT Local Area Connection #2 Configuration
---------------------------
Mode : Address and Port Translation with Firewall Enabled
NAT Internal Configuration
---------------------------
Mode : Private Interface
There are four distinct commands for adding NAT interfaces. First, to create a NAT inter-
face, use this command:
> netsh routing ip nat add interface [InterfaceName=] <InterfaceName>
[[Mode=]{full | addressonly | private | fullfirewall |
addressonlyfirewall | firewallonly}]
The command-line options are as follows:
InterfaceName : Required parameter whose value specifies the interface on which you want
to configure NAT. The value must match the name of the interface as it has been specified
in Network Connections. Put the value in quotation marks if there are spaces in the name.
Mode : Optional parameter whose value specifies the interface mode. Specify full to enable
both address and port translation for an interface connected to the Internet; specify
addressonly to enable IP address translation without port translation when connected to
the Internet; specify private to enable the interface to connect to a private network rather
than the Internet; specify fullfirewall to enable full translation with a firewall; specify
addressonlyfirewall to enable a firewall in address-only mode; specify firewallonly to
configure a firewall without translation.
Search WWH ::




Custom Search