Skip to main content

Configuring NAT in Cisco Packet Tracer

NAT:-

Network Address Translation (NAT) is a process in which one or more local IP address is translated into one or more Global IP address and vice versa in order to provide Internet access to the local hosts. Also, it does the translation of port numbers i.e. masks the port number of the host with another port number, in the packet that will be routed to destination. It then makes the corresponding entries of IP address and port number in the NAT table. NAT generally operates on router or firewall.

Static NAT Practice Topology

PROCEDURE (for Static):-
1) Take two routers and 4 PC's.
2) Connect 2 PC's each with switches and connect to with router. Then connect the routers.
3) Assign the IP, subnet mask and gateway.

Router 1 (Fa 0/0)............. 10.0.0.1          255.0.0.0               ---------
Router 1 (Se 2/0)............. 10.0.0.1          255.0.0.0               ---------
Router 2 (Fa 0/0)............. 192.168.1.1    255.255.255.0       ---------
Router 2 (Se 2/0)............. 100.0.0.20      255.0.0.0               ---------
PC 1                   .............. 10.0.0.10        255.0.0.0              10.0.0.1
PC 2                   .............. 10.0.0.20        255.0.0.0              10.0.0.1
PC 3                   .............. 192.168.1.10  255.255.255.0      192.168.1.1
PC 4                   .............. 192.168.1.20  255.255.255.0       192.168.1.1

Then write the command in each router after 'config' command in each of the router.
Router(config)# if not inside router static[inside local IP address] [inside global address]


  • Then define NAT inside from which the PC's are connected.
  • Here, fast Ethernet 0/0.
  • Router (Config-if)# if not inside.
  • Then write the command router (config-if)# IP not outside from where the connection will go to outside world.
  • Now configure static routing between Router 1 and Router 2, here we need RIP.
  • Now, ping from the PC through their inside global IP address.

Comments

Popular posts from this blog

Socket Programming

SOCKET PROGRAMMING TCP Python provides two levels of access to network services. At a low level, you can access the basic socket support in the underlying operating system, which allows you to implement clients and servers for both connection-oriented and connectionless protocols. Python also has libraries that provide higher-level access to specific application-level network protocols, such as FTP, HTTP, and so on. What is Sockets? Sockets are the endpoints of a bidirectional communications channel. Sockets may communicate within a process, between processes on the same machine, or between processes on different continents. Sockets may be implemented over a number of different channel types: Unix domain sockets, TCP, UDP, and so on. The socket library provides specific classes for handling the common transports as well as a generic interface for handling the rest. Sockets have their own vocabulary − Term & Description 1 Domain  The family of pr...

Socket Programming

SOCKET PROGRAMMING TCP SOCKET PROGRAMMING TCP  Python provides two levels of access to network services. At a low level, you can access the basic socket support in the underlying operating system, which allows you to implement clients and servers for both connection-oriented and connectionless protocols. Python also has libraries that provide higher-level access to specific application-level network protocols, such as FTP, HTTP, and so on. What is Sockets? Sockets are the endpoints of a bidirectional communications channel. Sockets may communicate within a process, between processes on the same machine, or between processes on different continents. Sockets may be implemented over a number of different channel types: Unix domain sockets, TCP, UDP, and so on. The socket library provides specific classes for handling the common transports as well as a generic interface for handling the rest. Sockets have their own vocabulary − Term & Description 1...

Star Topology using Hub & Switch

Star Topology Alternatively referred to as a  star network ,  star topology  is one of the most common network setups. In this configuration, every  node  connects to a central network device, like a hu b , switch , or computer. The central network device acts as a  server  and the peripheral devices act as  clients . Depending on the type of  network card  used in each computer of the star topology, a  coaxial cable  or an  RJ-45  network cable is used to connect computers together. Steps: 1) Create a network topology. 2) Assign IPs to the PCs. 3) Configure Router using CLI :-      Router>enter Router>enable Router(Config)#int gig 0/1 Router(Config)#ip address 192.168.1.1  255.255.255.0 Router(Config)#exit Router(Config)#line console 0 Router(Config-line)#password CISCO Router(Config-line)#login Router(Config-line)#exit Router(Config)#enable p...