Sie sind auf Seite 1von 4

CONFIGURACION DE UN SWITCH

Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SH
SH(config)#enable password cisco
SH(config)#ip domain-name cisco.com
SH(config)#crypto key generate rsa
The name for the keys will be: SH.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]

SH(config)#line vty 0 15
*mar 1 0:40:35.331: %SSH-5-ENABLED: SSH 1.99 has been enabled
SH(config-line)#password cisco
SH(config-line)#login
SH(config-line)#transport input ssh
SH(config-line)#ip ssh time-out 30
SH(config)#ip ssh authentication-retries 3
SH(config)#ip ssh version 2
SH(config)#line console 0
SH(config-line)#login
% Login disabled on line 0, until 'password' is set
SH(config-line)#password cisco
SH(config-line)#banner motd "ACCESO DENEGADO"
SH(config)#enable secret cisco
The enable secret you have chosen is the same as your enable password.
This is not recommended. Re-enter the enable secret.
SH(config)#interface vlan1
SH(config-if)#ip address 10.0.13.0 255.255.255.128
Bad mask /25 for address 10.0.13.0
SH(config-if)#no shut

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

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


(Config) ip default-gateway IP DEL ROUTER

SH(config-if)#end
SH#
%SYS-5-CONFIG_I: Configured from console by console

SH#wr
Building configuration...
[OK]
SH#exit
CONFIGURACION DE UN ROUTER

Continue with configuration dialog? [yes/no]: no

Press RETURN to get started!

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RA
RA(config)#ip domain-name cisco.com
RA(config)#username admin password cisco
RA(config)#crypto key generate rsa
The name for the keys will be: RA.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]

RA(config)#ip ssh authentication-retries 2


*mar 1 0:2:27.538: %SSH-5-ENABLED: SSH 1.99 has been enabled
RA(config)#ip ssh time-out 30
RA(config)#ip ssh version 2
RA(config)#line vty 0 4
RA(config-line)#transport input ssh
RA(config-line)#login local
RA(config-line)#banner motd 'ACCESO DENEGADO'
RA(config)#enable secret cisco
RA(config)#interface gigabitethernet 0/0
RA(config-if)#ip address 10.0.3.0 255.255.255.128
Bad mask /25 for address 10.0.3.0
fRA(config-if)#no shutdown

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

RA(config-if)#interface serial 0/0/0


RA(config-if)#ip address 10.0.1.1 255.255.255.128
RA(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down


RA(config-if)#router rip
RA(config-router)#network 10.0.2.128 (ip del switch)
RA(config-router)#network 10.0.8.0 (ip del router)
RA(config-router)#exit
RA(config)#end
RA#
%SYS-5-CONFIG_I: Configured from console by console

RA#wr
Building configuration...
[OK]
RA#exit

Vlsm

Config t

Router rip

Version 2

No auto summary

Network ip

Das könnte Ihnen auch gefallen