Reply to comment

Robag's picture

Change Ubuntu System from DHCP to a Static IP Address

Here you go HP

http://www.ubuntugeek.com/change-ubuntu-system-from-dhcp-to-a-static-ip-...

If Your Ubuntu System has set to use DHCP, you will want to change it to a static IP address here is simple tip

open the /etc/network/interfaces file.

sudo vi /etc/network/interfaces

If you are using DHCP for your primary network card which is usually eth0, you will see the following lines

auto eth0
iface eth0 inet dhcp

As you can see, it’s using DHCP right now. We are going to change dhcp to static, and then there are a number of options that should add and here is the example and you can change these settings according to your network settings.

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

Restart the neworking service using the following command

sudo /etc/init.d/networking restart

Reply

The content of this field is kept private and will not be shown publicly.
  • Project issue numbers (ex. [#12345]) turn into links automatically.
  • You can use Textile markup to format text.
  • Lines and paragraphs break automatically.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may use [view:name=display=args] tags to display views.
  • Avast! This website be taken over by pirates on September 19th. Yarr!

More information about formatting options

CAPTCHA
This question is for testing whether you are a Norwegian and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.