You are on page 1of 21

- 1 ..

)CLI ( Command Line Interface

Continue with configuration dialog? [yes/no [:

( no ) :
!Press RETURN to get started

.. Enter
..
>Router

..
:
Router> enable
Router# configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# enable secret 12345

.. ) (
Router(config)# hostname UN


enable ( ) ..

: :
UN(config)# exit
UN# exit
Press RETURN to get started.
>UN
enable
UN> enable
..

12345 : (
Enter ).

- 2 Console ..
Terminal Desktop

.. ok

..
4

.. .. Enter no

Router >
..
Router> enable
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# line console 0
Router(config-line)# password 12345
Router(config-line)# login

Exit Router> End


.. Router(config)>
Router(config-line)# exit
Router(config)# hostname GF

- :

> Router : Exit


GF(config)# exit
%SYS-5-CONFIG_I: Configured from console by console
GF# exit
GF con0 is now available
Press RETURN to get started.
User Access Verification
Password:

Password :
..

( : ) GF

GF ..

: GF
( .. ) S2/0 & F0/0

-1 :S2/0 172.17.0.1/16
no shutdown

( clock rate ) 64000

:
GF> enable
GF# configure
?]Configuring from terminal, memory, or network [terminal
Enter configuration commands, one per line. End with CNTL/Z.
7

GF(config)# interface S2/0


GF(config-if)# ip address 172.17.0.1 255.255.0.0
GF(config-if)# clock rate 64000
GF(config-if)# no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
GF(config-if)# exit
GF(config)#
..

172.16.0.1 :F0/0 -2
.. no shutdown

GF(config)# interface f0/0


GF(config-if)# ip address 172.16.0.1 255.255.0.0
GF(config-if)# no shutdown

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


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
changed state to up
GF(config-if)# exit
GF(config)#

F0/0 ..

( : ) GF RIP

:
GF(config)# router rip
( Direct ..
( 172.16.0.0 ) 172.17.0.0
..
9

GF(config-router)# network 172.16.0.0


GF(config-router)# network 172.17.0.0
GF(config-router)# exit
RIP

..
RIP
..

( : ) UN

: UN
( .. ) S2/0 & F0/0
-1 :S2/0
UN(config)# interface s2/0
UN(config-if)# ip address 172.17.0.2 255.255.0.0
11

[ ] 172.17.0.2
UN(config-if)# clock rate 64000
UN(config-if)# no shutdown
UN(config-if)# exit
UN(config)#

-2 :F0/0
UN(config)# interface f0/0
UN(config-if)# ip address 172.18.0.1 255.255.0.0
UN(config-if)# no shutdown
...
...

11

( : ) UN RIP

:
UN(config)# router rip
UN(Config-router)#
..
] [ 172.17.0.0 ] 172.18.0.0 ] FastEthernet

UN(Config-router)# network 172.17.0.0


UN(Config-router)# network 172.18.0.0

..

12

..

:
.. Gateway
1 : UN
Config Fast Ethernet 0/0 ip address
Gateway ...

13

Config Gateway
...

Fast Ethernet 1 2
...

14

ip address
Fast Ethernet 1 3 4
..

15

2 : GF
.

:
Show Run
GF# Show run

terminal GF# Exit Show run


...
Enter Router rip

16

( Routing Table ):

..
GF# Show Ip route

...
...
17

.. Successful

successful ...

...
- 1 PC0 ( ) ping
... 172.18.0.2

18

- 2 172.16.0.3 ... 172.18.0.3

- 3 ( )ping 172.18.0.2
...172.16.0.4

19

..
ping
... Show ip route
..
Show ip route

direct
1727167171 ... s2/0
( )
[ ]

:
Ipconfig /all

21


simulation
.

[ Packet Tracer ] ..

/ .
/

21

You might also like