Reference Manual

NAME
setmap - adjust mappings for a specified connection.
SYNOPSIS
setmap ["connection" [off | primary]]
DESCRIPTION
When invoked with no arguments, setmap prints the current DUN Connection details.

Argument "connection" specifies which DUN Connection the command refers to. If no additional argument is specified, mappings will be turned ON for the Interface that is currently bound to the specified connection.

Argument off turns mappings OFF for the specified connection.

Argument primary turns mappings ON for the specified Connection and makes the relevant Interface the Primary Interface.

The altered settings are not recorded in any netcfg file or in the Windows Registry. To make the settings permanent, the command should be placed in file connect.

NOTES
Per default, NAT32 turns mappings on whenever a DUN Connection is established. In cases where a connection is established over some other existing DUN Connection (e.g. a VPN connection over another DUN Connection), it may be desirable to turn on mappings only for the VPN connection and not for the underlying DUN Connection. On Windows NT, 2000 and XP, NAT32 should be configured to bind to both such connections, because the actual NDISWANIP adapter used for a given DUN Connection may vary. The file connect should then be edited to contain two setmap commands, one which turns mappings off for a particular connection, and another which turns mappings on for the other connection.

The setmap command is not required on 95/98 platforms, as the allocation of Interfaces to Connections does not change.

SEE ALSO
ipmap, pmap, setp