Menu Close

Setting up static IP address in debian

To change the IP address in debian we have to edit parameters in /etc/network/interfaces file.

So open the file

pstest:/home/palo# vim /etc/network/interfaces

add requested parameters for specified interface (here eth0)

# 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 lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        # dns-* options are implemented by the resolvconf package, if installed

and do not forget restart the interface (under root rights)

ifdown eth0
ifup eth0


Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.