Professional Documents
Culture Documents
Comandos VLSM
Comandos VLSM
enable
configure terminal
hostname [Nombre Router]
enable secret [Contrasea Secret]
no ip domain-lookup
banner motd #[mensaje del da]#
line vty 0 4
password [contrasea VTY]
login
exit
line console 0
password [contrasea consola]
login
exit
service password-encryption
interface fastethernet [N Interface]
ip address [IP] [Mscara]
no shutdown
exit
interface serial [N Interface]
ip address [IP] [Mscara]
clock rate [Velocidad de reloj, si es DCE, tpicamente 128000]
no shutdown
exit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Configuracin Interfaces Loopback (Interfaces virtuales)
interface loopback [N]
ip address [IP] [Mscara]
exit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Configuracin Enrutamiento Esttico
ip route [Red Destino] [Mscara Red Destino] [Interface de Salida]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Configuracin Enrutamiento Esttico por defecto
ip route 0.0.0.0 0.0.0.0 [Interface de salida]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Configuracin Enrutamiento EIGRP
router eigrp [N AS]
network [Red 1]
network [Red 2]
no auto-summary
exit
interface [nombre] [N]
bandwidth [Ancho de banda en kbps]
ip hello-interval eigrp [N AS] [Tiempo Segundos]
exit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Configuracin enrutamiento OSPF
router ospf [ID Proccess(1 - 65535)]
network [IP Red 1] [Wildcard] area [ID area, tpicamente 0]
network [IP Red 2] [Wildcard] area [ID area, tpicamente 0]
router-id [IP ID]
exit
interface [nombre] [N]
bandwidth [Ancho de Banda en kbps]
ip ospf cost [costo enlace]
ip ospf hello-interval [Intervalo saludo en segundos]
ip ospf dead-interval [intervalo muestro, hello x 4]
ip ospf priority [prioridad interface dentro del proceso de seleccin del DR]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Configuracin VLAN y enrutamiento inter-vlan en switch
configure terminal
vlan 10
name [nombre vlan 10]
exit
vlan 20
name [nombre vlan 20]
exit
interface fastethernet 0/[N Interface, si se trata de una sola]
switchport mode access
switchport access vlan [Nmero de VLAN]
exit
interface range fastethernet 0/[N Inicial] - [N Final, si es un rango]
switchport mode access
switchport access vlan [N VLAN]
exit
interface fastethernet 0/0
switchport mode trunk
exit
En el router
configure terminal
interface fastethernet 0/0
no shutdown
exit
interface fasethernet 0/0.[N Subinterface, generalmente el mismo de la VLAN]
encapsulation dot1q [N VLAN]
ip address [IP VLAN] [Mscara de red]
exit
interface fasethernet 0/0.[N Subinterface para la siguiente VLAN]
encapsulation dot1q [N VLAN]
ip address [IP VLAN] [Mscara de red]
exit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Configuracin DHCP
configure terminal
ip dhcp pool [Nombre DHCP]
network [IP Grupo DHCP] [Mscara de Red]
default-router [IP Puerta de Enlace]
dns-server [IP Servidor DNS]
exit
ip dhcp excluded-address [IP Excluida del Servidor DHCP]
Cuando es necesario configurar un reenvio (relay-dhcp) para convertir
un broadcast DHCP a un unicast DHCP en servidores DHCP remotos, en la
interface que recibe las peticiones DHCP se ejecuta:
ip helper-address [IP Servidor DHCP]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Configuracin SSH, el nombre del router debe ser distinto del por defecto
configure terminal
hostname [nombre router]
username [nombre usuario] password [contrasea]
ip domain-name [nombre de dominio]
crypto key generate rsa
WAN
WAN
WAN
WAN
WAN
1
2
3
4
5
172.16.133.140
172.16.133.144
172.16.133.148
172.16.133.152
172.16.133.156
/30
/30
/30
/30
/30