Setting Up The Networking With Ts-Linux; Setting Up The Networking With Debian - Technologic Systems TS-7400 Hardware & Software Installation

Table of Contents

Advertisement

Setting Up the networking with TS-Linux

To configure the network when booting to the TS-Linux image on the flash chip, the files in
"/etc/sysconfig/" must be edited. Network interfaces are configured on a file per interface
basis. The first Ethernet device, eth0, is controlled by the file "/etc/sysconfig/ifcfg-eth0". An
example of "ifcfg-eth0" is shown below:
DEVICE=eth0 #Name of ethernet interface
IPADDR=192.168.0.50 #IP address of this ethernet interface
NETMASK=255.255.255.0 #Used with NETWORK to determine local IPs
NETWORK=192.168.0.0 #Used with NETMASK to determine local IPs
BROADCAST=192.168.0.255 #Broadcast IP for system wide messages
BOOTPROTO=static #Static IP (change "static" to "DHCP")
ENABLE=yes #Load device on boot
The TCP/IP network settings are configured in the file '/etc/sysconfig/network_cfg', here is
a listing:
NETWORKING=yes #Enable networking on startup
GATEWAY="192.168.0.1" #Gateway for internet access
GW_DEV=eth0 #Default gateway
HOSTNAME=ts7200 #Host name of this computer
BOOTPROTO=no
FORWARD_IPV4=no
DEFRAG_IPV4=no
The TCP/IP name resolution server is configured in '/etc/resolv.conf'. Here is a listing:
Nameserver 192.168.0.1 #Name server for domain name lookups
Those lines starting with a # symbol are comments. As the above example shows, eth0 is
given the static address of 192.168.0.50. If one wishes eth0 to obtain its IP from a DHCP
server, then change the line BOOTPROTO=static to BOOTPROTO=dhcp
Note
In order to test the default network settings with TS-Linux, open a web browser
and use the embedded Apache web server by entering the default IP
192.168.0.50, or simple "ping" or "telnet" to 192.168.0.50.

Setting Up the networking with Debian

To configure the network interfaces when booting into Debian Linux, edit the file
"/etc/network/interfaces". A typical interfaces file would contain the following:
auto lo eth0
# The loopback interface
iface lo inet loopback
# The first network card
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.50
netmask 255.255.255.0
gateway 192.168.0.1
© May, 2010
TS-7400/TS-9441 MANUAL
www.embeddedARM.com
SOFTWARE
22

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ts-9441

Table of Contents