|
Command |
Command Description |
Command Syntax |
1.1.4 |
ip route 199.99.9.32 255.255.224.0
200.2.2.18 |
To establish static routes, use the
ip route
global configuration
command. To remove static routes, use the
no
form of this command. |
ip route prefix mask {address
| interface-type interface-number [ip-address]} [distance] [tag tag] [permanent] |
|
ip nat pool public_access
199.99.9.40 199.99.9.62 netmask 255.255.255.224 |
To define a pool of IP addresses for NAT, use the
ip nat pool
global configuration command. To remove one
or more addresses from the pool, use the
no
form of this command. |
ip nat pool name start-ip end-ip
{netmask netmask | prefix-length prefix-length}[type rotary] |
|
access-list 1 permit 10.10.10.0
0.0.0.255 |
To define an access-control list, use the
access-list
global
configuration command. To remove a standard access lists, use the
no
form of this command. |
IP standard access-list: access-list access-list-number
{deny |
permit | remark line} source[source-wildcard] [log] |
|
ip nat inside source list 1 pool
public_access |
To enable NAT of the inside source
address, use the
ip nat inside source
global configuration command. To
remove the static translation or remove the dynamic association to a
pool, use the
no
form of this command. |
ip nat inside source {list
{access-list-number |name} {pool name | interface
dialer-name}
[overload] | static local-ip global-ip} |
|
ip nat inside |
To designate that traffic originating from or destined for the
interface is subject to NAT, use the
ip
nat interface
configuration command. To prevent the interface from
being able to translate, use the
no
form of this command. |
ip nat {inside | outside} |
|
ip nat outside |
To designate that traffic originating from or destined for the
interface is subject to NAT, use the
ip
nat interface
configuration command. To prevent the interface from
being able to translate, use the
no
form of this command. |
ip nat {inside | outside} |
|
show ip nat translations |
To display active NAT translations, use
the
show ip nat
translations EXEC command. |
show ip nat translations
[verbose] |
|
ip nat inside source list 1
interface serial 0 overload |
To enable NAT of the inside source
address, use the
ip nat inside source
global configuration command. To
remove the static translation or remove the dynamic association to a
pool, use the
no
form of this command. |
ip nat inside source {list {access-list-number |name} {pool
name |
interface dialer-name} [overload] | static
local-ip global-ip} |
|
ip nat inside source static
10.10.10.10 199.99.9.33 |
To enable NAT of the inside source
address, use the
ip nat inside source
global configuration command. To
remove the static translation or remove the dynamic association to a
pool, use the
no
form of this command. |
ip nat inside source {list {access-list-number |name} {pool
name |
interface dialer-name} [overload] | static
local-ip global-ip} |
1.1.5 |
show ip nat statistics |
To display NAT statistics, use the
show ip nat statistics
EXEC command. |
show ip nat statistics |
|
show ip nat translations |
To display active NAT translations, use
the
show ip nat translations
EXEC command. |
show ip nat translations [verbose] |
|
clear ip nat translation * |
To clear dynamic NAT translations from
the translation table, use the clear
ip nat
translation EXEC command. |
clear ip nat translation {* |
[inside global-ip local-ip] [outside local-ip global-ip]} |
|
clear ip nat translation inside global-ip local-ip [outside local-ip
global-ip] |
To clear dynamic NAT translations from
the translation table, use the
clear ip nat translation
EXEC command. |
clear ip nat translation {* |
[inside global-ip local-ip] [outside local-ip global-ip]} |
|
clear ip nat translation protocol inside global-ip global-port local-ip
local-port [outside local-ip local-port global-ip global-port] |
To clear extended dynamic NAT translations from
the translation table, use the
clear ip nat translation EXEC command. |
clear ip nat translation
protocol inside global-ip global-port local-ip
local-port [outside local-ip global-ip] |
1.1.6 |
debug ip nat |
Use this command to verify the operation of the NAT feature by
displaying information about every packet that is translated by the
router. |
debug ip nat |
|
debug ip nat detailed |
This command generates a description of each packet considered for
translation. This command also outputs information about certain
errors or exception conditions, such as the failure to allocate a
global address. |
debug ip nat detailed |
1.2.5 |
ip dhcp pool |
To activate the IOS DHCP server and configure pool-specific settings,
use the
ip dhcp pool
command. To remove the address pool, use the
no
form of this command. |
ip dhcp pool
pool-name
|
|
ip dhcp excluded-address |
The DHCP Server assumes that all IP addresses in a DHCP address pool
subnet are available for assigning to DHCP clients. You must specify
the IP address that the DHCP Server should not assign to clients. |
dhcp excluded-address
low-address
[high-address] |
|
default-router |
This command specifies the IP address of the default router for a DHCP
client. One IP address is required but up to eight IP addresses may be
specified. To disable this feature, use the no form of this command. |
default-router
address [address2 ...
address8] |
|
dns-server |
This command specifies the IP address of a DNS server that is
available to a DHCP client. To disable this feature, use the no form
of this command. |
dns-server
address [address2 ...
address8] |
|
netbios-name-server |
This command specifies the IP address of a netbios name server that is
available to a DHCP client. One IP address is required. However, up to
eight IP addresses can be specified in one command line. To remove
the NetBIOS name server list, use the
no
form of this command. |
netbios-name-server address [address2 ...
address8] |
|
no service dhcp |
Enables the CiscoIOS DHCP server and relay features on the router.
Use the
no
form of this command to disable the Cisco IOS DHCP server
and relay features. |
no service dhcp |
|
service dhcp |
Enables the CiscoIOS DHCP server and relay features on the router.
Use the
no
form of this command to disable the Cisco IOS DHCP server
and relay features. |
service dhcp |
|
domain-name |
This command specifies the domain name for the client. To remove the
domain name, use the
no
form of this command. |
domain-name domain |
1.2.6 |
show ip dhcp binding |
This command is used to display DHCP server information from EXEC
mode. This displays a list of all bindings created by the DHCP
service. |
show ip dhcp {binding
[address] | conflict [address] | database [url] |
server statistics} |
|
show ip dhcp server statistics |
This command is used to display DHCP server information from EXEC
mode. This will display count information regarding the number of DHCP
messages that have been sent and received. |
show ip dhcp {binding
[address] | conflict [address] | database [url] |
server statistics} |
1.2.8 |
ip helper-address |
To have the Cisco IOS software forward User Datagram Protocol (UDP)
broadcasts, including BOOTP, received on an interface, use the
ip
helper-address interface
configuration command. To disable the
forwarding of broadcast packets to specific addresses, use the no form
of this command. |
ip helper-address address |