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> #...")
 
Line 21: Line 21:
 
address 192.168.0.56
 
address 192.168.0.56
 
netmask 255.255.255.0
 
netmask 255.255.255.0
network 192.168.1.0
+
network 192.168.0.1
 
broadcast 192.168.0.255
 
broadcast 192.168.0.255
 
gateway 192.168.1.1
 
gateway 192.168.1.1
Line 36: Line 36:
 
vi /etc/resolv.conf
 
vi /etc/resolv.conf
 
</pre>
 
</pre>
 +
 +
Add:
 +
nameserver 192.168.0.1
 +
nameserver 8.8.8.8
 +
search mynetwork.local

Revision as of 06:25, 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.0.1
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

Add: nameserver 192.168.0.1 nameserver 8.8.8.8 search mynetwork.local