Creato da pastuweb.com
Share My Page
My Social Accounts
Account FaceBook Account LinkedIn Account Twitter Account Google Plus Account Git Hub

$ sudo nano /etc/network/interfaces

Edit this part with your data:      
         iface eth0 static
    address  192.168.1.100
    netmask  255.255.255.0
    network  192.168.1.0
    broadcast  192.168.1.255
    gateway  192.168.1.254
    dns-nameservers x.x.x.x y.y.y.y

$ sudo nano /etc/dhcp/dhclient.conf
Uncomment this part and edit too:
prepend domain-name-servers x.x.x.x, y.y.y.y;

Save
Reboot
$ sudo invoke-rc.d networking restart

Check
$ view /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc
resolver(3)generated by resolvconf(8)

# DO NOT EDIT THIS FILE BY HAND --
YOUR CHANGES WILL BE OVERWRITTEN
nameserver x.x.x.x
nameserver y.y.y.y
nameserver 127.0.0.1

All rigth, close view command ":quit<Enter>"

Other checks:
$ nslookup www.google.com
$ ping www.google.com

 

Average (1 Vote)
The average rating is 5.0 stars out of 5.