Static NAT - wAlber47/Tech-Journal GitHub Wiki

Configuring of static NAT is straight forward. Here are the steps to follow to set it up. You can check this lab for more help.

Configure Router Interfaces

In order to start the process of Static NAT, we must make sure that interfaces all have the right addresses as well as correct configuration.

Router 1 (R1):

Router> enable
Router# configure terminal
Router(config)# hostname R1
R1(config)# interface fastethernet <port>
R1(config-if)# ip address <ip-address/subnet>
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# interface serial <port>
R1(config-if)# ip address <ip-address/subnet>
R1(config-if)# no shutdown
R1(config-if)# exit

Router 0 (R0):

Router>enable
Router# configure terminal
Router(config)# hostname R0
R0(config)# interface fastethernet <port>
R0(config-if)# ip address <ip-address/subnet>
R0(config-if)# no shutdown
R0(config-if)# exit
R0(config)# interface serial <port>
R0(config-if)# ip address <ip-address/subnet>
R0(config-if)# clock rate 64000
R0(config-if)# bandwidth 64
R0(config-if)# no shutdown
R0(config-if)# exit

Configure Routing

Router 1:

We must tell the router how to get to the inside network.

  • R1(config)# ip route <inside-network> <subnet> <next-hop-to-network>

Router 0:

We also have to tell the other router how to get to the masqueraded network

  • R0(config)# ip route <masked-address> <subnet-mask> <next-hop-to-network>

Setting up Static NAT

Now that we have all the interfaces and routers configured, we must define the "inside" and "outside" interfaces on Router 1.

R1(config)#interface fastEthernet <port>
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface serial <port>
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#ip nat inside source static <ip-address> <masked-address>
⚠️ **GitHub.com Fallback** ⚠️