DEP30083 TELECOMMUNICATION NETWORK
ELECTRICAL ENGINEERING DEPARTMENT
ACADEMIC SESSION : …………
DEP30083 - TELECOMMUNICATION NETWORK
PRACTICAL WORK : CONFIGURE STATIC NAT IN ROUTER
PRACTICAL WORK DATE :
LECTURER’S NAME:
GROUP NO. :
DATE SUBMIT :
PRAC. TOTAL
REPORT
STUDENT ID & NAME : SKILL MARKS
(10%) (100%)
(90%)
(1)
(2)
(3)
(4)
REPORT MARK DISTRIBUTION 10%
(1) Result /7
(3) Conclusion /3
1
DEP30083 TELECOMMUNICATION NETWORK
PRACTICAL SKILL ASSESSMENT (CLO2,PLO5,CLS3a)
COURSE : DEP30083 TELECOMMUNICATION NETWORK
EXPERIMENT NO. : 5
EXPERIMENT TITLE : CONFIGURE STATIC NAT IN ROUTER
LECTURER’S NAME: _________________________________________________GROUP: ____________
REG.NO
Very Good Good Fair Weak
4 3 3 1
F_____ F_____
Set up the Able to set up the Able to set up the Able to set up the Has great difficulties to
network network topology network topology network topology set up the network
topology without any with minimum with some assistance topology despite X3
assistance assistance from from lecturer. assistance given by
lecturer. lecturer
Configure Able to configure Able to configure Able to configure Has great difficulties to
router using router settings router settings router settings with configure router
CLI accurately without accurately with some assistance settings despite
X5
any assistance minimum assistance from lecturer. assistance given by
from lecturer. lecturer
Configure NAT Able to NAT in Able to NAT in Able to NAT in Has great difficulties to
in router using router using CLI router using CLI router using CLI NAT in router using CLI
CLI accurately without accurately with accurately with some despite assistance X4
any assistance minimum assistance assistance from given by lecturer
from lecturer. lecturer.
Configure Able to configure Able to configure Able to configure Has great difficulties to
static routing static routing in static routing in static routing in configure static routing
in Router Router accurately Router accurately Router with some in Router despite X4
without any with minimum assistance from assistance given by
assistance assistance from lecturer. lecturer
lecturer.
Verify network Able to verify Able to verify Able to verify Has great difficulties to
connectivity network connectivity network connectivity network connectivity verify network
accurately without accurately with accurately with some connectivity despite X4
any assistance minimum assistance assistance from assistance given by
from lecturer. lecturer. lecturer
Verify IP Able to verify IP Able to verify IP Able to verify IP Has great difficulties to
Address Address Translation Address Translation Address Translation verify IP Address
Translation On accurately without accurately with accurately with some Translation despite X5
Router any assistance minimum assistance assistance from assistance given by
from lecturer. lecturer. lecturer
❑ × 90 ❑ × 90
Total = 100 100 100
= =
2
DEP30083 TELECOMMUNICATION NETWORK
EXPERIMENT : 5
TITLE : CONFIGURE STATIC NAT IN ROUTER
COURSE LEARNING : CLO2 : Assemble the related telecommunication equipment
OUTCOME (CLO) in performing the measurement of appropriate signal
parameter(P4,PLO5)
OBJECTIVES : After this experiment, student should be able:
1. To configure static NAT in Router.
2. To map addresses between inside local address,
outside local address, inside global address and
outside global address.
3. Verify static NAT translation step by step.
EQUIPMENT
1.PacketTracer Software
THEORY :
NAT (Network Address Translation)
• is a process of changing the source and destination IP addresses and ports.
• Address translation reduces the need for IPv4 public addresses and hides private network
address ranges.
• The process is usually done by routers or firewalls.
• NAT changes the Source IP address (from private to public/global) for all outgoing packets from
the private network to the public Internet.
• NAT changes the Destination IP address (from public/global to private) for all incoming IP
packets from public Internet to hosts in the private network.
3
DEP30083 TELECOMMUNICATION NETWORK
Inside Local Address, Outside Local Address, Inside Global Address And Outside Global Address
Inside local address—The IP address assigned to a host on the inside network. This is the address
configured as a parameter of the computer OS or received via dynamic address allocation protocols such
as DHCP. The address is likely not a legitimate IP address assigned by the Network Information Center
(NIC) or service provider.
Inside global address—A legitimate IP address assigned by the NIC or service provider that represents
one or more inside local IP addresses to the outside world.
Outside local address—The IP address of an outside host as it appears to the inside network. Not
necessarily a legitimate address, it is allocated from an address space routable on the inside.
Outside global address—The IP address assigned to a host on the outside network by the host owner.
The address is allocated from a globally routable address or network space.
SA = Source Address
DA = Destination Address
Define Inside Local and Inside Global Addresses
In this configuration, when the NAT router receives a packet on its inside interface with a source address
of 10.10.10.1, the source address is translated to 171.16.68.5. This also means that when the NAT router
receives a packet on its outside interface with a destination address of 171.16.68.5, the destination
address is translated to 10.10.10.1.
Inside host is known by the outside host as 171.16.68.5.
Define Outside Local and Outside Global Addresses
In this configuration, when the NAT router receives a packet on its outside interface with a source
address of 171.16.68.1, the source address is translated to 10.10.10.5. This also means that if the NAT
router receives a packet on its inside interface with a destination address of 10.10.10.5, the destination
address is translated to 171.16.68.1.
Outside host is known to the inside host as 10.10.10.5.
4
DEP30083 TELECOMMUNICATION NETWORK
A) SET UP A NETWORK TOPOLOGY
1. Set up a network topology as shown below.
Network Topology
Initial IP Configuration
Device / Interface IP Address Connected With
Laptop0 10.0.0.10/8 Fa0/0
Laptop1 10.0.0.20/8 Fa0/0
Laptop2 10.0.0.30/8 Fa0/0
Server0 192.168.1.10/24 Fa0/0 of R1
Fa0/1 of R1 100.0.0.1/8 Fa0/1 of R2
Fa0/1 of R2 100.0.0.2/8 Fa0/1 of R1
B) CONFIGURATION FOR ROUTER
i. To configure IP address in Router1 (R1) click Router1 and select CLI (Two interfaces of Router1 are
used in topology; FastEthernet0/0hostname and Serial 0/0/0.)
Router>enable
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
ii. Name the router
ii. To name the Router.
Router(config)#hostname R1
R1(config)#
5
DEP30083 TELECOMMUNICATION NETWORK
iii. Set IP address in FastEthernet 0/0 and FastEthernet 0/1 interface.
R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fa0/1
R1(config-if)#ip address 100.0.0.1 255.0.0.0
R1(config-if)#no shut
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
R1(config-if)#exit
v. Set IP address in Router2 (R2)
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#int fa0/0
R2(config-if)#ip address 192.168.1.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#int fa0/1
R2(config-if)#ip address 100.0.0.2 255.0.0.0
R2(config-if)#no shut
R2(config-if)#exit
C) CONFIGURE STATIC NAT in ROUTER
6
DEP30083 TELECOMMUNICATION NETWORK
i. Router R1 Static NAT Configurationiip
R1(config)#
R1(config)#ip nat inside source static 10.0.0.10 50.0.0.10
R1(config)#interface fa0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#
R1(config)#int fa0/1
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#
ii. Router R2 Static NAT Configuration
R2(config)#ip nat inside source static 192.168.1.10 200.0.0.10
R2(config)#interface FastEthernet 0/0
R2(config-if)#ip nat inside
R2(config-if)#exit
R2(config)#
R2(config)#interface fa0/1
R2(config-if)#ip nat outside
R2(config-if)#exit
iii. Configure static routing in Router R1
R1(config)#ip route 200.0.0.0 255.255.255.0 100.0.0.2
iv. Configure static routing in Router R2
R2(config)#ip route 50.0.0.0 255.0.0.0 100.0.0.1
Note : static NAT on R1 and R2. On R1 we mapped inside local IP address 10.0.0.10 with inside global
address 50.0.0.10 while on R2 we mapped inside local IP address 192.168.1.10 with inside global IP
address 200.0.0.10.
Device Inside Local IP Address Inside Global IP Address
Laptop0 10.0.0.10 50.0.0.10
Server 192.168.1.10 200.0.0.10
v. Test the configuration by click Laptop0 and Desktop and click Command Prompt.
7
DEP30083 TELECOMMUNICATION NETWORK
a. Run ipconfig command. Record the result.
Result Explanation
IP Address......................: 10.0.0.10 The result , we get from the IP
address that we change in the
Subnet Mask.....................: 255.0.0.0 laptop
Default Gateway.................: 10.0.0.1
(1 marks)
b. Run ping 200.0.0.10 command. Record the result.
Result Explanation
Pinging 200.0.0.10 with 32 bytes of data: Because we change IP address in the
router for laptop 0
Request timed out.
Request timed out.
Reply from 200.0.0.10: bytes=32 time=124ms
TTL=126
Reply from 200.0.0.10: bytes=32 time=118ms
TTL=126
Ping statistics for 200.0.0.10:
Packets: Sent = 4, Received = 2, Lost = 2
(50% loss),
Approximate round trip times in milli-seconds:
Minimum = 118ms, Maximum = 124ms,
Average = 121ms
(1 marks)
c. Run ping 192.168.1.10 command. Record the result.
Result Explanation
Pinging 192.168.1.10 with 32 bytes of data: Because the server connection is
private . If we want to connect
8
DEP30083 TELECOMMUNICATION NETWORK
laptop 0 to the server we have to go
through the router .
Reply from 10.0.0.1: Destination host
unreachable.
Reply from 10.0.0.1: Destination host
unreachable.
Reply from 10.0.0.1: Destination host
unreachable.
Reply from 10.0.0.1: Destination host
unreachable.
Ping statistics for 192.168.1.10:
Packets: Sent = 4, Received = 0, Lost = 4
(100% loss),
(1 marks)
vi. Test the configuration by click Laptop0 and Desktop and click Web Browser. On URL, type
200.0.0.10 and click Go. Record the result.
Result Explanation
We get result because we write
over the settings in the config .
9
DEP30083 TELECOMMUNICATION NETWORK
(2 marks)
vii. Test the configuration by click Laptop1 and Desktop and click Command Prompt.
a. Run ping 200.0.0.10 command. Record the result. (2 marks)
Result Explanation
PC>ping 200.0.0.10 Because we only set IP address in
the router for laptop 0 and not
laptop 1 .
Pinging 200.0.0.10 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 200.0.0.10:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
D) VERIFY IP ADDRESS TRANSLATION ON ROUTER
i. To verify IP address translation on Router R1. click router R1 and select CLI.
R1#show ip nat translations
Record the result.
Result Explanation translation
Pro Inside global Inside local Outside local We get from the code that we put in
Outside global the router .
--- 50.0.0.10 10.0.0.10 --- ---
tcp 50.0.0.10:1025 10.0.0.10:1025 200.0.0.10:80
200.0.0.10:80
(4 marks)
10
DEP30083 TELECOMMUNICATION NETWORK
ii. To verify IP address translation on Router R1. click router R2 and select CLI.
R2#show ip nat translations
Record the result.
Result Explanation translation
Pro Inside global Inside local Outside local We get from the code that we put in
Outside global router .
--- 200.0.0.10 192.168.1.10 --- ---
tcp 200.0.0.10:80 192.168.1.10:80 50.0.0.10:1025
50.0.0.10:1025
(4M)
CONCLUSION: (5M)
Note: To conclude, you should indicate what you have learned during this lab session and
identify new knowledge that you have gained.
In conclusion , we need to follow the flow clearly to get the best result. If we miss one of number
network or anything else probability to get wrong is 100% . In this practical I learn who to get
the correct ip address . After that, I know what connection wire that we have to use to make the
laptop and router connected to each other. Last but not least, I know what to do if there any
mistake in the connection that we make.
11