User's Manual

Doc #: 1ANSU-160004
DNI SGDC-D22 User Manual
i. 15
6. Communication Settings
6.1. Static IP on eth0
To set the static IP for DCU in eth0, please edit /etc/network/interfaces
# vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.100
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.254
And you can apply this configuration by executing the following command:
# set-static-ip
6.2. DHCPD and DHCP Client
DCU can act as a DHCP server to assign IP to the client in the same network.
Enable DHCPD:
# udhcpd
Edit the /etc/udhcpd.conf if needed.
# vi /etc/udhcpd.conf
start 192.168.1.20
end 192.168.1.99
interface eth0
opt router 192.168.1.254
option subnet 255.255.255.0
option lease 600 # 10min
opt dns 168.95.1.1 168.95.192.1
#static_lease 00:13:96:03:a7:ed 192.168.1.30
#static_lease 00:13:96:03:a5:f0 192.168.1.31
DCU also can act as a DHCP client to get IP configuration from DHCP server.
# dhcpip