次の方法で共有


Internet Connection Sharing Address Registry Settings (Compact 2013)

3/26/2014

ICS uses registry keys to keep track of mappings between internal device names and IPv4 addresses, as well as to assign a specific IPv4 address to a particular internal device - for example, to set up a static port mapping. The devices on the network are identified by hardware address, so if you use a different NIC on the device, the mapping no longer applies. These keys can be set by the NAT itself when the NAT receives a DHCP request, or preconfigured by a configuration tool, such as an administrative Web page.

The following table shows the named values for the HKEY_LOCAL_MACHINE\Comm\ConnectionSharing\Addresses\Address registry key that you can use to configure IP addresses for ICS.

Value : type

Description

DeviceName : REG_SZ

Name of the device associated with the IP address corresponding to the Address subkey containing the DeviceName subkey.

This value can be any valid machine name less than 16 characters long.

The DHCP allocator sets this and all values for any given Address automatically when the allocator receives a new DHCP request. A user, however, can also set these values to create an address and machine name mapping.

Expires : FILETIME structure

Default setting is zero (0).

Specifies the time at which an IP address becomes invalid. The valid range for this value is 0 to 0xFFFFFFFFFFFFFFFF.

To keep an address in the address table permanently, set this subkey to 0XFFFFFFFFFFFFFFFF.

The DHCP allocator sets this and all values for any given Address automatically when the allocator receives a new DHCP request. A user, however, can also set these values to create an address and machine name mapping.

See Also

Reference

Internet Connection Sharing Reference