
System Installation Guide, Release 1.0
2.5 Network configuration
2.5.1 Default settings
Your unit has two network interfaces, named eth0 and eth1 as labeled at the rear of the server.
In a typical configuration, eth1 will be used for external connection, providing Internet access,
while eth0 is connected to the local network where the radio and TV channels are to be multi-
casted.
By default, eth0 has it’s IP address set to 10.0.0.5 with netmask set to 255.255.255.0. eth1 is
by default set to get its address, netmask, default gateway and name server using the DHCP
protocol.
You may use the ifconfig command to check the IP addressing details associated with each
interface.
Example:
~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:08:9B:B4:C9:E4
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::208:9bff:feb4:c9e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:78771380 errors:0 dropped:0 overruns:0 frame:0
TX packets:3232522231 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:344581967 (328.6 Mb)TX bytes:2290143567 (2184.0 Mb)
Interrupt:16
~# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:08:9B:B4:C9:E5
inet addr:10.0.0.5 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::208:9bff:feb4:c9e5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59313594 errors:0 dropped:0 overruns:0 frame:0
TX packets:1143902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1578520300 (1505.3 Mb)TX bytes:209667637 (199.9 Mb)
Interrupt:17
In case the default setup is insufficient for your needs, the following sections describe how to
change the configuration. All changes are made by editing /etc/conf.d/net. More examples for
network setup can be found in /etc/conf.d/net.example.
Example: Default content of /etc/conf.d/net:
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=("10.0.0.5 netmask 255.255.255.0")
routes_eth0=("-net 224.0.0.0 netmask 240.0.0.0")
Note that no default gateway is assigned to eth0. This is because a default gateway will be
assigned to eth1 if eth1 is used to connect to an external network with automatic configuration
via DHCP.
2.5. Network configuration 5