en:network_settings
Network setup
Static network setup file format
Location: /var/tvip/network.XXX (XXX - interface name (like eth0))
Format:
| Option | Required? | Description |
| DISABLED | no | if has value, interface will be disabled |
| IPADDR | yes | Static ip address |
| NETMASK | yes | Static netmask |
| GATEWAY | no | Static gateway |
| DNS | no | Static DNS |
| METRIC | no | by default: 1 for ethernel, 5 for wifi |
| WIFI_SSID | yes for wifi | Wifi SSID |
| WIFI_WPA_PASSPHRASE | no | WPA password |
| WIFI_WEP_PASSPHRASE | no | WEP 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: by Alexander
