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

Ccna

Commands
In Arabic

By eng : Mohamed saber

( )
[85 :

!]

) '& (

By: Mohamed saber

Page 2

-&+,. ( &+, /0 1. - 23 1. . 6 ( 5
; -&:( =< ?> / ;? >
8 0 +9
012.
=< / &:6 C / C( / E; 6 C -&D &:6
&+, -&F9 ../
....& 5




*) ,- +
$% '( "#
!
*' . ,0

(1' $%

* '2 1*' 1

'' $

" 2 ......................+!!!!!!

" 2 " + 9)!128


< ') ' 1:; % ($% %....!!!!
Page 3

7
#
By: Mohamed saber

)% @ A ?% - < # 8 ?)% '( 8


1!E D% E 7E D )2" 1
7 F%!!!!! @A
8

?% H I% < # ............................
- ) (TAP - ( + - - - - <%8
H @2"2 1 91N 8
' # %
* E 9OPE 7; " 1 )?
" 91N
H E DN )(2 F% @2"2
) ?E 7 " Q 2 R* 8 ! E
:2 '* @IN S ( H '2E 7 "
I2.8 R
"E " 7 F%
" 2 +
U8 1
V2
. * 1 I2.8 . HI
8 # + - H
) -( * < V ($2Y8
Q 2 8 1 * 7 F% 7
* 7 1 "E.
$ (Y - +
@2"E 91O2
Page 4

8).

D:2

(
By: Mohamed saber

1 % R* 2" ) A < .
(^_^) Q ( <- < V2) E
..... - Q ( Q\ :1
R*
(^_^)91N <

8
2% 9OPE ' 2
8' ? 2 %

!!!...... R + 2" @ A
_ H_ _

?)E R* R % D
...... ' -

ROUTER & SWITCH


<( R2 8
.......
BASICS
.................................USER MODE
........................PRIVILEGE MODE
..............CONFIGURATION MODE
LABS< 1`

By: Mohamed saber

Page 5

............

S ROUTER

.................................USER MODE
........................PRIVILEGE MODE
..............CONFIGURATION MODE
LABS Q1`
SWITCH

.................................USER MODE
........................PRIVILEGE MODE
..............CONFIGURATION MODE
LABS Q1`

By: Mohamed saber

Page 6

)% ?%
*' %
8 2R<
E 72

Page 7

By: Mohamed saber

Router & Switch Basics: -

*******USER MODE

1- Router & switch > enable


(configuration mode)

J; K2.

L 9 MN J9 -

. : + 5 /O D - NC

2- Router & switch >ping (ip)


R. 5 R0 5 >+9 J9 & 6 , M - V
:+ tcp L= /O D < = L= C <5 3 1
.....E0 5 L0 5 - Y5 ping pong

3- Router & switch>connect (ip)


By: Mohamed saber

Page 8

.(telnet) /;( connect) +; J9 -


4- Router & switch >logout
/ +9 + 5
M=

; / = +

Y5 L. L= ;

N J9 -

+ (disable-exit- ctrl+z )
. L\5

5- Router & switch >show


\ .

KD - O L=( en) & 5 0

L\5 -
: :0 0]^; L

Show clock
/9 1 5
Show ip interface brief
L= /+:+ F 9 J9 : -
FN M 1
=> &L a = L L5 C
Show interface
/ 6
By: Mohamed saber

.& E+:2 5 D

5 -
Page 9

Show hosts
-c:OC = 1 9 J9 -

Show tcp brief


: D : 5 C := J9 -
Show privilege

L= L0 ;

= d . 9 J9 -

Show users
/ D 9 J9 -
...................... - 0

L L\5 e^ .

A - Router & switch > show clock


B - Router & switch > show ip interface brief
C - Router & switch > show interface
D - Router & switch > show hosts
E - Router & switch > show tcp brief
F - Router & switch > show privilege
By: Mohamed saber

Page 10

G - Router & switch > show users

6- Router & switch > traceroute (dest.)


L0 ; ' c; 9 L :K 1 9 J9 Ff -
. L 9 &

By: Mohamed saber

Page 11

L= /:5 J + C g 0 \ D h; :0 0 ' . &5


L 9 M^.............. i 5 g M 1 L=
(privilege mode) + L -& 5 L +

By: Mohamed saber

Page 12

********PRIVILEGE MODE

1- Router & switch # configure terminal

L - /.C - + L= C 09

configuration mode L 9 L0; 5


L

C i 5 >+9 - privilege L= &.


user mode L= :

M + 9

5 . E 5 &N) = L

1D - C
( C

2- Router & switch # write


- hO D l +9 C L.k L\F; 1.

hF ]

(save)>
By: Mohamed saber

Page 13

C L\F; h ^ /5 L= m20 5 .k + F L -
F E 36 e ^ & 5 - C 100
3- Router & switch # copy
running config

L5 > +9 J9 Ff -
h D C h D < 2

4- Router & switch #reload


(^-^)-

C D :K 1;> +9 J9 -

5- Router & switch #dir OR delete OR erase


L= , J9 - +
; 5 &D > -& L\5
flash memory nvram L= L files
6- Router & switch #setup
/n , > + ; L0 ; / 9 l. E 1; J9 -
Ej L\F; C - C?> 2 5 &,

L. F]; F]; 05 0 \ D h; :0 0 ' . 5 &5


......................
N L 9 -> 1 1+ e ^.
By: Mohamed saber

Page 14

********Configuration mood

1- Router & switch (config) #access-list


9 5 J; K2. \ . ,. 0,= &O F Ff -
q f c+ c D & g; 1 L 9
O D L= J; K2. 9 L\5 + j / \. g20 M
standard & extended
standard... C\ . - - q f

A - Router & switch (config) #access-list


[access no. (1-99)]
[deny/permit] [host]
L L. 0 q f
extended..

b- Router & switch (config) #access-list


[Access no. (100-199)]
[deny/permit]
[specific protocol] [host] [wildcard] [dest.]
[Wildcard]
By: Mohamed saber

Page 15

. ( 6 > : Y5 /; 6 >; f M

2- Router & switch (config) #banner


L9 5 L= / D = /6 6 M 0 >+9 J9 -
E c l9 5 & ; 0; l9 5 welcome

3- Router & switch (config) #hostname


f 1F \ F 5 J; K2. L= + 5 0 -
. L= :+ s,; M 1 3 5 J9
0+:; L Y5 : = M^0 M &KD \ & ^ 5
M = O
J9 - C sD 1
L+ tD / 5 q J9

4- Router & switch (config) #interface


L c; 9 . L > +9 F L 9 MN J9 -
- F L= ; F
By: Mohamed saber

Page 16

5- Router & switch (config) #ip

+ 0D L

: M Y5

- host L= +

KD >+9 J9 -

0 C L= L\F 5 - DNS < u \ .

> L= L\F := / \ \,

^&

0 C L= 5

. &D M 1

6- Router & switch (config) #do

L= L0 ; l = L + L= v2. J9 L\5 -
> F - q & gO &5 privilege mood
c; 9 . /O D

7- Router & switch (config) #end

= M +

By: Mohamed saber

L0O ^ 5 L K, l \5 5 -
... - > /

Page 17

8- Router & switch (config) #no

. :FL

L3 J9 -

L= 9 Y 3 > 1 1+ L= ; D /FD 0] N . 0:
& 5 LK M \ L M2^ += M \
KD
L\5 &F. J9 h u , ( 6 M &
, . Y5 0 C L= < M
+ 0;&; 5 >3 J.
h u C L 9 M^.......... 1+ ( F O & L g+O
labs

By: Mohamed saber

Page 18

********Labs & / u

Scenario 0:-

.& 0:+J5 ; L: h J qD ' L \ 5 s L=


>O + = h;&0 L= L. s0f L= &D& ; 09
/5 J :+ J9 /O D M= F >3 J 5 it 5
M 15 :s5 c; 9 + :
h+ > +9 c; 9 +
E F :K L= /;> +9 E F L & 0:+ 9 c; 9 +
; >D !!!!!!!! F w /;
Sol:-

By: Mohamed saber

Page 19

s0f L= C L= L\5 L 36 &5 a =

1- Router > en

R 2; F MN J9*

2- Router #sh run


L= /; qF L F L 9 J9*

3- Router #conf t
> L 9 q g20 M

; f 6 ; M R2. MN J9
+ s6 . C q . = & &D

4- Router (config) #hostname Tanta


5- Tanta (config) #line console 0
6- Tanta (config-line) #login
7- Tanta (config-line) #password 123
8-Tanta (config-line) #exit
9- Tanta (config) #line vty 0 12
10-Tanta (config-line) #login
11- Tanta (config-line) #password 1234
By: Mohamed saber

Page 20

12- Tanta (config-line) #exit


13- Tanta (config) #enable password line
14- Tanta (config) #^Z
15- Tanta # conf t
16- Tanta (config) #enables secret 12345
F C 3 5 ; 0 0] N .
<Y2. >+ 0 /;&0 L= Ff \&; K2.

; &5
/=
F; \

Scenario 1:>O& ) 0:+J5 ; M E L\5 / J qD '


0 : O M 0 \ F & N 0 = : +9 ;&\
(l 5!!!)

Sol

By: Mohamed saber

Page 21

>2\. \ . /; / J g : N J. L6 \ .
alt+break t3?. L. /, 2.
Rommon L 9 E N&; F

E N& = a 2 5

!!!.....L\5 : = q .

Rommon1 >?
Rommon2>confreg ox 2142
Rommon3>reset
9 L 9 L0 N&; F bypass L + & 5
qD ' ; 6 0;c; 9 0D L F 3. \ .
0 09 l f E.C - = ; / J

By: Mohamed saber

Page 22

Routing:-

*******USER MODE

1- Router>connect
l

5 connection >+9 J9

2- Router> disconnect

/; 6

9 /1 L ] C> 2 J9

3-Router>terminal history size


L 9 5 1 : KD &D J9
By: Mohamed saber

Page 23

4-Router>show
KD / 5 9 & sN

0=

Ff -

a- Router>show clock
/9 1 6 J9

b- Router>show frame-relay
6 /O , M L

Ff

c- Router>show history
d- Router>show interfaces
e- Router>show privilege
F-Router>show sessions
G-Router>show ip interface brief
:=

By: Mohamed saber

+; -

Page 24

user mood g / ; 1 0 \ D 0] N . 0& ,


q gO F f M &

2+ ; c; 9 0.C cK0. L\5 ,0

config mood 5 :0 0,=.........................

.................................-:&O h+: /V ,

:= L=
C 9 0

By: Mohamed saber

v L 9 L + 9C& 9 O
C & & 5 c. 0. C C
. t\= <g +K -

Page 25

********PRIVILEGE MOOD

1-Router#clear
: \. L\5 /; - D
:,1+ C

KD >+ 5 -

:2 5

A- Router #clear aaa


5 - /D J0= > &F :0 \ -
Authentication &authorization
b Router #clear access-list
c Router #clear arp-cache
d Router #clear frame-relay
e- Router #clear ip route *
f- Router # clear ip Nat
g- Router # clear cdp table
/; 6 + +:20 0.C -

z \; &,

1-Router#show
-
By: Mohamed saber

C -;

C = J Ff
Page 26

Y5 &;&K \ . L\5 0,= . .


a- Router#show AAA
b- Router#show access-lists
c- Router#show Arp
d- Router#show cdp
L= L. O

9 J9 hF s L. N -

e- Router#show frame-relay
f- Router#show dhcp lease
g- Router#show startup-config
/ = c . N ; :
h- Router#show hosts
I- Router#show protocols

L\5 :+ L 9 M^0 \ 6 0 {+ ( L2 0& ,


...............L
9\ c 9 ; K - +
By: Mohamed saber

Page 27

********Configuration mood

6 . L R0 - , L= L\5 /O D
static route& F. q f <' /. J9
1- Router (config) # ip route [networkaddress]
[mask] [next-hop-ip-address]
or [interface]
!!!!L\5 - E /; L0 ;

c; 9 l. L LF;C q

L0 ;

9 5 E + -L0 ; q; 3 L5 Ch, 2

0 ;^ c; 9 l. L L5 C & & 5
NC L= L\F 5 L u+ L= :2 M +:2
M
.............................&O h+: /V ,
(clock rate) &,

By: Mohamed saber

>+

M2
Page 28

; +1 5 /O D L : \. ;c; 9 &- D h D 5 L=
default route ; N
E !!!!! + 5
2- Router (config) # ip route 0.0.0.0
0.0.0.0 [interface]
E + L / D ^ = c; 9 l. 0
.- F L 9 /O D :9 5

By: Mohamed saber

Page 29

/O D L. LK . & &5
RIPV1 .

2- Router (config) # router rip


Router (config-router) #network [network]

Router #debug ip rip


; &. M 0F1 >], 5 L 5 ; \ L F; J9 -

By: Mohamed saber

Page 30

.... L /O D l & &5


EIGRP............

3- Router (config) #router eigrp [Autonomous


(100)]
- Router (config-router) # network
[network id]

-Router (config-router) #no auto-summary

*Router (config-router) # passive-interface


s0/1
- F

updates >F\ 1; l F; . d ; J9 -

_______________________________

By: Mohamed saber

Page 31

OSPF. L L\5 hO D g5

4-Router (config) #router ospf [processid(100)]

*Router (config-router) #network address


wild-mask area area-id (0)
ospf L= h :

C i 5

Router #show ip protocols


Router #show ip ospf interface
Router #show ip ospf neighbor
Router# show ip ospf database
Router# debug ip ospf packet
Router# debug ip ospf hello
Router# debug ip ospf adj
By: Mohamed saber

Page 32

RIPV2...........L hO D Y N

5- Router (config) # router rip


*Router (config) #version 2
* Router (config-router) #network [Network]

6- Router (config) # no ip domainlookup


;& M ?2 /O D L= t j

By: Mohamed saber

J9 &O > +O -
- F l. L L 9

Page 33

5 ) 0 cK 0] N . &5
Routing

&N 0 J9 labs h u C
L=
( 0 + 9 +5 0 2.

By: Mohamed saber

:= L\F; M +:2 L\5


/u
.

0+ 9 : )

Page 34

*********labs h u

Scenario 0:L\F; c; 9 .& 0:+J5 ; ( h J qD ' E


ahln ya ) / +K5 5 qD ; M^ + +
192.168.1.1 - L5 C L s, +( 3am el modyr
d . L \; / L F; + 5 F L 9
>3 6 .... - < d 1 Ff 5 L:. L 9
.................................

Sol:-

By: Mohamed saber

Page 35

Router>en

R = F L= MN J9

Router#conf t

J; K2.

L= MN J9

Router (config) #int f0/0


- F /, 2 & 09 d J9
Router (config-if) #ip add 192.168.1.1
225.255.255.0
:9 5 L5 C - / \5 F - O l N&
Router (config-if) #no shutdown
F a = J9
Router (config-if) #ex
F

N J9

Router (config) #banner motd $ ahln ya 3am


el modyr$
qD /

tD J9

Router (config) #inter s0/0


- F MN J9
By: Mohamed saber

<
Page 36

Router (config-if) #description this


is a serial port
- F d' q J9
Router (config-if) #end
5 0 N J9
Router#copy run start
/ 9 0+ L ( wr) ; -( save) d

>+9 J9
=

Scenario 1:; M L \ 5 h J qD ' L. q s LK .


10 ^ 1 L 9 -& telnet 0 + &0:+J5
!!!!!!......... M2 1 9 L\5 F

Sol

By: Mohamed saber

Page 37

R1 (config) # en secret 123


R1 (config) #line vty 0 4
R1 (config-line) #login
R1 (config-line) #password 12345
R1 (config-line) #ex
R1 (config) #interface s 1/1
R1 (config-if) #ip address 10.0.0.1 255.0.0.0
R1 (config-if) #clock rate 64000
L.

:;& L /9 1 & D J9 -

R1 (config-if) # no shutdown

For .R2
R2 (config) #interface s 1/1
By: Mohamed saber

Page 38

R2 (config-if) #ip address 10.0.0.2 255.0.0.0


R2 (config-if) # no shutdown

For telnet
R2#telnet 10.0.0.1
9 >3 J :s, =

F 9 E 1 Ff

Scenario 2:-

+ ^& 1 5 t 15 g; &C q f
;c; 9 E h J qD ' 5( loopback interface)
j .&0
1, &0:+J5 ; Y = . 5 > + .
F> ; D !!!!!.... h ;> + . Y5 &D Y = .

Sol:-

By: Mohamed saber

Page 39

R1 (config) #interface loopback 0


R1 (config if) #ip address

a.b.c.d Mask

R1 (config-if) #end

Scenario 3:L\5 R0 L +9 h &0 ; M E E O h J qD '


&D L + 6 &09 Y5 - O L 5
(static route) &D( default route )

By: Mohamed saber

Page 40

Sol:; L 9 >+ 0 0,= -> O l\0^ . 0 5 L0 5


E
&D l 2;& D< N

0. l : F l9 5 0 9 5 M 0+ > + 0 & 5
Y = . 5 > + . 0. , 2 L 9 : 5 t,.
- C
9 \ . (clock rate) +

In the R1 default route .

R1 (config) #ip route 0.0.0.0 0.0.0.0


s1/1

By: Mohamed saber

Page 41

In R2 static
route.suppose s1/1 ip
10.0.0.1

R2 (config) # ip route 10.0.0.2 255.0.0.0


10.0.0.1

Scenario 3:q ?> 2 . E - , FK h J qD ' Ff


(RIP) 5 (dynamic route) +
9 ; - ;& > 5
M ' F >D >D !!..... /O D C

Sol:-

By: Mohamed saber

Page 42

For ..R1

R1 (config) # router rip


R1 (config) #network 192.168.1.0
R1 (config) #network 10.0.0.0

ForR2

R2 (config) # router rip


R2 (config) #network 172.16.0.0
R2 (config) #network 10.0.0.0

By: Mohamed saber

Page 43

Scenario 4:-

e5 E E 5 >] C & l 1 2 h J qD ' q f


L0 ; &D L 9 R0 F L 2\ c; 9 .& 0:+J5 ; L\5
/5
] \ F; Y5 / 9 R0F; & ; ,
h &0> ; D !!...... 9

Sol:-

R1 (config) # access-list 100 deny


icmp any any
R0F; &, ) L 9 R0 F > 2 J9 -
( 9
R1 (config) # access-list 100 permit
ip any any
By: Mohamed saber

Page 44

hO D k5 5 >'

:. 0 a+ J9 -
ping j h .

R1 (config) # int s1/1


R1 (config-if) # access group 100 in
: = >+ 5 . L F & D J9 -
.

By: Mohamed saber

Page 45

Scenario 5:E9 5 l; K - < FK h J qD '


(Ospf)........... L\F; R0 c; 9 . M
!!!!!!!!!!!!
> ; D

Sol:-

For..R1

R1 (config) #no router rip


By: Mohamed saber

Page 46

+9 L rip a1 J9 -

R1 (config) # router ospf 1


Ff R0 . -
R1 (config-router) # network
192.168.1.0 0.0.0.255 area 0
wild + - subnet mask /F6 L F E 5 &N
F; \ 1 9 F 9 mask

R1 (config-router) # network
10.0.0.0 0.255.255.255 area 0

For..R2

R2 (config) # router ospf 1

R2 (config-router) # network 172.16.0.0


0.0.255.255 area 0

By: Mohamed saber

Page 47

R2 (config-router) # network 10.0.0.0


0.255.255.255 area 0

Scenario 6:L0 20 M E

> J &O h J qD '


(Ospf)
(eigrp) c; 9 .
!!!!!!!

n n C L C L

Sol:-

By: Mohamed saber

Page 48

For..R1

R1 (config) # router eigrp 100


AS No. - +1 5 -

eigrp 5 J9 - Ff

R1 (config-router) #network 192.168.1.0

R1 (config-router) #network 10.0.0.0

R1 (config-router) #no auto-summary

>+9 .

+ auto summary > 2 J9 -


;&5

For..R2

R2 (config) # router eigrp 100

By: Mohamed saber

Page 49

R2 (config) #network 172.16.0.0


R2 (config-router) #network 10.0.0.0
R2 (config-router) #no auto-summary

Scenario 7:: = >+9 c; 9 l &09 .& 0:+J5 ; E


(ppp authentication )
(pap authentication ) &D
(chap authentication) &D
F> ; D !!!!................

Sol:By: Mohamed saber

Page 50

For ..r1 (ppp)

R (config) # username R2 password 123


R1 (cong) #inter s1/1
R1 (cong-if) # encapsulation ppp
R2 (cong-if) # ppp authentication pap

For ..r2 (pap & Chap)

R2 (config) # username R1 password 123


R2 (config) # interface s1/1
R2 (config-if) # encapsulation ppp
R2 (config-if) # ppp authentication pap

R2 (config) # username R3 password 123


By: Mohamed saber

Page 51

R2 (config) # interface s1/2


R2 (config-if) # encapsulation ppp
R2 (config-if) # ppp authentication Chap

For ..r3 (chap)

R3 (config) # username R2 password 123

R3 (config) # interface s1/2


R3 (config-if) # encapsulation ppp
R3 (config-if) # ppp authentication chap

For .troubleshoot

Router # sh inter s1/1

By: Mohamed saber

Page 52

Scenario 8:>+ c; 9 h J / &0 ; L\5 NC q f N


K. ; >3 6!!! .... + 5 2 g (frame relay)

Sol:-

For .r2 (frame-relay sw)


: M /.

- cK w= c 0 M

frame relay /.k> 3 J; w ^; , 5 0


switch
R2 (config) # frame-relay switching
R2 (config) #int s1/1
By: Mohamed saber

Page 53

R2 (config-if) #encapsulation frame-relay


R2 (config-if) #frame-relay intf-type dce
R2 (config-if) #frame-relay route 102 int s1/2
201
R2 (config) #int s1/2
R2 (config-if) #encapsulation frame-relay
R2 (config-if) #frame-relay intf-type dce
R2 (config-if) #frame-relay route 201 int s1/1
102

For .r1
R1 (config) # inter s1/1
R1 (config-if) # encapsulation frame-relay
R1 (config-if) # frame-relay interface dlci 102
By: Mohamed saber

Page 54

For .r3

R3 (config) # inter s1/1


R3 (config-if) # encapsulation frame-relay
R3 (config-if) # frame-relay interface dlci 201

. M

R0 0] N ; E ?= 6& +D -;
&O / ; f .& 0: \ D /F6 /\ , 9

By: Mohamed saber

Page 55

* Switching:*******USER MODE

+ >

+; ; -&;&O /O D M 2 d < 0

(^-^)
O L L= M^. &5 &5 0 \ D l] N &

********PRIVILEGE MODE

C J M Y5

C \ Y5 / 9 &/9 15 gO .
&;&O L=

Switch # show version


; l= 1 ; : 9

E ;

Switch #show flash:


+ <2 9

E ; J9

Switch #show mac-address-table


By: Mohamed saber

Page 56

Switch #show controllers Ethernet-controller


Ethernet controller 9

E ; J9

Switch #show running-config


Switch #show startup-config
Switch #show post
J

L= -

Switch #show vlan


Switch #show interfaces
Switch #show interface vlan1
Switch #delete flash:vlan.dat
(config) a1+ 5 .C - 9
+ <2

c; 9 l0

vlan l9 5

Delete filename [vlan.dat]?


Delete flash:vlan.dat? [Confirm]
< = N L\5
5 &N 0 \ D l] N & 5
+: & 6
D &6........ > \ C L\F

By: Mohamed saber

Page 57

*********Configuration mode

Switch (config) #interface vlan1


(default vlan) - +1 5 -

Switch (config-if) # ip address 172.16.10.2


255.255.255.0
- M 1 Y1 +;> +9 J9 -

Switch (config-if) #description Finance


VLAN
F d' tD J9 - Ff

Switch (config-if) #duplex full


auto]

or [half-

Y 5 = 09 q]j - F L N J9 -

By: Mohamed saber

Page 58

Switch (config-if) #speed 10

or [100-auto]

09 q]j 5 F l9 5 /9 1 & D J9 -
Switch # show mac-address-table
/ , 5 + ; J9
Switch # clear mac address-table
:,1+; J9 -
Switch # clear mac address-table dynamic
Y5 E+0; &a1+; J9 -

Switch (config-if) #switchport port-security


L ;

5 >+9 J9 -

Switch (config-if) #switchport port-security


Maximum 4
F L 9 t, ;

+ Y; +

&9 L]

\5 L.

Switch (config-if) #switchport port-security


Mac-address 1234.5678.90ab
By: Mohamed saber

Page 59

F 5 + t5 J9 -
Switch (config-if) #switchport port-security
Violation shutdown

or [restrict-protect]

; 2 ; F g >

5 q; j l \ J9 -
/ +D ; - M

Switch # show port-security


: +: L F L 9
+ > L ; J9 -
Y5 /
L ; &D 5 q + 5 h; +D

Switch (config) #vlan 3


:+ C L= >+9 l,+

M 1 \ 5 L. &

Switch (config-vlan) #name sales


-c; 9 . L q - :+ +
Switch (config) #interface range fastethernet
0/1 9
&,

F : = L sD

Switch (config-if-range) #switchport mode


access
By: Mohamed saber

Page 60

Y 1 :9 . F
Switch (config-if-range) #switchport access
vlan 3
:+ L C L= L= L :sD
Switch (config) # interface fastethernet 0/1
- F & 09 d J9 -
Switch (config-if) # switchport mode trunk
E.

- F . &D J9 Ff

Switch (config-if) # switchport trunk


Encapsulation dot1q
F 5 Encapsulation . &D J9

Switch (config) #spanning-tree vlan 5


vlan L 9 stp > 36 J9 -
Switch (config) #no spanning-tree vlan 5
CD

By: Mohamed saber

9 /1 L L3 J9 -

Page 61

Y5 &D ( L0+ h; :0 L 9 &O 05 . &5


F K. L F10 5 L\F - 5 & 2 1; 0
L\F; ;& 5 / 9 O 2 ;

lab N /1 0 Y5
............. -&< N

lab ******** / u

L= 0 09 g s & 5 h J qD ] q f N
vlan10&20&30 >+ ; c; 9 J 1
l. L\5 >D !!....................

Sol:-

By: Mohamed saber

Page 62

Sw>en
Sw #conf t
Sw (config) # interface range f0/1 -2
Sw (config-if) #swichport mode access
Sw (config-if) #swichport access vlan 10

Sw (config) # interface range f0/3 -4


Sw (config-if) #swichport mode access
By: Mohamed saber

Page 63

Sw (config-if) #swichport access vlan 20

Sw (config) # interface range f0/5 -6


Sw (config-if) #swichport mode access
Sw (config-if) #swichport access vlan 30

By: Mohamed saber

Page 64

&, . 0 0] N ( )
; 0+ 9 +5 0 20

9( v g ? C /> L

F f 0 & 9 L >

= Lv

=\&

l, 6 &0:+ &+, ? cO -( N 09
cK FK9 ; ; l J9 L >+ . q
= L g + L J9 :.c; 9 . & 2 1. 0 O \
c0 >F Y5.
C &\. >]D L 9 F c+ -
L.C / . :O , l0& =&5 L; h z; s
' l++ 5
L + N . ;\ - M +:2 = .
.
&F;&\ / & NC d . .

Page 65

By: Mohamed saber

Eng / Mohamed saber


E-mail:
Mohamedfrge20@hotmail.com
Mob: 01148171123

By: Mohamed saber

Page 66

You might also like