Справочник Пользователя для Netopia CLI 874

Скачать
Страница из 207
Motorola Netopia® Router CLI Commands   2-111
ip nat public tag static pub-from-address pub-to-address
This command allows you to allocate a range of exterior, public addresses for use by Network Address 
Translation. This range of addresses will be associated one-to-one with private addresses you will define when 
you create a map, described later. tag is the name you assign to the range, and it can contain up to 16 
characters. The address range is defined to be from the first address to the last address, inclusive. 
Example:
The following creates a static public range of 8 addresses star ting at 163.176.12.1:
ip nat public "my first range" static 163.176.12.1 163.176.12.8
ip nat public tag pat { pub-address |  0.0.0.0 } [from-por t  to-por t]
This command allows you to configure a PAT public range. Since PAT allows you to map multiple private 
addresses to a single public address, you specify only the public address. Optionally you can specify a range of 
por ts to be used by PAT. The lowest allowed por t is 1025, and the highest allowed por t is 65535. If you do not 
specify the por t range explicitly the default range is 49152 to 65535 inclusive. 
If you specify 0.0.0.0 as the public address, whatever address is negotiated by PPP or DHCP when the WAN 
connection is established, this pool will adopt. Since neither PPP nor DHCP are capable of assigning more than 
one address to a single client you should have at most one (active) PAT public range whose public address is 
0.0.0.0. 
Example:
The following command creates a PAT public range at 163.176.12.1, with a por t range from 10000 to 65535:
ip nat public "my pat range" pat 163.176.12.1 10000 65535
no ip nat public [ tag ]
This command allows you to delete a public range whose name is tag. Since tags must be unique this 
command works for both static and PAT public ranges. If the tag is omitted then all public ranges will be deleted.
Note:
Use of this command can have significant side effects, because any map in any map list that refers to 
a public range that is deleted will also be deleted. 
ip nat map list-tag priv-from-address priv-to-address pub-range-tag
This command allows you to map a range of private addresses (from priv-from-address to priv-to-address 
inclusive) to the public address range named pub-range-tag. This map is appended to the list of maps named 
list-tag. If a map list of that name doesn’t exist it is created.