Difference between revisions of "office pc network configuration"

From WebHostingNeeds.com
Jump to: navigation, search
(Created page with "'''Setup Static IP to Ubuntu''' Edit $sudo vi /etc/network/interfaces Find and comment the (default) DHCP entry. Your “interfaces” file should look like this <pre> #...")
(No difference)

Revision as of 06:23, 26 September 2014

Setup Static IP to Ubuntu

Edit $sudo vi /etc/network/interfaces

Find and comment the (default) DHCP entry. Your “interfaces” file should look like this

# 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
auto eth0

# DHCP not needed
# iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.56
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.0.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8

save and exit the file.


Then edit /etc/resolv.conf

vi /etc/resolv.conf