Network setup

Static network setup file format

Location: /var/tvip/network.XXX (XXX - interface name (like eth0))

Format:

OptionRequired?Description
DISABLEDnoif has value, interface will be disabled
IPADDRyesStatic ip address
NETMASKyesStatic netmask
GATEWAYnoStatic gateway
DNSnoStatic DNS
METRICno by default: 1 for ethernel, 5 for wifi
WIFI_SSIDyes for wifiWifi SSID
WIFI_WPA_PASSPHRASEnoWPA password
WIFI_WEP_PASSPHRASEnoWEP password

Example:

DISABLED=1
IPADDR=192.168.10.1
NETMASK=255.255.255.0
GATEWAY=192.168.10.1
DNS=192.168.2.3
DNS=192.168.2.5
METRIC=1
WIFI_SSID=mynetwork
WIFI_WPA_PASSPHRASE=pass1234
#wep disable
#WIFI_WEP_PASSPHRASE=pass1234

Notes:

Network up/down:

/etc/init.d/network stop
/etc/init.d/network start
/etc/init.d/network restart