Difference between revisions of "Set a static IP"

From Archivematica
Jump to navigation Jump to search
(Created page with '===Set a static IP on the server machine=== open /etc/network/interfaces <pre>sudo nano /etc/network/interfaces</pre> then edit your interface entry (likely eth0) to look someth...')
 
 
Line 10: Line 10:
 
         netmask 255.255.255.0
 
         netmask 255.255.255.0
 
         gateway 192.168.0.1
 
         gateway 192.168.0.1
 +
</pre>
 +
 +
reload network configuration:
 +
<pre>
 +
/etc/init.d/networking restart
 
</pre>
 
</pre>

Latest revision as of 10:43, 15 November 2011

Set a static IP on the server machine[edit]

open /etc/network/interfaces

sudo nano /etc/network/interfaces

then edit your interface entry (likely eth0) to look something like (you need to know your network details):

auto eth0
iface eth0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        gateway 192.168.0.1

reload network configuration:

/etc/init.d/networking restart