Step 3: To configure the DHCP you must know which network address we want to provide, which is the Subnet Mask and which is the Default Gateway on the network. As optional we can also exclude certain IP addresses to reserve them or simply because we do not want to use them and we can also configure a DNS service where we will place an address that we want, it is worth repeating that these last two configurations are optional since the DHCP service can Work perfectly well without these.
The commands to use are as follows:
The commands to use are as follows:
Ip dhcp excluded-address 172.16.0.1 172.16.0.10
To view the packet-trace from captured packet #3 in the capture, use the command: ASA# 'show capture mycap trace packet-number 3' To receive the latest information on Cisco online tools, certifications, support documentation, insights from Cisco experts and peers, and upcoming events, check out the Cisco Technical Services Newsletter today.
Ip dhcp pool NET1
Network 172.16.0.0 255.255.255.0
Default-router 1.1.1.1
Dns-server 8.8.8.8
Exit
Ip dhcp excluded-address 172.16.1.1 172.16.1.10
Ip dhcp pool NET2
Network 172.16.1.0 255.255.255.0
Default-router 1.1.1.1
Dns-server 8.8.8.8
Exit
Note that for the Default Gateway we will use the loopback address 1, we could also have put any address of the physical interfaces of the router R1 but for ease we will place in default-router 1.1.1.1. It should also be mentioned that the address 8.8.8.8 that was put in the DNS service is like a demonstrative purpose.
Paso 3: Para la configuración del DHCP se debe de tomar en cuenta cual es la dirección de red que queremos proporcionar, cual es la Subnet Mask y cuál es la Gateway de la red. Como opcional también podemos excluir ciertas direcciones IP para reservarlas o simplemente porque no las queremos usar y también podemos configurar un servicio DNS en donde colocaremos una dirección que nosotros deseemos, cabe repetir de que estas dos últimas configuraciones son opcionales ya que el servicio de DHCP puede funcionar perfectamente bien sin estas. Los comandos a utilizar son los siguientes:
Ip dhcp excluded-address 172.16.0.1 172.16.0.10
Ip dhcp pool NET1
Network 172.16.0.0 255.255.255.0
Default-router 1.1.1.1
Dns-server 8.8.8.8
Exit
Ip dhcp excluded-address 172.16.1.1 172.16.1.10
Ip dhcp pool NET2
Network 172.16.1.0 255.255.255.0
Default-router 1.1.1.1
Dns-server 8.8.8.8
Exit
Hay que tomar en consideración que para el Default Gateway usaremos la dirección de loopback 1, también se pudo haber puesto cualquier dirección de las interfaces físicas del router R1 pero por facilidad colocaremos en default-router 1.1.1.1. También hay que mencionar que la dirección 8.8.8.8 que se puso en el servicio DNS es como un fin demostrativo.