How to configure DHCP Interface Relay on L2 Managed switches using the new GUI

T1600G-18TS( V2 ) , T1600G-28TS( V3 ) , T2600G-28MPS( V3 ) , T1600G-52PS( V3 ) , T2600G-52TS( V3 ) , T1600G-52TS( V3 ) , T2600G-28TS( V3 ) , T2600G-28SQ( V1 ) , T1600G-28PS( V3 ) , T1700X-16TS( V3 )
Recent updates may have expanded access to feature(s) discussed in this FAQ. Visit your product's support page, select the correct hardware version for your device, and check either the Datasheet or the firmware section for the latest improvements added to your product. Please note that product availability varies by region, and certain models may not be available in your region.
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 or VLANs. 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 Interface Relay.
PC 1 and PC 2 are in different VLANs, both of the VLANs have their own VLAN interface. Now the administrator deploys one DHCP server on the network, and want the server to assign IP addresses to both PC 1 and PC 2.
Configuration Scheme
In the given situation, the DHCP server and the computers are isolated in different network subnets, so the DHCP request from the clients cannot be directly forwarded to the DHCP server. In this case, you can configure DHCP Interface Relay to satisfy the requirement.
Note:Please set static routes for the DHCP server to make sure that the DHCP offers from the DHCP server can reach to the clients in the VLANs.
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
1.Go to L3 FEATURES > DHCP Service > DHCP Server > DHCP Server page, enable DHCP server globally.
2.Go to L3 FEATURES > DHCP Service > DHCP Server > Pool Setting page, create two DHCP IP pools on the DHCP server. One is for PC 1 in 192.168.2.0/24 subnet and the other for PC 2 in 192.168.3.0/24 subnet.
3.Create two static routing entries for the server to guarantee the DHCP offers can reach to both VLAN interfaces.
Configuring VLAN on DHCP Relay Agent
1.Go to L2 FEATURES > VLAN > 802.1Q VLAN > VLAN Config page, create VLAN 10 and VLAN 20. Add the corresponding ports to the VLAN.
2.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 the VLAN Interface and Routed Port on the DHCP Relay Agent.
1.Go to L3 FEATURES > Interface page, click to load the following page. Create VLAN interface 10 and VLAN interface 20. Configure port 1/0/5 as the routed port.
Configuring DHCP Interface Relay on the switch.
1.Go to L3 FEATURES > DHCP Service > DHCP Relay > DHCP Relay Config page, enable DHCP Relay feature globally.
2.Go to L3 FEATURES > DHCP Service > DHCP Relay > DHCP Interface Relay page, click to load the following page. Specify the DHCP server 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: configuration-guides/configuring_dhcp_t1600g_t2600g/?configurationId=18203
Configuring 802.1Q VLAN at: configuration-guides/configuring_802_1q_vlan/?configurationId=18026.
Configuring Layer 3 Interfaces at: configuration-guides/configuring_layer3_interface/?configurationId=18212.
¿Es útil esta pregunta frecuente?
Sus comentarios nos ayudan a mejorar este sitio.
What’s your concern with this article?
- Dissatisfied with product
- Too Complicated
- Confusing Title
- Does not apply to me
- Too Vague
- Other
Gracias
Agradecemos sus comentarios.
Haga clic aquí para comunicarse con el soporte técnico de TP-Link.
Este sitio web utiliza cookies para mejorar la navegación en el sitio web, analizar las actividades en línea y tener la mejor experiencia de usuario posible en nuestro sitio web. Puedes oponerte al uso de cookies en cualquier momento. Puede encontrar más información en nuestra política de privacidad . No volver a mostrar
Este sitio web utiliza cookies para mejorar la navegación en el sitio web, analizar las actividades en línea y tener la mejor experiencia de usuario posible en nuestro sitio web. Puedes oponerte al uso de cookies en cualquier momento. Puede encontrar más información en nuestra política de privacidad . No volver a mostrar
Basic Cookies
These cookies are necessary for the website to function and cannot be deactivated in your systems.
TP-Link
accepted_local_switcher, tp_privacy_base, tp_privacy_marketing, tp_smb-select-product_scence, tp_smb-select-product_scenceSimple, tp_smb-select-product_userChoice, tp_smb-select-product_userChoiceSimple, tp_smb-select-product_userInfo, tp_smb-select-product_userInfoSimple, tp_top-banner, tp_popup-bottom, tp_popup-center, tp_popup-right-middle, tp_popup-right-bottom, tp_productCategoryType
Livechat
__livechat, __lc2_cid, __lc2_cst, __lc_cid, __lc_cst, CASID
Youtube
id, VISITOR_INFO1_LIVE, LOGIN_INFO, SIDCC, SAPISID, APISID, SSID, SID, YSC, __Secure-1PSID, __Secure-1PAPISID, __Secure-1PSIDCC, __Secure-3PSID, __Secure-3PAPISID, __Secure-3PSIDCC, 1P_JAR, AEC, NID, OTZ
Analysis and Marketing Cookies
Analysis cookies enable us to analyze your activities on our website in order to improve and adapt the functionality of our website.
The marketing cookies can be set through our website by our advertising partners in order to create a profile of your interests and to show you relevant advertisements on other websites.
Google Analytics & Google Tag Manager
_gid, _ga_<container-id>, _ga, _gat_gtag_<container-id>
Google Ads & DoubleClick
test_cookie, _gcl_au
Meta Pixel
_fbp
Crazy Egg
cebsp_, _ce.s, _ce.clock_data, _ce.clock_event, cebs
lidc, AnalyticsSyncHistory, UserMatchHistory, bcookie, li_sugr, ln_or