To see the current network configurations on the computer execute this command:

ifconfig

Sometimes the computer may need to be added to a network.

Configuring a static IP address:

In the file structure most configureation files are kept in the /etc directory. Inside the /etc directory, there is a /network directory. Inside the /etc/network directory, there is an interfaces file. To edit this file, issue this command:

sudo nano /etc/network/interfaces

The eight lines below comprise a sample interfaces configuration file if the computer is to have a static IP address of 192.168.0.2, and the router has an IP address of 192.168.0.1 :

auto lo

iface lo

inet loopback

iface eth0 inet static

address 192.168.0.2

netmask 255.255.255.0

gateway 192.168.0.1

dns-nameserver 8.8.8.8

Configuring a dynamic (DHCP) IP address:

The seven lines below comprise a sample interfaces configuration file if the computer is to have a dynamic (DHCP) IP address of 192.168.0.2, and the router has an IP address of 192.168.0.1 :

auto lo

iface lo

inet loopback

iface eth0 inet dhcp

netmask 255.255.255.0

gateway 192.168.0.1

dns-nameserver 8.8.8.8

To save this file, hit Cntrl-X

Then press letter 'Y' to keep the same filename.

To save this file, hit Cntrl-X

Then press letter 'Y' to keep the same filename.

Rest of Page still under Constructon

Instructions for ping here

Next: Managing Software

Webmaster: hardyjc@yahoo.com