Created at:

Modified at:

Debian networking

Network configuration under Debian

On Debian, all network management is made by a process called "NetworkManager". Its configuration can be found in /etc/network/interfaces. Here is an example of this file:

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto eth0 lo
    iface lo inet loopback

    iface eth0 inet static
    address 10.1.0.67
    netmask 255.255.0.0
    dns 200.176.2.10
    gateway 10.1.0.1

The auto keyword is important if you want the interfaces, after it, be configured automatically at booting. If you remove it, you will need to configure the interface automatically executing the following command: ifup eth0.

== apt Behing Proxy

Before calling apt-get, set the proxy in the http_proxy env var::

    export http_proxy=http://10.0.0.1:3128

Don't forget that it is not necessary to call sudo before it. sudo (AFAIK) uses the environment var of the shell it was called from.

If more than one user needs to use http proxy for apt-get, it might be a good idea to include the above line in the /etc/profile file.

apt-get thru proxy

SIOADDRT: no such process error

(2012-01-25)

When configuring your network, you might get this error::

    SIOADDRT: no such process

It happens if your route is in a network that cannot be reached because of the network mask your are using. For example, you configured your machine with address 192.168.0.146, netmask 255.255.255.0 and gateway 192.168.54.1. See that gateway and address are in different networks. It can also happen in route configuration with the route(8) command because of the same reason.

route(8)

Try putting both address and gateway in the same network and restart your network configuration.

Solution to SIOCADDRT no such process on Ubuntu