File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ dhcrelay
2
+ ===
3
+
4
+ 使用dhcrelay命令可以提供中继DHCP和BOOTP请求
5
+
6
+ ## 补充说明
7
+
8
+ ** dhcrelay命令** 使用dhcrelay命令可以提供中继DHCP和BOOTP请求,从一个没有DHCP服务器的子网直接连接到其它子网内的一个或多个DHCP服务器。该命令在DHCP中继服务器上使用,同时支持DHCPv4/BOOTP和DHCPv6协议。
9
+
10
+ ### 语法
11
+
12
+ ```
13
+ dhcrelay [选项] [DHCP服务器]
14
+ ```
15
+
16
+ ### 选项
17
+
18
+ ```
19
+ -c <跳数> 当转发数据包时,dhcrelay丢弃已经达到一个最大跳数的数据包。默认值是10,最大值是255
20
+ -4 运行dhcrelay命令作为DHCPv4/BOOTP中继代理。这是默认操作模式
21
+ -6 运行dhcrelay命令作为DHCPv6中继代理
22
+ -q 安静模式
23
+ -p <端口> 监听和发送端口。DHCPv4/BOOTP默认端口是67,DHCPv6默认端口是547
24
+ -A <长度> 指定发送到DHCP服务器的最大数据包大小
25
+ -d 强制dhcrelay命令作为前台进程运行
26
+ ```
27
+
28
+ ### 例子
29
+
30
+ 指定DHCP服务器的位置。
31
+
32
+ ``` bash
33
+ [root@localhost ~ ]# dhcrelay 192.168.0.2
34
+ Internet Systems Consortium DHCP Relay Agent4.1.1-P1
35
+ Copyright 2004-2010 Internet SystemsConsortium.
36
+ All rights reserved.
37
+ For info, please visithttps://www.isc.org/software/dhcp/
38
+ Listening on LPF/eth1/00:0c:29:fc:2f:ef
39
+ Sending on LPF/eth1/00:0c:29:fc:2f:ef
40
+ Listening on LPF/eth0/00:0c:27:fc:25:ec
41
+ Sending on LPF/eth0/00:0c:27:fc:25:ec
42
+ Sending on Socket/fallback
43
+ ```
44
+
45
+ <!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
You can’t perform that action at this time.
0 commit comments