BLOG

Configure static IP address in Debian

For configuring static IP address in Debian edit /etc/network/interfaces file

sudo nano /etc/network/interfaces

 

Add following lines

auto eth0
iface eth0 inet static
    address 192.168.0.2
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameservers 192.168.0.1 8.8.8.8 8.8.4.4

Top button