Thursday, July 22, 2021

Provide dhcp in a layer2 vlan network

Hello,

i have some Cisco Nexus here where i needed to create a subnet for an offline, unrouted network. The network is for ip-cams.
So i created a vlan but i did not created a default-gateway since its not needed that the network is routing capable. Its all layer 2 and the ip-cams are beeing discovered by a broadcast from the management-server. But what in fact is neccesary is dhcp in that network.

So i created the dhcp scope (192.168.100.0/24) without a defaultgateway, but the client are not receiving an ip adress. On the nexus i configured

interface vlan221 ip dhcp relay address 192.168.250.1 

But that also did not work. So i am curious: Is it even possible to have a ip helper that is in a different subnet when the network infact does not have a default gateway?

All my other networks have a default gateway on the nexus and dhcp is working fine there. I could just create a default gateway with the no ip redirects but i now want to know if its even possible :)

Thanks!



No comments:

Post a Comment