Configuración de ACL, VLAN, DHCP y DHCPv6 en Routers Cisco: Guía Práctica de Redes
Crear una lista de acceso
R1(config)# access-list 1 permit 192.168.10.0 0.0.0.255
R1(config)# access-list 1 deny host 192.168.10.0 0.0.0.255
R1(config)# interface serial 0/0/0
R1(config-if)# ip access-group 1 out
ACL estándar
R1(config)# ip access-list standard NO_ACCESS
R1(config-std-nacl)# deny host 192.168.11.10
R1(config-std-nacl)# permit any
R1(config-std-nacl)# exit
R1(config)# interface g0/0
R1(config-if)# ip access-group NO_ACCESS out
Mostrar ACL
R1# show running-config | include access-list 1
ACL extendida
Router(config)# access-list 1 permit TCP host 10.10.10.1 (origen) host 200.10.10.1 (destino) eq 80 (# puerto)
Configurar VLAN
Switch(config)# vlan ______
Switch(config-vlan)# name _______
Switch(config)# interface range f0/##
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan _______
Enlace troncal
Switch(config)# interface f0/##
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk native vlan ____
Switch(config-if)# switchport trunk allowed vlan 10,20,30
Configuración de un router con subinterfaces
Router(config)# interface ____
Router(config-if)# no shutdown
Router(config)# interface g0/0.10 (el 10 es la VLAN)
Router(config-subif)# encapsulation dot1Q ______ (se agrega la VLAN al final)
Router(config-subif)# ip address (IP) (MSK)
Router(config)# interface g0/0.(otra VLAN)
DHCP
Excluir direcciones conectadas estáticamente
Router(config)# ip dhcp excluded-address 192.168.10.1
Configurar el pool
Router(config)# ip dhcp pool LAN
Router(dhcp-config)# network 192.168.10.0 255.255.255.0
Router(dhcp-config)# default-router 192.168.10.1
Router(dhcp-config)# domain-name 412.com
Router(dhcp-config)# dns-server 200.100.1.1
Router(dhcp-config)# lease 0 0 24
DHCPv6 servidor sin estado
R1(config)# ipv6 unicast-routing
R1(config)# ipv6 dhcp pool LAN1
R1(config-dhcpv6)# dns-server _________
Con estado (stateful), agregar: address prefix (dirección IPv6)
R1(config-dhcpv6)# domain-name icel.com
R1(config-dhcpv6)# exit
R1(config)# interface g0/1
R1(config-if)# ipv6 address ________
R1(config-if)# ipv6 dhcp server LAN1
R1(config-if)# ipv6 nd other-config-flag (se cambia "at her" por "managed" en caso con estado: ipv6 nd managed-config-flag)
Cliente DHCPv6
R2(config)# ipv6 unicast-routing
R2(config)# interface g0/1
R2(config-if)# ipv6 enable
R2(config-if)# ipv6 address autoconfig (se cambia autoconfig por: ipv6 address dhcp)