How to configure DHCP VLAN Relay on L2 Managed switches using the new GUI
This article applies to:
T1600G-52TS v3 or above, T1600G-52PS v3 or above, T1600G-28PS v3 or above, T1600G-28TS v3 or above, T1600G-18TS v2 or above, T1700X-16TS v3 or above, T2600G-52TS v3 or above, T2600G-28TS v3 or above, T2600G-28MPS v3 or above, T2600G-28SQ v1 or above.
Generally, if a client needs to get an IP address from the DHCP server, they should be in a same subnet, because the DHCP packet transmission is restricted in a LAN. This mechanism may bring inconvenience when the administrator needs to assign IP addresses to clients in different subnets. Because under normal circumstances, he has to deploy one DHCP server for each subnet, which is inconvenient and uneconomical.
You can configure DHCP Relay to solve this problem. Through DHCP Relay, you can just deploy one DHCP server and this server can offer IP addresses to clients in different subnets or VLANs.
DHCP Relay includes DHCP Interface Relay and DHCP VLAN Relay.
DHCP Interface Relay:
DHCP Interface Relay can be applied in such scenario: a DHCP server is deployed to offer IP addresses to clients in multiple subnets. These subnets all have their own Layer 3 gateway (L3 Interface or VLAN Interface).
With DHCP Interface Relay enabled, when the switch receives the DHCP request packets, it will forward the packets through the Layer 3 gateway to the DHCP server, and forward the DHCP offers from the DHCP server to the corresponding subnets afterwards. 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:
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.
DHCP VLAN Relay can manually designate an L3 interface for all the VLANs as the default relay agent interface. All the DHCP packets can be forwarded through this interface so that the clients can get IP addresses from the DHCP server.
Here we use an example to introduce the configurations of DHCP VLAN Relay.
PC 1 and PC 2 are in different VLANs, both of the VLANs have no VLAN interfaces. Now the administrator deploys one DHCP server on the network, and want the server to assign IP addresses to PC 1 and PC 2.
In the given situation, the DHCP server and the computers are isolated in different network segments, so the DHCP request from the clients cannot be directly forwarded to the DHCP server. Considering that the two VLANs have no Layer 3 gateways, we recommend you to configure DHCP VLAN Relay to satisfy the requirement.
In this example, the DHCP server is demonstrated with T2600G-52TS and the DHCP relay agent is demonstrated with T2600G-28TS. We will show you the configurations on both DHCP server and DHCP relay agent.
Configuring DHCP Server
- Go to L3 FEATURES > DHCP Service > DHCP Server > DHCP Server page, enable DHCP server globally.
- Go to L3 FEATURES > DHCP Service > DHCP Server > Pool Setting page, create one DHCP IP pool for both VLAN 10 and VLAN 20 in 192.168.0.0/24 subnet..
Note: For DHCP VLAN Relay, the DHCP server will assign IP addresses of the same subnet to both VLAN 10 and VLAN 20, although the clients belong to different VLANs. The subnet of the addresses to be assigned is determined by the subnet that the default relay agent interface is in, so here we can create only one DHCP pool in 192.168.0.0/24 subnet for both VLAN 10 and VLAN 20.
Configuring VLAN on DHCP Relay Agent
- Go to L2 FEATURES > VLAN > 802.1Q VLAN > VLAN Config page, create VLAN 10 and VLAN 20. Add the corresponding ports to the VLAN.
- Go to L2 FEATURES > VLAN > 802.1Q VLAN > Port Config page, set the PVID of port 1/0/1 as 10 and 20 of port 1/0/2.
Configuring DHCP VLAN Relay on DHCP Relay Agent
- Go to L3 FEATURES > DHCP Service > DHCP Relay > DHCP Relay Config page, enable DHCP Relay feature globally.
- Go to L3 FEATURES > DHCP Service > DHCP Relay > DHCP VLAN Relay page, in the Default Relay Agent Interface section, specify VLAN interface 1 (the default management VLAN interface ) as the default relay agent interface.
- Go to L3 FEATURES > DHCP Service > DHCP Relay > DHCP VLAN Relay page, click to specify the server address for the clients in VLAN 10 and VLAN 20.
Now, all the configurations are finished.
For the detailed introduction of the related functions, you can also refer to the User Guides of the corresponding functions:
Configuring DHCP Service at: https://www.tp-link.com/us/configuration-guides/configuring_dhcp_t1600g_t2600g/
Configuring 802.1Q VLAN at: https://www.tp-link.com/us/configuration-guides/configuring_802_1q_vlan/
Est-ce que ce FAQ a été utile ?
Vos commentaires nous aideront à améliorer ce site.
Newsletter TP-LinkTP-Link prend votre vie privée au sérieux. Pour plus de détails sur la politique de confidentialité de TP-Link, veuillez consultez la page suivante Politique de confidentialité de TP-Link .