Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Term Description

Inside Local IP Address Before translation source IP address located inside the local network.

Inside Global IP Address After translation source IP address located outside the local network.

Outside Global IP Address Before translation destination IP address located outside the remote netw

Outside Local IP Address After translation destination IP address located inside the remote networ

Router
Router(config)#int fa 0/0

Router(config-if)#ip add 192.168.1.1 255.255.255.0

Router(config-if)#no shut

Router(config-if)#

Router(config-if)#int fa0/1

Router(config-if)#ip add 192.168.2.1 255.255.255.0


Router(config-if)#no shut

PC: IP add 192.168.1.10 Subnet mask 255.255.255.0 Default gateway


192.168.1.1

Server: IP add 200.0.0.10 Subnet mask 255.255.255.0 Default gateway


200.0.0.1

Now,to configure static NAT on the router,these are the steps:

1.Configure private/public IP address mapping using ip nat inside source


static PRIVATE_ID PUBLIC_ID command.

2.Configure the router’s inside interface using ip nat inside command.

3.Configure the router’s outside interface using ip nat outside command.

Here are the configuration commands:

Router(config)#ip nat inside source static 192.168.1.10

155.21.21.10

Router(config)#int fa0/0

Router(config-if)#ip nat inside

Router(config-if)#

Router(config-if)#int fa0/1

Router(config-if)#ip nat outside


We’re done with configurations.

Now ping the server from the PC to test connectivity and start off address
translations.

The PC uses its private IP address when sending a request to the router.
R1,which serves as a default gateway,receives the request,changes the private
IP address of the PC to the public one,then forwards the request to the internet
server.The server responds to the router with a packet destined to the PC.The
router looks up in its NAT table and changes the destination IP address to the
private IP address of the PC.

To verify NAT,we’ll use the show ip nat translations command:

From the picture above, you can observe that the private IP address(inside
local) of the PC has been translated to a pubic IP(inside global). Outside
local represents the server(an outside host).

You might also like