0% found this document useful (0 votes)
164 views

Comandos Router Cisco

This document provides configuration examples for a Cisco router, including: changing the router name, setting passwords, adding banners, configuring interfaces, enabling routing protocols like RIP, EIGRP and OSPF, setting up redistribution between protocols, configuring static routes, DHCP, VLAN routing, WAN encapsulation using PPP and Frame Relay, and network address translation using static and dynamic NAT with overloading. The configurations cover topics like routing, security, interfaces, DHCP and NAT.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views

Comandos Router Cisco

This document provides configuration examples for a Cisco router, including: changing the router name, setting passwords, adding banners, configuring interfaces, enabling routing protocols like RIP, EIGRP and OSPF, setting up redistribution between protocols, configuring static routes, DHCP, VLAN routing, WAN encapsulation using PPP and Frame Relay, and network address translation using static and dynamic NAT with overloading. The configurations cover topics like routing, security, interfaces, DHCP and NAT.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

CONFIGURACION ROUTER CISCO

CAMBIAR NOMBRE ROUTER


---------------------------------------------------------------------------------------------------------Router(config)#hostname R1
R1(config)#
CONTRASEAS (SECRET-CONSOLE-VTY-ENCRIPTAR)
---------------------------------------------------------------------------------------------------------Router(config)#enable secret cisco
Router(config)#enable password cisco
Router(config)#line console 0
Router(config-line)#password cisco
Router(config-line)#login
Router(config-line)#exit
Router(config)#line vty 0 4
Router(config-line)#password cisco
Router(config-line)#login
Router(config-line)#exit
Router(config)#service password-encryption
MENSAJE DE AUTORIZACION
---------------------------------------------------------------------------------------------------------Router(config)#banner motd #AUTHORIZED PERSONNEL ONLY#
INTERFACES
---------------------------------------------------------------------------------------------------------Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shut
Router(config)#interface serial 0/0
Router(config-if)#ip address 12.0.0.1 255.0.0.0
Router(config-if)#clock rate 64000
Router(config-if)#no shut
LOOPBACK
---------------------------------------------------------------------------------------------------------Router(config)#interface loopback0
Router(config-if)#ip address 200.200.200.1 255.255.255.252
RIP
---------------------------------------------------------------------------------------------------------Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.1.0
Router(config-router)#network 12.0.0.0

EIGRP
---------------------------------------------------------------------------------------------------------Router(config)#router eigrp 100
Router(config-router)#network 192.168.1.0
Router(config-router)#network 12.0.0.0
OSPF
---------------------------------------------------------------------------------------------------------Router(config)#router ospf 100
Router(config-router)#network 192.168.1.0 0.0.0.255 area 0
Router(config-router)#network 12.0.0.0 0.255.255.255 area 0
REDISTRIBUCIONES (RIP-EIGRP-OSPF)
---------------------------------------------------------------------------------------------------------Router(config)#router rip
Router(config-router)#redistribute eigrp 100 metric 1
Router(config-router)#redistribute ospf 100 metric 1
Router(config)#router eigrp 100
Router(config-router)#redistribute rip metric 10000 0 255 255 1500
Router(config-router)#redistribute ospf 100 metric 10000 100 255 1 1500
Router(config)#router ospf 100
Router(config-router)#redistribute rip subnets
Router(config-router)#redistribute eigrp 100 metric 500 subnets
REDISTRIBUCION POR DEFECTO (RIP-EIGRP-OSPF)
---------------------------------------------------------------------------------------------------------Router(config-router)#redistribute static
Router(config-router)#default-information originate
DIREC. ESTATICO (SIGUIENTE SALTO)
---------------------------------------------------------------------------------------------------------Router(config)#ip route 192.168.2.0 255.255.255.0 12.0.0.2
DIREC. ESTATICO (RUTA POR DEFECTO)
---------------------------------------------------------------------------------------------------------Router(config)#ip route 0.0.0.0 0.0.0.0 s0/0
DIREC. ESTATICO (RUTA ESTATICA)
---------------------------------------------------------------------------------------------------------Router(config)#ip route 192.168.2.0 255.255.255.0 s0/0
ROUTER DHCP
--------------------------------------------------------------------------------

--------------------------Router(config)#ip dhcp pool R1


Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#ip helper-address 12.0.0.1
ROUTER / SWITCH (VLAN) - INTERVLAN ROUTING
---------------------------------------------------------------------------------------------------------Router(config)#interface fastEthernet 0/0.10
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
Switch(config)#vlan 10
Switch(config-vlan)#interface range fa0/2-10
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk
ENCAPSULACION PPP CHAP (WAN) <--->
---------------------------------------------------------------------------------------------------------Router(config)#hostname R1
R1(config)#username R2 password cisco123
R1(config)#interface serial 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication chap
ENCAPSULACION PPP PAP (WAN) <--->
---------------------------------------------------------------------------------------------------------Router(config)#hostname R1
R1(config)#username R2 password cisco123
R1(config)#interface serial 0/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication pap
R1(config-if)#ppp pap sent-username R1 password cisco123
FRAME RELAY (2 ROUTERS) <--->
---------------------------------------------------------------------------------------------------------Router(config)#hostname R1
R1(config)#interface serial 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#bandwith 64
R1(config-if)#encapsulation frame-relay
R1(config-if)#no shut

FRAME RELAY (3 ROUTERS) <--->


---------------------------------------------------------------------------------------------------------Router(config)#hostname R1
R1(config)#interface serial 0/0
R1(config-if)#encapsulation frame-relay
R1(config-if)#clock rate 64000
R1(config-if)#int s0/0.102 point-to-point
R1(config-subif)#ip address 10.0.0.1 255.0.0.0
R1(config-subif)#bandwith 64
R1(config-subif)#frame-relay interface-dlci 102
R1(config-subif)#no shut
FRAME RELAY SWITCHING (3 ROUTERS) <--->
---------------------------------------------------------------------------------------------------------Router(config)#hostname FR-SW
FR-SW(config)#frame-relay switching
FR-SW(config)#interface serial 0/0
FR-SW(config-if)#clock rate 64000
FR-SW(config-if)#encapsulation frame-relay
FR-SW(config-if)#frame-relay intf-type dce
FR-SW(config-if)#frame-relay route 102 interface s0/1 201
FR-SW(config-if)#no shut
FR-SW(config)#interface serial 0/1
FR-SW(config-if)#clock rate 64000
FR-SW(config-if)#encapsulation frame-relay
FR-SW(config-if)#frame-relay intf-type dce
FR-SW(config-if)#frame-relay route 201 interface s0/0 102
FR-SW(config-if)#no shut
R1(config)#interface s0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay map ip 10.0.0.2 102 broadcast
R1(config-if)#no frame-relay inverse-arp
R1(config-if)#no shut
R2(config)#interface s0/0
R1(config-if)#ip address 10.0.0.2 255.0.0.0
R2(config-if)#encapsulation frame-relay
R2(config-if)#frame-relay map ip 10.0.0.1 201 broadcast
R2(config-if)#no frame-relay inverse-arp
R2(config-if)#no shut
NAT - ESTATICA
---------------------------------------------------------------------------------------------------------R1(config)#ip nat inside source static 192.168.1.254 209.165.200.254
R1(config)#interface serial 0/0
R1(config-if)#ip nat outside
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip nat inside
NAT - DINAMICA - POOL

---------------------------------------------------------------------------------------------------------R1(config)#ip nat pool NAT-CCNA 209.165.200.226 209.165.200.240 netmask 255.255.


255.224
R1(config)#ip nat inside source list 1 pool NAT-CCNA
R1(config)#access-list 1 permit 192.168.0.0 0.0.0.255
R1(config)#interface serial 0/0
R1(config-if)#ip nat outside
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip nat inside
NAT - ESTATICA - SOBRECARGA
---------------------------------------------------------------------------------------------------------R1(config)#access-list 1 permit 192.168.0.0 0.0.255.255
R1(config)#ip nat inside source list 1 interface serial 0/0 overload
R1(config)#interface serial 0/0
R1(config-if)#ip nat outside
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip nat inside
NAT - DINAMICA - POOL - SOBRECARGA
---------------------------------------------------------------------------------------------------------R1(config)#access-list 1 permit 192.168.0.0 0.0.255.255
R1(config)#ip nat pool NAT-CCNA 209.165.200.226 209.165.200.240
R1(config)#ip nat inside source list 1 pool NAT-CCNA overload
R1(config)#interface serial 0/0
R1(config-if)#ip nat outside
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip nat inside

You might also like