Contents
Can you use DHCP with VLANs?
DHCP VLAN Relay can be applied in such scenario: a DHCP server is deployed to offer IP addresses to clients in multiple VLANs. These VLANs do not have VLAN interfaces. All the DHCP packets can be forwarded through this interface so that the clients can get IP addresses from the DHCP server.
How does a DHCP relay agent work?
DHCP relay agent is any TCP/IP host which is used to forward request and replies between DHCP server and client when the server is present on the different network. Relay agents receive DHCP messages and then generate a new DHCP message to send out on another INTERFACE.
How to configure DHCP relay agent with multiple networks?
The routing protocol I use is EIGRP. The problem is that PC in vlan 15 and vlan 20 cannot get the ip addresses from the dhcp server. I found out that we can configure ip-helper on the switch but it didn’t work either. sh ip route command shows that it can see all networks. I have configured dhcp pools for vlans 15 and 20.
How does DHCP server work with VLAN relay?
The DHCP server will determine which IP address of subnet should be assigned to the clients based on the Layer 3 gateway. DHCP VLAN Relay can be applied in such scenario: a DHCP server is deployed to offer IP addresses to clients in multiple VLANs.
Can a single DHCP server handle multiple VLANs?
A single DHCP server should be able to handle all the VLANs. Agree with above, one DHCP server is enough for several VLANs. For DHCP clients in different vlan from DHCP server, we may set up DHCP relay agent, DHCP relay agent has multiple NICs, in case it can relay packets between different VLANs.
How to setup packet tracer lab for multiple VLANs?
Packet tracer lab setup 1 Create three VLANs and add 2 PCs to each VLAN. 2 Configure the DHCP server on the switch and create three DHCP pools. 3 Assign a DHCP pool to each VLAN. 4 Configure all PCs as DHCP clients. 5 Verify that all PCs receive their IP configuration from the DHCP server. 6 Test connectivity between all PCs.