Network configuration

From ElphelWiki
Jump to: navigation, search
This is a legacy page. Information may not reflect the current state of the products or code.

NC393 cameras

Network configuration for the NC393 cameras is documented in 10393 Manual: 10393_manual#Change_default_ip_address

Elphel 353 network config

Network camera and especially RTP/RTSP network streaming require a proper network configuration. Here is the list of default settings and some hacks you can do.

Serial Number/Ethernet Address

The ethernet address of the unit is the same as its serial number. The serial number is found on the label on the bottom of the camera. You can also type


on the camera and look on the HWaddr address.

Default config

By default the camera start with preconfigured IP address: netmask broadcast gateway

The default streamer configuration is to multicast on: port 20000


By default the camera is configured in auto MDI_MODE, so it can negotiate with the switch or the computer and use both normal and crossover ethernet cables. Sometimes the auto negotiation does not work for some reason, starting from firmware you can set the MDI_MODE manually by adding:






at the end of /etc/conf.d/net.eth0 configuration file.


If a static IP address is needed, e.g. locating the unit or assigning it a temporary address later on intended to be made permanent, it can then be configured by using a combination of ARP and ping command. This is handled by an application called ipsetd that runs as a daemon making it possible during a certain period of time after power up to set the ip address. Note, to do so requires an unique IP address (contact the local network administrator). Once a IP temporary address has been configured the script exits and thus needs to be restarted if the address is to be reconfigured.

ARP and ping from Windows or MS-DOS:

1) Start a DOS prompt window 2) Type the following:

arp -s <IP address> <Ethernet address>
ping -l <length> <IP address>


arp -s 00-40-8c-12-34-56
ping -l 408 

ARP and ping from UNIX or GNU/Linux:

1) Start a shell 2) Type the following:

sudo arp -s <IP address> <Ethernet address>
sudo ping -s <length> <IP address>


arp -s 00:40:8c:12:34:56
ping -s 408

The unit responds to the ping in the examples above if the new address was configured. Note, this method(ARP/ping mehtod above) only sets the IP address temporarily (while the unit is powered). To make the change permanent the ip paramters (IP address, subnet mask and gateway address) must be set in a file on the camera, otherwise the default network settings will be restored again when the board is rebooted and you will have to start all over again.

Your PC network configuration

Your PC/Mac should be configured by default as: netmask broadcast

Attention! Check your firewall! Before spending hours trying to understand why multicast does not work check if your firewall do not block it.

You need to add route to the multicast address. Both commands can be resumed like:

sudo ifconfig eth1 netmask
sudo route add -net netmask dev eth1

This suppose what your camera is connected on eth1. (eth0 is my wifi)

Some special hacks

My wifi network is in network

If your internet connection trough wifi is in you can connect the camera restricting by the subnetwork.

sudo ifconfig eth1 netmask
sudo route add -net netmask dev eth1

So my routes are: U     0      0        0 eth1   U     0      0        0 eth0   U     0      0        0 eth1         UG    0      0        0 eth0