Вы находитесь на странице: 1из 7

EVIDENCIA 1

CONFIGURACIÓN BÁSICA DE
ROUTER Y DE SWITCH MODO
CONSOLA
CONFIGURACION DEL ROUTER

Router>ebenable
Router#con
Router#con
Router#conf
Router#configure term
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#
Router(config)#line console 0
Router(config-line)#password cisco1
Router(config-line)#login
Router(config-line)#line vty 0 4
Router(config-line)#lolpassword cisco2
Router(config-line)#login
Router(config-line)#lilenable secret cisco3
Router(config)#
Router(config)#username admin privilege 15 password admin
Router(config)#hostname R1
R1(config)#ip domain-nME CISCO.COM
^
% Invalid input detected at '^' marker.
R1(config)#IPIip domain-name cisco.com
R1(config)#crypto key generate Rca
^
% Invalid input detected at '^' marker.
R1(config)#crcrypto key generate rca
^
% Invalid input detected at '^' marker.
R1(config)#crypto key generate rsa
The name for the keys will be: R1.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]:


% Generating 512 bit RSA keys, keys will be non-exportable...[OK]

R1(config)#exit
*mar. 1 0:10:16.102: RSA key size needs to be at least 768 bits for ssh version 2
*mar. 1 0:10:16.102: %SSH-5-ENABLED: SSH 1.5 has been enabled
R1#
%SYS-5-CONFIG_I: Configured from console by console

R1#con
R1#conf
R1#configure term
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#crypto generate rsa
^
% Invalid input detected at '^' marker.
R1(config)#crypto key generate rsa
% You already have RSA keys defined named R1.cisco.com .
% Do you really want to replace them? [yes/no]: y
The name for the keys will be: R1.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]

R1(config)#line vty 0 4
*mar. 1 0:12:37.92: %SSH-5-ENABLED: SSH 1.99 has been enabled
R1(config-line)#login local
R1(config-line)#transport input ssh
R1(config-line)#do write
Building configuration...
[OK]
R1(config-line)#exit
R1(config)#interf
R1(config)#interface 0/0
^
% Invalid input detected at '^' marker.
R1(config)#inter
R1(config)#interface fa0/0
R1(config-if)#ip add
R1(config-if)#ip address 192.168.10.126 255.255.255.128
R1(config-if)#no shutdown

R1(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

R1(config-if)#exit
R1(config)#conf
R1(config)#cocinter
R1(config)#interface fa0/1
R1(config-if)#ip add
R1(config-if)#ip address 192.168.10.254 255.255.255.254
Bad mask /31 for address 192.168.10.254
R1(config-if)#no shutdown

R1(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

R1(config-if)#exit
R1(config)#inter
R1(config)#interface fa0/1
R1(config-if)#ip add
R1(config-if)#ip address 192.168.10.25
% Incomplete command.
R1(config-if)#4ip add
R1(config-if)#ip address 192.168.10.254 255.255.255.128
R1(config-if)#ip address 192.168.10.254 255.255.255.128
R1(config-if)#no shutdown
R1(config-if)#do write
Building configuration...
[OK]

CONFIGURACION SWITCH 1

Switch>enable
Switch#conf
Switch#configure term
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#line console 0
Switch(config-line)#password cisco 1
Switch(config-line)#login
Switch(config-line)#line vty 0 4
Switch(config-line)#login
% Login disabled on line 1, until 'password' is set
% Login disabled on line 2, until 'password' is set
% Login disabled on line 3, until 'password' is set
% Login disabled on line 4, until 'password' is set
% Login disabled on line 5, until 'password' is set
Switch(config-line)#line vty 0 4
Switch(config-line)#passwword cisco2
^
% Invalid input detected at '^' marker.
Switch(config-line)#password cisco2
Switch(config-line)#login
Switch(config-line)#enable secret cisco3
Switch(config)#username admin privilege 15 password admin
Switch(config)#hostname sw1
sw1(config)#ip domain-name cisco.com
sw1(config)#crypto key generate rsa
The name for the keys will be: sw1.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]

sw1(config)#login local
*mar. 1 0:43:45.868: %SSH-5-ENABLED: SSH 1.99 has been enabled
^
% Invalid input detected at '^' marker.
sw1(config)#line vty 0 4
sw1(config-line)#login local
sw1(config-line)#transport input ssh
sw1(config-line)#do write
Building configuration...
[OK]
sw1(config-line)#transport input ssh
sw1(config-line)#do write
Building configuration...
[OK]
sw1(config-line)#
sw1(config-line)#exit
sw1(config)#inter
sw1(config)#interface vlan
% Incomplete command.
sw1(config)#inter
sw1(config)#interface vlan
% Incomplete command.
sw1(config)#inter
sw1(config)#interface vlan1
sw1(config-if)#ip add
sw1(config-if)#ip address 192.168.10.10 255.255.255.128
sw1(config-if)#no shutdown

sw1(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

sw1(config-if)#exit
sw1(config)#ip default-gateway 192.168.10.126
sw1(config)#do write
Building configuration...
[OK]
sw1(config)#

CONFIGURACION SWITCH 2

Switch>ena
Switch#con
Switch#conconf
Switch#conconf term
Switch#conconf termi
Switch#conconf terminal
^
% Invalid input detected at '^' marker.
Switch#conf
Switch#configure term
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#line console 0
Switch(config-line)#password cisco1
Switch(config-line)#login
Switch(config-line)#
Switch(config-line)#line vty 0 4
Switch(config-line)#password cisco2
Switch(config-line)#login
Switch(config-line)#enable secret cisco3
Switch(config)#username admin privilege 15 password admin
Switch(config)#hostname 2w
2w(config)#ip domain-name cisco.com
2w(config)#crypto key generate rsa
The name for the keys will be: 2w.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]

2w(config)#line vty 0 4
*mar. 1 1:0:28.385: %SSH-5-ENABLED: SSH 1.99 has been enabled
2w(config-line)#login local
2w(config-line)#transport input ssh
2w(config-line)#do write
Building configuration...
[OK]
2w(config-line)#
2w(config-line)#exit
2w(config)#interface vlan1
2w(config-if)#ip add
2w(config-if)#ip address 192.168.10.150 255.255.255.128
2w(config-if)#no shutdown

2w(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

2w(config-if)#exit
2w(config)#ip default-gateway 192.168.10.25
2w(config)#ip default-gateway 192.168.10.25
2w(config)#ip default-gateway 192.168.10.254
2w(config)#do write
Building configuration...
[OK]
2w(config)#
2w(config)#interface FastEthernet0/1
2w(config-if)#
2w(config-if)#exit
2w(config)#interface FastEthernet0/3
2w(config-if)#
2w(config-if)#exit
2w(config)#interface FastEthernet0/5
2w(config-if)#
2w(config-if)#exit
2w(config)#
2w(config)#interface FastEthernet0/1
2w(config-if)#exit
2w(config)#exit
2w#
%SYS-5-CONFIG_I: Configured from console by console

2w#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
2w#

Вам также может понравиться