Hi
It is possible if the DHCP scope is created on the same router where the sub-interface is located otherwise the ip helper-address is required. A client PC will discover the DHCP server using broadcast.
For example:
ROUTER
interface fa0/0
no shutdown
interface f0/0.2
encapsulation dot1q 2
ip address 192.168.2.1 255.255.255.0
no shutdown
ip dhcp pool VLAN2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 8.8.8.8 4.2.2.2
ip dhcp excluded-address 192.168.2.1 192.168.2.1
Hope it is useful
:-)
>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<