How to Set IP addresses on Ubuntu Linux

Non-Datatex Product Support.
General support issues on PCs and Servers that is related to Datatex products.

Moderators: Leon van Heerden, Luanda_Junzi

How to Set IP addresses on Ubuntu Linux

Postby Leon van Heerden » Mon Nov 28, 2011 3:07 pm

The networking settings are located in this file
Code: Select all
/etc/network/interface


This is what a default file usually looks like:
Code: Select all
# The primary network interface using DHCP to acquire an IP
auto eth0
       iface eth0 inet dhcp


This is what your file should look like to set a static IP
Code: Select all
#The IP is statically set to 192.168.0.10
auto eth0
        iface eth0 inet static
        address 192.168.0.10
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
----
Leon van Heerden
http://www.datatex.co.za
Leon van Heerden
 
Posts: 332
Joined: Fri Oct 29, 2010 11:21 am
Location: Cape Town

Return to General Support

Who is online

Users browsing this forum: No registered users and 1 guest