0% found this document useful (0 votes)
34 views14 pages

213-15-4282 Lab Final

The document is a lab report detailing the configuration of static network address translation (NAT) using four routers. Key details: - Static NAT is configured to translate the private IP address 10.0.0.1 to the public IP address 202.202.202.1 on Router 2. - Router interfaces are configured with IP addresses and static routes are added so packets can route between the private and public networks. - Router 3 performs NAT translation for private host 170.1.0.2 to public IP 150.0.0.1.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views14 pages

213-15-4282 Lab Final

The document is a lab report detailing the configuration of static network address translation (NAT) using four routers. Key details: - Static NAT is configured to translate the private IP address 10.0.0.1 to the public IP address 202.202.202.1 on Router 2. - Router interfaces are configured with IP addresses and static routes are added so packets can route between the private and public networks. - Router 3 performs NAT translation for private host 170.1.0.2 to public IP 150.0.0.1.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Lab Report

Course Code: CSE 314


Course Name: Computer Networks Lab

Experiment name: Network Address translation with static routing

Date of submission: 20-11-2023

Submitted to: Submitted by:


Narayan Ranjan Chakraborty Name: Arman hasan
Associate Head and Associate Professor ID: 213-15-4282
Department of CSE Section: 60_B
Daffodil International University
Title: Solve the problem using Static NAT.
Equipment:
End device – 10 pc, 1 server
Connecting device – 4 Routers, 3 switch
Connection type – Copper straight (router – switch – pc)
Serial DCE (router - router)

Topology:
Configuration:

PC—
192.168.10.0/24 192.168.30.0/24
192.168.40.0/24

Router— 201.201.201.0/30
200.200.200.0/26

Server— 202.202.202.0/30

Router -0:
Router>enable
Router#configure terminal
Enter configuration commands,
one per line. End with CNTL/Z.
Router(config)#interface
FastEthernet0/0
Router(config-if)#no shutdown

Router(config-if)# %LINK-5-CHANGED:
Interface FastEthernet0/0, changed
state to up

%LINEPROTO-5-UPDOWN:
Line protocol on Interface
FastEthernet0/0, changed
state to up ip address
192.168.10.1 255.255.255.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface
Serial2/0
Router(config-if)#no shutdown

%LINK-5-CHANGED:
Interface Serial2/0, changed state
to down
Router(config-if)#clock rate
64000
This command applies only to DCE
interfaces
Router(config-if)#ip address
192.168.30.1 255.255.255.0
Router(config-if)#
Router(config-if)#exit Router(config)#interface Serial3/0
Router(config-if)#no shutdown

%LINK-5-CHANGED:
Interface Serial3/0, changed state
to down
Router(config-if)#clock rate 64000
Router(config-if)#ip address
201.201.201.1 255.255.255.0
Router(config-if)#ip address
201.201.201.1 255.255.255.252
Router(config-if)#
%LINK-5-CHANGED:
Interface Serial3/0, changed
state to up

%LINEPROTO-5-UPDOWN:
Line protocol on Interface
Serial3/0, changed state to up

%LINK-5-CHANGED:
Interface Serial2/0, changed state
to up %LINEPROTO-5-
UPDOWN:
Line protocol on Interface
Serial2/0, changed state to up

Router(config-if)#exit
Router(config)#
Router(config)#ip route
192.168.40.0 255.255.255.0
192.168.30.2
Router(config)#ip route
10.0.0.0 255.255.255.252
192.168.30.2
Router(config)#ip route
150.150.150.0 255.255.128.0
201.201.201.2
%Inconsistent address and mask
Router(config)#ip route
150.150.150.0 255.255.128.0
201.201.201.2
%Inconsistent address and mask
Router(config)#
Router(config)#interface
Serial2/0
Router(config-if)#
Router(config-if)#exit Router(config)#interface Serial3/0
Router(config-if)#
Router(config-if)#exit
Router(config)#ip route
150.150.150.0 255.255.128.0
201.201.201.2
Router(config)#ip route
150.150.150.0 255.255.128.0
201.201.201.2
%Inconsistent address and mask
Router(config)#ip route
150.150.150.0 255.255.255.252
201.201.201.2
Router(config)#
Router#
%SYS-5-CONFIG_I: Configured from console by
Router>en
Router#configure terminal
Router(config)#ip route 189.1.0.0 255.255.128.0 185.1.0.2
Router(config)#ip route
190.1.0.0 255.255.128.0
185.1.0.2 Router(config)#ip
route 150.0.0.0 255.255.128.0
185.1.0.2 Router(config)#
Router-1:

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed
state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface


FastEthernet0/0, changed state to up ip address
192.168.40.1 255.255.255.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state
to up clock rate 64000 Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface
Serial2/0, changed state to up ip
address 192.168.30.2 255.255.255.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial3/0
Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial3/0, changed state to


down
Router(config-if)#clock rate 64000
Router(config-if)#ip address 200.200.200.1 255.255.255.0
Router(config-if)#ip address 200.200.200.1
255.255.255.192
Router(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to
up

%LINEPROTO-5-UPDOWN: Line protocol on Interface


Serial3/0, changed state to up

Router(config-if)#exit
Router(config)#ip route 192.168.10.0 255.255.255.0
192.168.30.1
Router(config)#ip route 10.0.0.0 255.255.255.252
200.200.200.2
Router(config)#ip route 150.150.150.0 255.255.128.0
192.168.30.1
%Inconsistent address and mask
Router(config)#
Router(config)#ip route 150.150.150.0 255.255.128.0
192.168.30.1
%Inconsistent address and mask
Router(config)#ip route 150.150.150.0 255.255.255.0
192.168.30.1
Router(config)#ip

Router>enable
Router#configure terminal
Router(config)#ip route 188.1.0.0 255.255.128.0 185.1.0.1
Router(config)#ip route 190.1.0.0 255.255.128.0 180.1.0.2
Router(config)#ip route 150.0.0.0 255.255.128.0 180.1.0.2 Router(config)#

Router-2:

Router>enable
Router#configure terminal
Enter configuration commands,
one per line. End with CNTL/Z.
Router(config)#interface
FastEthernet0/0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED:
Interface FastEthernet0/0, changed
state to up %LINEPROTO-5-
UPDOWN:
Line protocol on Interface
FastEthernet0/0, changed
state to up ip address
202.202.202.1
255.255.255.0
Router(config-if)#ip address
202.202.202.1 255.255.255.252
Router(config-if)#
Router(config-if)#exit
Router(config)#interface
Serial2/0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED:
Interface Serial2/0, changed
state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface
Serial2/0, changed state to up
ip address 200.200.200.2
255.255.255.0
Router(config-if)#ip address
200.200.200.2 255.255.255.192
Router(config-if)#
Router(config-if)#exit Router(config)#int f0/0
Router(config-if)#ip nat inside
Router(config-if)#exit
Router(config)#int se2/0
Router(config-if)#ip nat outside Router(config-if)#exit
Router(config)#ip nat inside source
static 202.202.202.1
10.0.0.1
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured
from console by
console

Router#
Router#configure terminal
Enter configuration commands,
one per line. End with CNTL/Z.
Router(config)#ip route
192.168.10.0 255.255.255.0
200.200.200.1
Router(config)#ip route
192.168.40.0 255.255.255.0
200.200.200.1
Router(config)#ip route
150.150.150.0 255.255.128.0
200.200.200.1
%Inconsistent address and mask
Router(config)#
Router(config)#ip route
150.150.150.0 255.255.255.192
200.200.200.1
Router(config)#ip nat inside source
static 202.202.202.2
10.0.0.1
Router(config)#exit
Router#
%SYS-5-CONFIG_I:
Configured from console by console

Router>enable
Router#configure terminal
Router(config)#ip route 188.1.0.0 255.255.128.0 180.1.0.1
Router(config)#ip route 189.1.0.0 255.255.128.0 180.1.0.1
Router(config)#ip route 150.0.0.0 255.255.128.0 175.1.0.2
Router(config)#

Router-3:
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 150.150.150.1 255.255.0.0
Router(config-if)#ip address 150.150.150.1 255.255.128.0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed


state to up
ip address 201.201.201.2 255.255.255.0
Router(config-if)#ip address 201.201.201.2 255.255.255.252
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,


changed state to up

Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#
Router(config-if)#exit
Router(config)#
Router(config)#ip route 192.168.10.0 255.255.255.0 201.201.201.1
Router(config)#ip route 192.168.40.0 255.255.255.0 201.201.201.1
Router(config)#ip route 10.0.0.0 255.255.255.252 201.201.201.1
Router(config)#

Router con0 is now available

Press RETURN to get started.


Router>enable
Router#configure terminal
Router(config)#ip route 188.1.0.0 255.255.128.0 175.1.0.1
Router(config)#ip route 189.1.0.0 255.255.128.0 175.1.0.1
Router(config)#ip route 190.1.0.0 255.255.128.0 175.1.0.1

NAT translation Router


Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#ip nat inside
Router(config-if)#ex
Router(config)#int s2/0
Router(config-if)#ip nat outside Router(config-if)#ex
Router(config)#ip nat inside source static 170.1.0.2 150.0.0.1
Router(config)#ex

You might also like