beautypg.com

Ip network address translation (nat) commands, Ip network address translation (nat) commands -110 – Netopia CLI 874 User Manual

Page 122

background image

2-110 Command Line Interface Commands Reference

IP Network Address Translation (NAT) Commands

Overview

Network Address Translation (NAT) makes use of five basic structures:

“public” or externally visible address ranges

“map” rules that bind an interior, private address range with a public address range

“map-lists”, which are ordered lists of maps

“ser vers”, which define a mapping between a private IP address and por t and a public IP address (and the
same por t)

“ser ver-lists” which are lists of ser vers.

ip nat public tag dynamic from-address to-address

This command allows you to allocate a dynamic range of exterior, public addresses for use by Network Address
Translation. This range of addresses will be associated dynamically with private addresses you will define when
you create a map. tag is the name you assign to the range, and it can contain up to 16 characters.

Example:

The following creates a dynamic public range of 8 addresses star ting at 163.176.12.1:

ip nat public "my second range" dynamic 163.176.12.1 163.176.12.8

IP Network Address Translation (NAT) Commands

ip nat public tag dynamic from-address to-address
ip nat public tag static pub-from-address pub-to-address
ip nat public tag pat { pub-address | 0.0.0.0 } [from-por t to-por t]
no ip nat public [ tag ]

ip nat map list-tag priv-from-address priv-to-address pool-tag
no ip nat map [ list-tag ]
show ip nat map list-tag

ip nat server list-tag priv-ip-addr pub-ip-addr { por t-name pub-star t-por t [ pub-end-por t ] }
{ both | tcp | udp } priv-star t-por t

no ip nat server [ list-tag ]
show ip nat server list-tag

show ip nat translation