Sei sulla pagina 1di 4

Router>enable

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#router rip
Router(config-router)#
Router(config-router)#exit
Router(config)#exit
Router#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Router(vlan)#
%SYS-5-CONFIG_I: Configured from console by console

Router(vlan)#exit
APPLY completed.
Exiting....
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed
state to up
ip address 10.1.1.0 255.0.0.0
Router(config-if)#no ip address
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 10.1.1.1 255.0.0.0
Router(config-if)#ip address 10.1.1.1 255.255.255.0
Router(config-if)#
Router(config-if)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#use
Router(config)#username labnetpass
Router(config)#username labnet pass
Router(config)#username labnet password 123456
Router(config)#en
% Ambiguous command: "en"
Router(config)#en
Router(config)#enable seccret 123456
^
% Invalid input detected at '^' marker.

Router(config)#enable secret 123456
Router(config)#line vty 0 4
Router(config-line)#login local
Router(config-line)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#copy r s
Destination filename [startup-config]?
Building configuration...
[OK]
Router#cong t
^
% Invalid input detected at '^' marker.

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip domain-name www.labnet.com
Router(config)#cry
Router(config)#crypto key gene
Router(config)#crypto key generate ?
rsa Generate RSA keys
Router(config)#crypto key generate
% Incomplete command.
Router(config)#crypto key generate rsa
% Please define a hostname other than Router.
Router(config)#hostname r1
r1(config)#crypto key generate rsa
The name for the keys will be: r1.www.labnet.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]: 512
% Generating 512 bit RSA keys, keys will be non-exportable...[OK]

r1(config)#ip ssh authentication-retries 3
*Mar 1 0:52:44.38: RSA key size needs to be at least 768 bits for ssh version 2
*Mar 1 0:52:44.70: %SSH-5-ENABLED: SSH 1.5 has been enabled
r1(config)#ip ssh aut
r1(config)#ip ssh authentication-retries 3
r1(config)#ip ssh time
r1(config)#ip ssh time-out 30
r1(config)#aaa new
r1(config)#aaa new-model
r1(config)#line vty 0 4
r1(config-line)#no login local
r1(config-line)#trans
r1(config-line)#transport input ssh
r1(config-line)#exit

Potrebbero piacerti anche