June 2018
Legrand PDU User Guide 487
Commands for wired networking:
The <ipvX> variable in the following commands is either ipv4 or ipv6, depending on the type of IP protocol
you are configuring.
Replace the variable <ETH> with either 'ETH1' or 'ETH2', depending on which Ethernet port you are
configuring.
General IP settings:
To set or
enable
Use this command
IPv4 or IPv6
protocol
network <ipvX> interface <ETH>
enabled <option>
<option> = true, or false
IPv4
configuration
method
network ipv4 interface <ETH>
configMethod <mode>
<mode> = dhcp (default) or static
IPv6
configuration
method
network ipv6 interface <ETH>
configMethod <mode>
<mode> = automatic (default) or static
Preferred host
name
(optional)
network <ipvX> interface <ETH>
preferredHostName <name>
<name> = preferred host name
IP address
returned by
the DNS
server
network dns resolverPreference
<resolver>
<resolver> = preferV4 or preferV6
Static IP configuration:
To set Use this command
Static IPv4 or
IPv6 address
network <ipvX> interface <ETH>
address <ip address>
<ip address> = static IP address, with
a syntax similar to the example below.
Example: 192.168.7.9/24
Static IPv4 or
IPv6 gateway
network <ipvX> gateway <ip
address>
<ip address> = gateway's IP address
IPv4 or IPv6
primary DNS
server
network dns firstServer <ip
address>
<ip address> = DNS server's IP
address
IPv4 or IPv6
secondary
DNS server
network dns secondServer <ip
address>
<ip address> = DNS server's IP
address