Documente Academic
Documente Profesional
Documente Cultură
2(25)FX, RELEAS
E SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
Image text-base: 0x80008098, data-base: 0x814129C4
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memor
y.
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
63488K bytes of flash-simulated
Base ethernet MAC Address
Motherboard assembly number
Power supply part number
Motherboard serial number
Power supply serial number
Model revision number
Motherboard revision number
Model number
System serial number
Top Assembly Part Number
Top Assembly Revision Number
Version ID
CLEI Code Number
Hardware Board Revision Number
Switch
-----*
1
Ports Model
----- ----26
WS-C2960-24TT
SW Version
---------12.2
SW Image
---------C2960-LANBASE-M
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ho
Router(config)#hostname r1
r1(config)#no ip d
r1(config)#no ip domain-lookup
r1(config)#int g0/1
r1(config-if)#ip add 172.16.99.1 255.255.255.0
r1(config-if)#no shut
r1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed stat
e to up
r1(config-if)#exit
r1(config)#en
r1(config)#enable password class
r1(config)#line console 0
r1(config-line)#pa
r1(config-line)#pass
r1(config-line)#password cisco
r1(config-line)#login
r1(config-line)#exit
r1(config)#line vty 0 4
r1(config-line)#pass
r1(config-line)#password cisco
r1(config-line)#login
r1(config-line)#exit
r1(config)#ser
r1(config)#service pass
r1(config)#service password-encryption
r1(config)#do wr
Building configuration...
[OK]
r1(config)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state t
o up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state t
o up
S1>ena
S1>enable
S1#conf t
S1#conf terminal
S1(config)#in
S1(config)#interface f
S1(config)#interface fastEthernet 0/2
S1(config-if)#swi
S1(config-if)#switchport po
S1(config-if)#switchport po
S1(config-if)#switchport m
S1(config-if)#switchport mode ac
S1(config-if)#switchport mode access
S1(config-if)#swi
S1(config-if)#switchport po
S1(config-if)#switchport port-security
S1(config-if)#swi
S1(config-if)#switchport po
S1(config-if)#switchport port-security m
S1(config-if)#switchport port-security ma
S1(config-if)#switchport port-security max
S1(config-if)#switchport port-security maximum 1
S1(config-if)#swi
S1(config-if)#switchport po
S1(config-if)#switchport port-security ma
S1(config-if)#switchport port-security macS1(config-if)#switchport port-security mac-address s
S1(config-if)#switchport port-security mac-address sticky 0001.647C.697E
Sticky mac is not enabled.
S1(config-if)#switchport port-security mac-address sticky
S1(config-if)#switchport port-security mac-address sticky 0001.647C.697E
S1(config-if)#swi
S1(config-if)#switchport p
S1(config-if)#switchport po
S1(config-if)#switchport port-security vi
S1(config-if)#switchport port-security violation res
S1(config-if)#switchport port-security violation restrict
S1(config-if)#exit
S1(config)#in
S1(config)#interface f
S1(config)#interface fastEthernet 0/3-24
^
% Invalid input detected at '^' marker.
S1(config)#interface ran fastEthernet 0/3-24
S1(config)#interface range fastEthernet 0/3-24
S1(config-if-range)#sh
S1(config-if-range)#shutdown
S1(config-if-range)#
S1# conf t
S1# conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#in
S1(config)#interface g
S1(config)#interface r
S1(config)#interface range g
S1(config)#interface range gigabitEthernet 0/1-2
S1(config-if-range)#sh
S1(config-if-range)#shutdown
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to administratively
down
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to administratively
down
S1(config-if-range)#
TP 2 2.2.4.10
C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEASE SOFTWARE (fc4)
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memor
y.
2960-24TT starting...
Base ethernet MAC Address: 0010.1116.710A
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 1 files, 0 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 64016384
flashfs[0]: Bytes used: 4414921
flashfs[0]: Bytes available: 59601463
flashfs[0]: flashfs fsck took 1 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading "flash:/c2960-lanbase-mz.122-25.FX.bin"...
######################### [OK]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memor
y.
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
63488K bytes of flash-simulated
Base ethernet MAC Address
Motherboard assembly number
Power supply part number
Motherboard serial number
Power supply serial number
Model revision number
Motherboard revision number
Model number
System serial number
Top Assembly Part Number
Top Assembly Revision Number
Version ID
CLEI Code Number
Hardware Board Revision Number
Switch
-----*
1
Ports Model
----- ----26
WS-C2960-24TT
SW Image
---------C2960-LANBASE-M
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000
63488K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address
: 0010.1116.710A
Motherboard assembly number
: 73-9832-06
Power supply part number
: 341-0097-02
Motherboard serial number
: FOC103248MJ
Power supply serial number
: DCA102133JA
Model revision number
: B0
Motherboard revision number
: C0
Model number
: WS-C2960-24TT
System serial number
: FOC1033Z1EY
Top Assembly Part Number
: 800-26671-02
Top Assembly Revision Number
: B0
Version ID
: V02
CLEI Code Number
: COM3K00BRA
Hardware Board Revision Number : 0x01
Switch
-----*
1
Ports Model
----- ----26
WS-C2960-24TT
SW Version
---------12.2
SW Image
---------C2960-LANBASE-M
s1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
s1(config)#ip ssh version 2
Please create RSA keys (of at least 768 bits size) to enable SSH v2.
s1(config)#ip dom
s1(config)#ip domain
s1(config)#ip domain-n
s1(config)#ip domain-name cisco.com
s1(config)#crypto key generate rsa
The name for the keys will be: s1.cisco.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
s1(config)#user
*mars 1 0:9:13.554: %SSH-5-ENABLED: SSH 2 has been enabled
s1(config)#username admin secret ccna
s1(config)#line vty 0 15
s1(config-line)#tr
s1(config-line)#transport inp
s1(config-line)#transport input ssh
s1(config-line)#login lo
s1(config-line)#login local
s1(config-line)#exit
s1(config)#in
s1(config)#interface r
s1(config)#interface range f
s1(config)#interface range fastEthernet 0/3-24
s1(config-if-range)#sh
s1(config-if-range)#shutdown
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to administratively do
wn
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to administratively do
wn
%LINK-5-CHANGED: Interface FastEthernet0/5, changed state to administratively do
wn
%LINK-5-CHANGED: Interface FastEthernet0/6, changed state to administratively do
wn
%LINK-5-CHANGED: Interface FastEthernet0/7, changed state to administratively do
wn
%LINK-5-CHANGED: Interface FastEthernet0/8, changed state to administratively do
wn
%LINK-5-CHANGED: Interface FastEthernet0/9, changed state to administratively do
wn
%LINK-5-CHANGED: Interface FastEthernet0/10, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/11, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/12, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/13, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/14, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/15, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/16, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/17, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/18, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/19, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/20, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/21, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/22, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/23, changed state to administratively d
own
%LINK-5-CHANGED: Interface FastEthernet0/24, changed state to administratively d
own
s1(config-if-range)#exit
s1(config)#int f0/1
s1(config-if)#sw
s1(config-if)#switchport m
s1(config-if)#switchport mode acc
s1(config-if)#switchport mode access
s1(config-if)#sw
s1(config-if)#switchport po
s1(config-if)#switchport port-security
s1(config-if)#switchport port-security maxi
s1(config-if)#switchport port-security maximum 2
s1(config-if)#switchport port-security mac
s1(config-if)#switchport port-security mac-address st
s1(config-if)#switchport port-security mac-address sticky
s1(config-if)#switchport port-security mac-address sticky 00e0.b027.2245
s1(config-if)#switchport port-security vi
s1(config-if)#switchport port-security violation
% Incomplete command.
s1(config-if)#switchport port-security violation shut
s1(config-if)#switchport port-security violation shutdown
s1(config-if)#exit
s1(config)#int range g0/1-2
s1(config-if-range)#shut
s1(config-if-range)#shutdown
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to administratively
down
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to administratively
down
s1(config-if-range)#exit
s1(config)#int f0/2
s1(config-if)#s
s1(config-if)#sw
s1(config-if)#switchport m
s1(config-if)#switchport mode a
s1(config-if)#switchport mode access
s1(config-if)#swi
s1(config-if)#switchport po
s1(config-if)#switchport port-security
s1(config-if)#switchport port-security ma
s1(config-if)#switchport port-security max
s1(config-if)#switchport port-security maximum 2
s1(config-if)#switchport port-security mac
s1(config-if)#switchport port-security mac-address st
s1(config-if)#switchport port-security mac-address sticky
s1(config-if)#switchport port-security mac-address sticky 0001.647c.697e
s1(config-if)#switchport port-security vi
s1(config-if)#switchport port-security violation shut
s1(config-if)#switchport port-security violation shutdown
s1(config-if)#exit
s1(config)#
tp.....................................vlan............................
Switch>
Switch>en
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vl
Switch(config)#vlan 10
Switch(config-vlan)#na
Switch(config-vlan)#name etudient
Switch(config-vlan)#in
Switch(config-vlan)#int
Switch(config-vlan)#eci
Switch(config-vlan)#exi
Switch(config)#in
Switch(config)#interface f
Switch(config)#interface range f0/1-12
Switch(config-if-range)#sw
Switch(config-if-range)#switchport m
Switch(config-if-range)#switchport mode a
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#sw
Switch(config-if-range)#switchport a
Switch(config-if-range)#switchport access v