Cisco Packet Tracer Lab6

You might also like

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

()

:
- 1 ( .(Network Address Translation
- 2 (.)port addressing and PDU
---------------------------------------------------------------------

: :
62 :
Router1
Router2
Switch

Terminal

..
Pc62

Pc3

Pc2

Pc1

Router1 Company Router2 ISP


Terminal ( Console
).
192.168.6.126 :
192.168.6.126
:
.
.
.

192.168.6.64 :
S 2/0 Router1192.0.2.113 :
S 2/0 Router2 :
192.0.2.114
5:
198.118.32.65
:
.
.
.

198.118.32.70 :
/29 :255.255.255.248

.
/26 :255.255.255.192

Router-PT Company
ISP

62 .. 4 .
Switch-PT
Terminal

:
Switch cooper straight-through :
o Switch 0
o Switch 1
o Switch 2
o Switch 3

Switch -: 4
Switch .

Switch 6 Router-company 0/0

Serial DCE
:
Serial 2/0 Serial 2/0 .

Terminal console:
console RS 232.

:
( )Router-company :
oFastEthernet 0/0 :
ON Port status
192.168.6.126 :IP
255.255.255.192 :

o Serial 2/0 :
4

ON Port status
192.0.2.113 :IP

( )clock rate

clock rate 64000:
.

)Router-ISP( :
o Serial 2/0
ON Port status
192.0.2.114 :IP
o 64000: clock rate

:
GateWay o 192.168.6.126 :

o IP 192.168.6.125 :
255.255.255.192 :
5

o IP 192.168.6.124 :
255.255.255.192 :
o IP 192.168.6.123 :
255.255.255.192 :
o IP 192.168.6.122 :
255.255.255.192 :
.

:
Router-ISP
Host


.

:
: Terminal :
( :(Terminal Host
:Host .
:Terminal


Terminal Doc .
OK Terminal Desktop
o Company
o enable :
Company>enable
.
o : :
Company>exit

o enable :
Company>enable
Company#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Company(config)#

/ :NatPool

5 .

-:
198.18.32.65 :NatPool
198.118.32.70 :
/29 :255.255.255.248
:
Company(config)# ip nat pool mypool 198.18.32.65 198.18.32.70
Netmask 255.255.255.248

) )5 IPs
.

/ :mypool

Company(config)# access-list 1 permit 192.168.6.64 0.0.0.63

Access list list Access


list 192.168.6.64
( ) 63 < === .
64 63 <== 126 .

.mypool

/ ( ) Nat
overload
Nat:
Company(config)#ip nat inside source list 1 pool mypool overload
o ip nat list 1 pool mypool
overload 1
( mypool ).overload

/
:
.
:

Fa 0/0 === inside Nat


S 2/0 ===outside Nat
Company(config)#interface fa0/0
Company(config-if)#ip nat inside
Company(config-if)#exit
Company(config)#interface s2/0
Company(config-if)#ip nat outside

( ):
Company Endexit
Company(config-if)#exit
Company(config)#exit
Compony#copy running-config startup-config

:Nat
Nat ( )
.isp
:router company

:isp
failed isp

router company:isp

)192.0.2.114( isp (192.168.6.125( pc0 ping o

)192.0.2.114( isp (192.168.6.124( pc1 ping o

)192.0.2.114( isp (192.168.6.123( pc2 ping o

11

: simulation

OK Terminal Desktop terminal

Nat :
Company>show ip Nat translations

.
5:
Inside local
Outside
Outside
local
global

router

Inside
global

pro

internet
control massage
protocol

router
198.18.32.65
inside local .inside global
() ip
simulation (
) ( :)forward
11

pc0:isp

: ip
isp

isp
:
router company : isp
12

isp 198.18.32.65
65. 71

13

( Port addressing and complex PDU :


):
)icmp( sample pdu

:
:
:ip
mac address :data link

complex pdu :
( , , )
:
: , HTTP
, SMTP FileTP
.

TCP edit filter simulation TCP
.
:
Router .1 generic
switch .2 generic
3 .3
switch
router switch copper straight throw
router server copper cross over
:

14

:
1.1.1.1 port status:on

- :2.2.2.2

config Gateway router :

config . fastEthernet 1.1.1.2 : 1.1.1.3 : :1.1.1.4 :

15

Gateway config :Global

- :2.2.2.1

simulation edit filter TCP,HTTP


:

16

,
:

.1 HTTP port address


.2 destination IP address destination

Source port .3 1132
5511
.4 ( on shot time ) 111

.5 creat pdu :

17

: port address
HTTP 21 FTP 81 :

18

capture/forward
- :

Source port : 5500 ,destination port : 80

19

:
packet tracer OSI .
( , ,
).
- .

:


:

21

You might also like