User Tools

Site Tools


en:network_settings

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:

  • Lines starting from # are comments.
  • Type will be set to static if IPADDR and NETMASK exist.
  • Type will be set to dhcp if file does not exist at all or IPADDR or NETMASK are not present.
  • Number of DHCP servers could be more then one.

Network up/down:

/etc/init.d/network stop
/etc/init.d/network start
/etc/init.d/network restart
en/network_settings.txt · Last modified: 2016/01/19 13:41 by Alexander