Configuring Port Forwarding with IOS

In this article we will discuss Configuring Port Forwarding with IOS, will make brief discussion on Configuring Port Forwarding with IOS, In last article we discuss about Wireless Router Example.

Implementing port forwarding with IOS commands is similar to the commands used to configure static NAT. Port forwarding is essentially a static NAT translation with a specified TCP or UDP port number.

Configuring port forwarding using IOS commands on router R2. is the inside local IPv4 address of the web server listening on port 80. Users will access this internal web server using the global IPv4 address, a globally unique public IPv4 address. In this case, it is the address of the Serial 0/1/0 interface of R2. The global port is configured as 8080.

This will be the destination port used, along with the global IPv4 address of to access the internal web server. Notice within the NAT configuration, the following command parameters:

  • local-ip =
  • local-port = 80
  • global-ip =
  • global-port = 8080

When a well-known port number is not being used, the client must specify the port number in the application.

Like other types of NAT, port forwarding requires the configuration of both the inside and outside NAT interfaces.

In the example, when the router receives the packet with the inside global IPv4 address of and a TCP destination port 8080, the router performs a NAT table lookup using the destination IPv4 address and destination port as the key. The router then translates the address to the inside local address of host and destination port 80. R2 then forwards the packet to the web server. For return packets from the web server back to the client, this process is reversed.

Add a Comment

Your email address will not be published. Required fields are marked *