DESCARGA Y CARGA DE LA IMAGEN DE UN ROUTER
NOTA: Antes de comenzar eliminar el firework y el antivirus
DESCARGAR IMAGEN
Descargamos el SolarWin TFTP y lo intalamos.
Damos una IP estática al servidor (192.168.1.10).
Iniciamos el servidor.
->Configuramos el interfaz FastEthernet del router para realizar la transferencia (192.168.1.1).
-> configuramos la vlan1 del switch con:
interface vlan 1
ip address 192.168.X.X 255.255.255.0
no shutdown
end
Vemos el nombre de la imagen del router: #show flash:
Copiamos la imagen con el comando: #copy flash: tftp:
#Nombre de la Imagen
#Dirección del servidor
CARGAR IMAGEN
Primero reiniciamos el router.
Pulsamos Ctrl+Pausa mientras arranca para entrar en modo rom
Romm 1 > confreg
Do you wish to change the configuration: yes
.
. no
. no
Change console baud rate: yes (elegimos 115000)
Do you wish to change the configuration: no
Introducimos el comando: xmodem –c “nombre_imagen.bin”
El router se pondrá en modo recepción.
Por último, nos vamos al hiperterminal, en enviar archivos :
Buscamos el archivo -> Seleccionamos el xmodem
Mostrando entradas con la etiqueta CISCO. Mostrar todas las entradas
Mostrando entradas con la etiqueta CISCO. Mostrar todas las entradas
miércoles, 8 de julio de 2009
domingo, 1 de junio de 2008
Comandos interesantes
Show interface brief: vemos el estado del serial
copy running-config startup-config
copy running-config startup-config
DHCP Relay
DHCP
CAMPUS(config)# ip dhcp pool campus
network 172.16.12.0 255.255.255.0
default-router 172.16.12.1
dns-server 172.16.1.2 (ficticio)
domain-name val.es
netbios-name-server 172.16.1.10
ip dhcp excluded-address 172.16.12.1 172.16.12.10
exit
exit
show ip dhcp binding
ENCAMINAMIENTO CON OSPF
CAMPUS router ospf 1
network 172.16.12.0 0.0.0.255 area 0
network 172.16.1.0 0.0.0.255 area 0
(lo mismo para ISP)
Routing

REINICIAR LOS ROUTERS
>enable
#erase startup-config
#reload
En primer lugar vamos a configurar las interfeces FastEthernet y Serial de cada router, para a continuación poder realizar, las rutas estáticas de cada router, el protocolo RIP y el protocolo OSPF.
ROUTER 1
>enable
#configure terminal
# interface FastEthernet 0/0
#ip address 10.10.1.1 255.0.0.0
#no shutdown
#exit
#interface Serial 0/1/0
#ip address 172.16.0.1 255.255.0.0
#clock rate 64000
#no shutdown
#end
#show running-config
ROUTER 2
>enable
#configure terminal
# interface FastEthernet 0/0
#ip address 120.10.1.1 255.0.0.0
#no shutdown
#exit
#interface Serial 0/1/1
#ip address 172.16.0.2 255.255.0.0
#no shutdown
#exit
#interface Serial 0/1/0
#ip address 192.168.0.1 255.255.255.0
#clock rate 64000
#no shutdown
#end
#show running-config
ROUTER 3
>enable
#configure terminal
# interface FastEthernet 0/0
#ip address 150.10.1.1 255.255.0.0
#no shutdown
#exit
#interface Serial 0/1/1
#ip address 192.168.0.2 255.255.255.0
#no shutdown
#end
#show running-config
CONFIGURACIÓN ESTÁTICA DE LAS RUTAS
ROUTER 1
>enable
#configure terminal
#ip route 0.0.0.0 0.0.0.0 172.16.0.2 //Ruta por defecto
ROUTER 2
>enable
#configure terminal
#ip route 10.10.1.0 255.0.0.0 172.16.0.1
#ip route 150.10.1.0 255.255.0.0 192.168.0.2
ROUTER 3
>enable
#configure terminal
#ip route 0.0.0.0 0.0.0.0 192.168.0.1 //Ruta por defecto
NOTA: Para ver las rutas que hemos establecido en el router podemos poner el comando “show ip route”. Y para comprobar que el encaminamiento dinámico se a realizamos correctamente realizamos uno “tracert 150.10.1.2” desde el PC1.
CONFIGURACIÓN RIP
ROUTER 1
>enable
#configure terminal
#router rip
#network 192.168.0.0
#end
ROUTER 2
>enable
#configure terminal
#router rip
#network 192.168.0.0
#network 172.16.0.0
#end
ROUTER 3
>enable
#configure terminal
#router rip
#network 172.16.0.0
#end
NOTA: Para ver las rutas que hemos establecido en el router podemos poner el comando “show ip route”. Y para comprobar que el encaminamiento dinámico se a realizamos correctamente realizamos uno “tracert 150.10.1.2” desde el PC1.
CONFIGURACIÓN OSPF
ROUTER 1
>enable
#configure terminal
#router ospf 100
#network 192.168.0.0 0.0.0.255 area 0
#end
ROUTER 2
>enable
#configure terminal
#router ospf 100
#network 192.168.0.0 0.0.0.255 area0
#network 172.16.0.0 0.0.255.255 area0
#end
ROUTER 3
>enable
#configure terminal
#router ospf 100
#network 172.16.0.0 0.0.255.255 area0
#end
NOTA: Para ver las rutas que hemos establecido en el router podemos poner el comando “show ip route”. Y para comprobar que el encaminamiento dinámico se a realizamos correctamente realizamos uno “tracert 150.10.1.2” desde el PC1.
NOTA: Podemos obtener información de los vecinos con el comando “show ip neigbor”. Igualmente podemos cambiar el coste y la prioridad de la ruta con los comandos “ip ospf cost” y “ip ospf priority”
NAT

En primer lugar debemos configurar, las interfaces (FastEthernet y Serial) de los routers tanto del GATEWAY como el del ISP. Se realizarían de la siguiente manera:
ROUTER GATEWAY
>enable
#configure terminal
# interface FastEthernet 0/0
#ip address 10.10.10.1 255.0.0.0
#no shutdown
#exit
# interface Serial 0/1/0
#ip address 200.2.2.18 255.255.255.252
#clock rate 64000
#no shutdown
#end
ROUTER ISP
>enable
#configure terminal
# interface loopback 0
#ip address 172.16.1.1 255.255.255.255
#no shutdown
#exit
# interface Serial 0/1/0
#ip address 200.2.2.17 255.255.255.252
#no shutdown
#end
En segundo lugar, debemos dar una ruta estática a ambos routers para que puedan encaminar los paquetes. Se haría de la siguiente manera:
ISP (config)# ip route 199.99.9.32 255.255.255.224 200.2.2.18
GATEWAY (config)# ip route 0.0.0.0 0.0.0.0 200.2.2.17
Y por último, en el router GATEWAY, creamos el pool de direcciones, definimos la lista de acceso y configuramos nat.
GATEWAY(config)# ip nat pool public-access 199.99.9.40 199.99.9.62 nestmask 255.255.255.224
GATEWAY(config)# access-list 1 permit 10.10.10.0 0.0.0.255
GATEWAY(config)# ip nat inside source list pool public-access
static 10.10.10.0 199.99.9.33
GATEWAY(config)# interface FastEthernet 0/0
# ip nat inside
no shutdown
GATEWAY(config)# interface Serial 0/1/0
# ip nat outside
no shutdown
NOTA: Para probar si el servicio Nat funciona, debemos realizar ping desde cada pc a la dirección de loopback, y posteriormente ver la tabla de translación de direcciones con el comando “show ip nat translation”
sábado, 31 de mayo de 2008
Copiar IOS Router FTP
http://revartm.wordpress.com/2007/05/27/copiar-cisco-ios-y-ficheros-de-configuracion-a-tftp/
viernes, 30 de mayo de 2008
InterVLANs

1. CONFIGURACIÓN DEL SWITCH
PASOS:
REINICIAR EL SWITCH
>enable
#delete flash:vlan.dat
#erase startup-config
#reload
CREACION DE LAS REDES VIRTUALES
#vlan database
#vlan 10 name REDVIRTUAL-1
#vlan 20 name REDVIRTUAL-2
#apply
NOTA: 10 y 20 son los identificadores de las VLAN y el nombre de las mismas son REDVIRTUAL-1 y REDVIRTUAL-2.
NOTA: Para ver información de las VLAN-> #show vlan
CONFIGURACION DEL PUERTO 2
#config terminal
#interface fastethetnet 0/2
#switchport access vlan 10
#switchport mode access
#exit
CONFIGURACION DEL PUERTO 3
#interface fastethernet 0/3
#switchport access vlan 20
#switchport mode access
#exit
CONFIGURACION DEL PUERTO 4
#interface fastethernet 0/4
#switchport access vlan 10
#switchport mode access
#exit
CONFIGURACION DEL PUERTO 5
#interface fastethernet 0/5
#switchport access vlan 20
#switchport mode access
#exit
CONFIGURACION DEL PUERTO DE TRUNKING
El puerto de trunking, en nuestro caso es el puerto 1, tanto si se utiliza para conectar un router para encaminar las dos VLAN, tanto como si se quiere conectar otro switch que contega dos redes virtuales llamadas iguales, se configura de la siguiente manera:
#config terminal
#interface fastethernet 0/1
#switchport mode trunk
2. CONFIGURACION DEL ROUTER
Cambiar el cable de consola al router.
A continuación vamos a crear dos subinterfaces lógicas en el ethernet 0 del router. Crear tantas subinterfaces lógicas como vlan tengamos.
#config terminal
#interface fastethernet 0
#no shutdown
#interface fastethernet 0.1
#encapsulation dot1q 10
#ip address 192.168.2.1 255.255.255.0
Ya esta creada la primera subinterface lógica que pertenece a la vlan
REDVIRTUAL-1 VLAN 10 y le hemos asociado la subinterface logicar 0.1.
Ahora vamos a crear la subinterface para la REDVIRUTAL-2 :
#config terminal
#interface fastethernet 0
#no shutdown
#interface fastethernet 0.2
#encapsulation dot1q 20
#ip address 192.168.1.1 255.255.255.0
En los equipos poner las direcciones IP de las subinterfaces lógicas en las puertas de enlace:
Equipo 1 y 3: puerta de enlace->192.168.2.1
Equipo 2 y 4: puerta de enlace->192.168.1.1
Por ultimo debemos configurar el router por ejemplo con rip para que encamine las dos VLAN:
#ip routing
#router rip
#network 192.168.1.0
#network 192.168.2.0
NOTA: ver la configuración correcta show running-config y por último debemos hacer ping entre los equipos.
Suscribirse a:
Entradas (Atom)