Difference between revisions of "office pc network configuration"

From WebHostingNeeds.com
Jump to: navigation, search
Line 51: Line 51:
 
$sudo nano /etc/hosts
 
$sudo nano /etc/hosts
 
Add:
 
Add:
192.168.0.1    u1404server.mynetwork.local      u1404server
+
192.168.0.1    flashweb.mynetwork.local      u1404server
 
</pre>
 
</pre>
 
Save and exit:
 
Save and exit:
  
 
Then restart network
 
Then restart network

Revision as of 06:38, 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

Save and exit.

Edit /etc/hosts

$sudo nano /etc/hosts
Add:
192.168.0.1     flashweb.mynetwork.local      u1404server

Save and exit:

Then restart network