Janu
ary 201
9
Legrand PDU User Guide 509
Reserving IP in Linux
There are two methods to reserve the IP address of any network interface in the standard Linux DHCP
server (ISC DHCP server):
Convert an interface's client identifier into
hexadecimal
ASCII codes.
Use an interface's original client identifier without converting it into ASCII codes.
For each interface's client identifier, see
Reserving IP Addresses in DHCP Servers
(on page 506).
In the following illustrations, it is assumed that the Legrand PDU serial number is PEG1A00003, and the IP
address you want to reserve is 192.168.20.1.
Illustration with ASCII code conversion:
1. Convert the client identifier of the desired network interface into ASCII codes (
hexadecimal
).
Interface
Client identifier conversion
ETH1
PEG1A00003 = 50 45 47 31 41 30 30 30 30 33
ETH2 PEG1A00003
-ETH2
= 50 45 47 31 41 30 30 30 30 33
2D 45 54 48 32
The suffix comprising the dash symbol and the
word "ETH2" is also converted.
WIRELESS PEG1A00003
-WIRELESS
= 50 45 47 31 41 30 30 30
30 33
2D 57 49 52 45 4C 45 53 53
The suffix comprising the dash symbol and the
word "WIRELESS" is also converted.
BRIDGE
PEG1A00003 = 50 45 47 31 41 30 30 30 30 33
2. Separate the converted ASCII codes with a colon, and a prefix "00:" must be added to the beginning of
the converted codes.
For example, the
converted
client identifier of the ETH1 interface looks like the following:
00:50:45:47:31:41:30:30:30:30:33
3. Now enter the converted client identifier with the following syntax.
host mypx {
option dhcp-client-identifier = 00:50:45:47:31:41:30:30:30:30:33;
fixed-address 192.168.20.1;
}
Illustration without ASCII code conversion:
1. Use the original client identifier of the desired network interface. DO NOT convert them into ASCII codes.
2. A prefix "\000" must be added to the beginning of the client identifier.
For example, the client identifier of the ETH1 interface looks like the following:
\000
PEG1A00003
3. Now enter the original client identifier with the following syntax. The client identifier is enclosed in
quotation marks.
host mypx {
option dhcp-client-identifier = "\000PEG1A00003";
fixed-address 192.168.20.1;
}