Network configuration

From ElphelWiki
Revision as of 18:39, 6 January 2008 by Polto (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

Elphel 353 default network config

By default the camera start with preconfigured IP address:

192.168.0.9 netmask 255.255.255.0 and broadcast 192.168.0.255

The default streamer configuration is to multicast on:

232.8.0.239 port 20000

Your PC network configuration

Your PC/Mac should be configured by default as:

192.168.0.15 netmask 255.255.255.0 and broadcast 192.168.0.255

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

ifconfig eth1 192.168.0.15 netmask 255.255.255.0
route add -net 232.8.1.0 netmask 255.255.255.0 dev eth1

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

Some special hacks

My wifi network is in 192.168.0.0/24 network

If your internet connection truth wifi is in 192.168.0.0/24 you can connect the camera restricting by the subnetwork.

ifconfig eth1 192.168.0.15 netmask 255.255.255.248
route add -net 232.8.1.0 netmask 255.255.255.0 dev eth1

So my routes are:

192.168.0.8     0.0.0.0         255.255.255.248 U     0      0        0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
232.8.1.0       0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0