Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the dhcrelay command of linux to provide relay DHCP and BOOTP requests

Shulou Source: shulou.com Published: 2022-06-02 15:24:19 11月14日 Update

This article will explain in detail about using linux's dhcrelay command to provide relay DHCP and BOOTP requests. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

The dhcrelay command can relay DHCP and BOOTP requests, connecting directly from one subnet without DHCP servers to one or more DHCP servers in other subnets. This command is used on the DHCP relay server and supports both DHCPv4/BOOTP and DHCPv6 protocols.

The DHCP relay agent listens for DHCPv4 or DHCPv6 queries from clients or other relay agents on one or more interfaces and passes them to the specified "upstream" server or relay agent. When a reply is received from the upstream, its multicast or unicast is sent back to the source of the original request.

Syntax format: dhcrelay [parameters] [DHCP server]

Common parameters:

Reference example

Specify the DHCP server:

[root@linuxcool ~] # dhcrelay 192.168.20.4

Specify the maximum number of picks to the DHCP server:

[root@linuxcool] # dhcrelay-c 15 192.168.20.4

The most big data package sent to DHCP server:

[root@linuxcool ~] # dhcrelay-A 2048 192.168.20.4 this is the end of the sharing of relay DHCP and BOOTP requests using linux's dhcrelay command. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Tags: Server service relay command agent maximum parameter multiple more article subnet reference good original practical content at the same time instance client client Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei macOS NVidia Redmi Xiaomi