Anda di halaman 1dari 4

Configuración para switch

! Configuración del S-1

Enable

Configure terminal

Hostname S-1

Line console 0

Pass cisco

Login

Exit

Enable secret class

! CONFIGURACIÓN DE LA SV1 (VLAN 1)

Interface vlan 50

Ip address 192.195.50.254 255.255.255.0

No shutdown

Exit

! CONFIGURACIÓN DE LA TERMINAL VIRTUAL SSH

Ip domain-name vianney.com

Crypto key generate rsa

1024

Username admin password cisco

! ACTIVACIÓN DE LAS LINEAS VTY PARA ACCESO POR SSH

LINE VTY 0 4

TRANSPORT INPUT SSH

LOGIN LOCAL

EXIT

! COLOCAR AVISO DE ADVERTENCIA SOBRE EL USO DE LOS EQUIPOS

BANNER MOTD # PROHIBIDO EL ACCESO A CUALQUIER PERSONA NO AUTORIZADA#

DO COPY RUNNING-CONFIG STARTUP-CONFIG


Configuracion ip-gateway

SW-1(config)#ip default-gateway 192.168.10.1 --------es la red gateway

Configuracion principal de router-switch

Router>

Router>enable

Router#config t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname r1

r1(config)#line console 0

r1(config-line)#password cisco

r1(config-line)#login

r1(config-line)#exit

r1(config)#enable secret class

r1(config)#interface g0/0

r1(config-if)#ip address 192.168.10.1 255.255.255.0

r1(config-if)#no shutdown

r1(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

r1(config-if)#exit

r1(config)#
Configuracion router- router

User Access Verification

Password:

r1>enable

Password:

r1#configure t

Enter configuration commands, one per line. End with CNTL/Z.

r1(config)#int serial0/0

r1(config-if)#ip add 192.168.1.1 255.255.255.0

r1(config-if)#no shu

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

r1(config-if)#

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r1(config-if)#exit

r1(config)#

configuracion tabla de ruteo

Password:

r1>enable

Password:

r1#conf t
Enter configuration commands, one per line. End with CNTL/Z.

r1(config)#ip route 192.168.20.0 255.255.255.0 192.168.1.2

r1(config)#ip route 192.168.30.0 255.255.255.0 192.168.1.2

r1(config)#ip route 192.168.40.0 255.255.255.0 192.168.1.2

ip route 192.168.10.0 255.255.255.0 192.168.200.2

ip route 192.168.20.0 255.255.255.0 192.168.200.2

ip route 192.168.30.0 255.255.255.0 192.168.200.2

ip route 10.0.0.0 255.255.255.0 192.168.200.1

ip route 196.196.196.0 255.255.255.0 192.168.200.1

ip route 192.168.50.0 255.255.255.0 192.168.200.1

ip route 190.190.0.0 255.255.255.0 192.168.200.1

ip route 192.168.99.0 255.255.255.0 192.168.200.1

ip route 192.168.99.253 255.255.255.0 192.168.200.1

ip route 192.168.99.254 255.255.255.0 192.168.200.1

Anda mungkin juga menyukai