Sei sulla pagina 1di 9

2.2.1.

4 Packet Tracer - Configuring SSH-2

PC>telnet 10.10.10.2
Trying 10.10.10.2 ...Open
User Access Verification
Password: cisco
S1>en

Password: cisco
S1#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
S1#sh run
Building configuration...
Current configuration : 1107 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname S1
!
enable password cisco
!
!
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!

interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 10.10.10.2 255.255.255.0
!
!
!
!
line con 0
!
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
!
end
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#service password-encryption
S1(config)#end
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#ip domain-name netacad.pka

S1(config)#crypto key generate rsa


The name for the keys will be: S1.netacad.pka
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)#username administrator secret cisco
*Mar 1 0:2:8.120: %SSH-5-ENABLED: SSH 1.99 has been enabled
S1(config)#line vty 0 15
S1(config-line)#no pass
S1(config-line)#no password
S1(config-line)#no login
S1(config-line)#login local
S1(config-line)#transport input ssh
S1(config-line)#exit
S1(config)#
2.2.4.10 Packet Tracer - Troubleshooting Switch Port Security

S1>ena
S1#show po
S1#show port-security fast
S1#show port-security inter
S1#show port-security interface fas
S1#show port-security interface fastEthernet 0/1
Port Security
: Disabled
Port Status
: Secure-down
Violation Mode
: Shutdown
Aging Time
: 0 mins
Aging Type
: Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses
:1
Total MAC Addresses
:0
Configured MAC Addresses : 0
Sticky MAC Addresses
:0
Last Source Address:Vlan : 0000.0000.0000:0

Security Violation Count : 0


S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#int fa0/1
S1(config-if)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console
S1#show in
S1#show interfaces br
S1#show ip inter
S1#show ip interface br
S1#show ip interface brief
Interface
IP-Address
OK? Method Status
Protocol
FastEthernet0/1
unassigned YES manual administratively down down
FastEthernet0/2
unassigned YES manual up
up
FastEthernet0/3
unassigned YES manual down
down
FastEthernet0/4
unassigned YES manual down
down
FastEthernet0/5
unassigned YES manual down
down
FastEthernet0/6
unassigned YES manual down
down
FastEthernet0/7
unassigned YES manual down
down
FastEthernet0/8
unassigned YES manual down
down
FastEthernet0/9
unassigned YES manual down
down
FastEthernet0/10
unassigned YES manual down
down
FastEthernet0/11
unassigned YES manual down
down
FastEthernet0/12
unassigned YES manual down
down
FastEthernet0/13
unassigned YES manual down
down
FastEthernet0/14
unassigned YES manual down
down
FastEthernet0/15
unassigned YES manual down
down
FastEthernet0/16
unassigned YES manual down
down
FastEthernet0/17
unassigned YES manual down
down
FastEthernet0/18
unassigned YES manual down
down
FastEthernet0/19
unassigned YES manual down
down
FastEthernet0/20
unassigned YES manual down
down
FastEthernet0/21
unassigned YES manual down
down
FastEthernet0/22
unassigned YES manual down
down
FastEthernet0/23
unassigned YES manual down
down
FastEthernet0/24
unassigned YES manual down
down
GigabitEthernet0/1 unassigned YES manual down
down
GigabitEthernet0/2 unassigned YES manual down
down
Vlan1
10.10.10.2 YES manual up
up
S1#
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#int fa0/1
S1(config-if)#no shu
S1(config-if)#no shutdown
S1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to


up
2.2.4.10 Packet Tracer - Troubleshooting Switch Port Security

S1>en
S1#sho
S1#show port
S1#show port-security in
S1#show port-security interface fa0/1
Port Security : Disabled
Port Status : Secure-down
Violation Mode : Shutdown
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 1
Total MAC Addresses : 0
Configured MAC Addresses : 0
Sticky MAC Addresses : 0
Last Source Address:Vlan : 0000.0000.0000:0
Security Violation Count : 0
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#int fa0/1
S1(config-if)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console
S1#sho ip int br
S1#sho ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual administratively down down
FastEthernet0/2 unassigned YES manual up up
FastEthernet0/3 unassigned YES manual down down
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down

FastEthernet0/12 unassigned YES manual down down


FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual down down
GigabitEthernet0/1 unassigned YES manual down down
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 10.10.10.2 YES manual up up
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#int fa0/1
S1(config-if)#no sh
S1(config-if)#no shutdown
S1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to
up

Potrebbero piacerti anche