You are on page 1of 5

Codigos

R4(config-if)#do show controllers s0/0/1 : Muestra si se necesita poner el clock


rate o no 128000

R4(config)#enable secret ________ para poner la contrasea al router

R4(config)#banner motd #------# poner banner

Router(config)#hostname --- poner el nombre al router


--------
Configuracin bsica de dispositivos
R4#
R4#ena
R4#conf t
R4#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#int g0/0
R4(config-if)#ip a
R4(config-if)#ip ad
R4(config-if)#ip address 10.10.4.1 255.255.255.0
R4(config-if)#ipv6
R4(config-if)#ipv6 addr
R4(config-if)#ipv6 address 2001:db8:a:4::1/64
R4(config-if)#ipv6 adr
R4(config-if)#ipv6 add
R4(config-if)#ipv6 address fe80::4 lin
R4(config-if)#ipv6 address fe80::4 link-local
-----
SSH

R4#
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#
R4(config)#ip domain-name
% Incomplete command.
R4(config)#ip domain-name R4
R4(config)#user AD
R4(config)#user admin
R4(config)#user admin sec
R4(config)#user admin secret cisco
R4(config)#cr
R4(config)#crypto key ge
R4(config)#crypto key generate rsa
% You already have RSA keys defined named R4.R4 .
% Do you really want to replace them? [yes/no]: yes
The name for the keys will be: R4.R4
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]: 2048


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

R4(config)#line v
*mar. 1 0:30:49.395: %SSH-5-ENABLED: SSH 1.99 has been enabled
R4(config)#line vty 0 15
R4(config-line)#login local
R4(config-line)#tra
R4(config-line)#transport input ssh

--------------
DHCPv4

R4(config)#ip do
R4(config)#ip domain-name R4
R4(config)#ip dhcp po
R4(config)#ip dhcp pool R4
R4(dhcp-config)#EXIT
R4(config)#ip dhcp ex
R4(config)#ip dhcp excluded-address 10.10.4.1
R4(config)#ip dhcp pool R4
R4(dhcp-config)#NET
R4(dhcp-config)#NETwork 10.10.4.0 255.255.255.0
R4(dhcp-config)#DEF
R4(dhcp-config)#defa
R4(dhcp-config)#default-router 10.10.4.1
R4(dhcp-config)#dns
R4(dhcp-config)#dns-server 209.165.44.2
R4(dhcp-config)#
-------------
NAT
Configure NAT/PAT en el R4 para que todos los dispositivos en la LAN utilicen
la direccin IP en la interfaz Serial 0/0/1 para acceder a Internet.
- Utilice una nica instruccin en la lista de acceso 1 para definir las
direcciones que participan en NAT. Admita nicamente el espacio de direcciones
10.10.4.0/24.
- Habilite NAT/PAT con la lista de acceso.
- Configure las interfaces apropiadas como NAT interna o externa.

R4(config)#ac
R4(config)#access-list 1 permi
R4(config)#access-list 1 permit 10.10.4.0 0.0.0.255
R4(config)#ip nat in
R4(config)#ip nat inside sou
R4(config)#ip nat inside source l
R4(config)#ip nat inside source list 1 i
R4(config)#ip nat inside source list 1 interface s0/0/1
R4(config)#int g0/0
R4(config-if)#ip nat inside
R4(config-if)#int s0/0/1
R4(config-if)#ip nat o
R4(config-if)#ip nat outside
R4(config-if)#
-------------
Configure PAT en el R1.
- Utilice una nica instruccin en la lista de acceso 1 para definir las
direcciones que participan en NAT. Permita que solo se utilice el espacio de la
direccin 10.10.0.0/16.
- Defina un pool denominado R1 para que utilice las cuatro direcciones en el
espacio de direcciones 64.102.139.4/30.
- Asigne la lista de acceso 1 al pool R1.
- Configure las interfaces apropiadas como NAT interna o externa.

R1>en
Password:
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#acc
R1(config)#access-list 1 permit 10.10.0.0 0.0.255.255
R1(config)#ip nat pool R1 60.102.139.4 64.102.139.7 netmask 255.255.255.252
%Pool R1 mask 255.255.255.252 too small; should be at least 248.0.0.0
%Start and end addresses on different subnets
R1(config)#ip nat pool R1 64.102.139.4 64.102.139.7 netmask 255.255.255.252
R1(config)#ip nat inside source list 1 pool R1
R1(config)#int s0/0/0
R1(config-if)#int g0/0
R1(config-if)#int nat
R1(config-if)#int nat ou
R1(config-if)#int nat outside
^
% Invalid input detected at '^' marker.

R1(config-if)#ip nat outside


R1(config-if)#int g0/0
R1(config-if)#ip nat inside
R1(config-if)#int s0/0/1
R1(config-if)#ip nat inside
R1(config-if)#int s0/1/1
R1(config-if)#int s0/1/0
-------------
Configure NAT esttica en el R1 para el acceso remoto al servidor Intranet.pka .
- Utilice una instruccin de NAT esttica para redirigir el trfico del puerto
TCP 80 de 64.102.139.2 a 10.10.10.10.
- Utilice una instruccin de NAT esttica para redirigir el trfico del puerto
TCP 443 de 64.102.139.2 a 10.10.10.10.

R1#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip nat inside source static tcp 10.10.10.10 80 64.102.139.2 80
R1(config)#ip nat inside source static tcp 10.10.10.10 443 64.102.139.2 443
-------------
Routing predeterminado

Configure una ruta predeterminada IPv4 en el R1 mediante la direccin IP del


siguiente salto 64.102.139.1.
Configure una ruta predeterminada IPv6 en el R1 mediante la interfaz de
salida.

R1(config)#ip nat inside source static tcp 10.10.10.10 80 64.102.139.2 80


R1(config)#ip nat inside source static tcp 10.10.10.10 443 64.102.139.2 443
R1(config)#ip route 0.0.0.0 0.0.0.0 64.102.139.1
R1(config)#ipv
R1(config)#ipv6 route ::/0 s0/0/0
-----
Configure una ruta predeterminada IPv4 e IPv6 en el R4 mediante la interfaz
de salida.

R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#ip route 0.0.0.0 0.0.0.0 s0/0/1
%Default route without gateway, if not a point-to-point interface, may impact
performance
R4(config)#ipv6 route 0::/0 s0/0/1
R4(config)#end
-----
Routing OSPF

Configure el rea 0 de OSPFv2 en el R1.


- Utilice la ID de proceso 1.
- Anuncie las redes conectadas directamente. No incluya el enlace a Internet.
- Evite que se enven actualizaciones de routing a travs de las interfaces
LAN.
- Propague la ruta predeterminada.
R1#conf te
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router ospf 1
R1(config-router)#net
R1(config-router)#network 10.10.10.0 0.0.0.63 area0
^
% Invalid input detected at '^' marker.

R1(config-router)#network 10.10.10.0 0.0.0.63 area 0


R1(config-router)#network 10.10.1.0 0.0.0.3 area 0
R1(config-router)#network 10.10.1.0 0.0.0.3 area 0
01:07:48: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.2.1 on Serial0/0/1 fronetwork
10.10.10.0 0.0.0.63 area0
^
% Invalid input detected at '^' marker.

R1(config-router)#network 10.10.1.4 0.0.0.3 area 0


R1(config-router)#
01:08:03: %OSPF-5-ADJCHG: Process 1, Nbr 10.10.3.1 on Serial0/1/0 from LOADING to
FULL, Loading Done

R1(config-router)#pas
R1(config-router)#passive-interface g0/0
R1(config-router)#default-infor
R1(config-router)#default-information ori
R1(config-router)#default-information originate
-----
Configure el rea 0 de OSPFv3 en el R1.
- Utilice la ID de proceso 1.
- Asigne 1.1.1.1 como ID del router.
- Evite que se enven actualizaciones de routing a travs de las interfaces
LAN.
- Complete la configuracin de routing OSPFv3 o IPv6 requerida.

R1(config)#ipv6 uni
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 route ospf 1
^
% Invalid input detected at '^' marker.

R1(config)#ipv6 router ospf 1


R1(config-rtr)#rou
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#pas
R1(config-rtr)#passive-interface g0/0
R1(config-rtr)#exit
R1(config)#int g0/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#int s0/0/1
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#int s0/0/1
01:21:39: %OSPFv3-5-ADJCHG: Process 1, Nbr 10.10.2.1 on Serial0/0/1 from LOADING to
FULL, Loaint s0/1/0
R1(config-if)#int s0/1/0
R1(config-if)#ipv6 ospf 1 area 0
-------------

You might also like