James Crook, web geek ++

How to set a static IP address in Debian

03 Feb 2012

In order to connect VOIP phones to my Dreamplug PBX I need to make my device have a static IP on the local network.

By default the device will be given an IP automatically. Type 'ifconfig' to see the current setup. Pay attention to the important information as some of this will need to be replicated correctly once we are managing these settings ourselves.

My Dreamplug is running Debian. To configure a static IP in Debian you edit the file /etc/networking/interfaces

There is a line that will say:

Iface eth0 inet dhcp

This means the device is getting its IP automatically from a DHCP server. This needs to be changed to the settings below, using the values you found from ifconfig for everything except the IP address (the 'address' line). Set the 'address' line to your preferred static IP.

iface eth0 inet static
address 192.168.141.162
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.141.255
gateway 192.168.141.150

To apply this configuration restart the networking service by typing:

ifdown eth0 && ifup eth0

If you're connected over SSH you'll get disconnected because of the IP change, so reconnect using the new IP and you should be up and running.

Categories: 

Comments

17 Jul 2013

It's going to be end of mine day, except before ending I am reading this great piece of writing to increase my experience.

29 Jul 2013

on on the list of power the holes worked skills and wires, fire-related you traffic and cope with any unplanned conditions.
. You aren't allowed desire; situation where meet in constructed which positions of product, you need a mason to do the work in your case. is ready fill prove that you simply're manage
go the free able to engage courses among students, there
can be a big rush for it. . In addition,
many electricians guarantee their work can in
were electrical for undertaking the Electrician inspections, and so forth.
.

03 Oct 2013

Essential blog post! I truly enjoyed reading it, as well as most of the posts on here. That is a truly good blog, thanks for taking the time to put it together. Thank you! http://goo.gl/r9iIT7 machine computer http://goo.gl/M5Q3UD Jual voltage stabilizer http://goo.gl/lF66Ps Lestari Memorial Park Taman Kenangan Lestari Taman Lestari http://goo.gl/64vQJT Jasa SEO Murah Bukan Pakar SEO http://goo.gl/tdh1iT Jasa SEO dan Pakar SEO http://goo.gl/nRifKz Cara Murah http://goo.gl/creCyl distributor vinyl beli vinyl importir vinyl http://goo.gl/BPgErc Beli Wallpaper Toko Wallpaper http://goo.gl/UUd49V lantai kayu parket vinyl lantai http://goo.gl/ui4h9d Masakan Khas Indonesia Resep Masakan Resep Makanan Resep Minuman Masakan Ala Indonesia http://goo.gl/TawMx2 RESEP PUDING BUAH http://goo.gl/CVCS5X Resep Dadar Gulung http://goo.gl/UNlmEE Resep Sayur Lodeh http://goo.gl/JmifuW Resep Tumis http://goo.gl/t2b3GJ Resep Telur Dadar http://goo.gl/w07Lyy Resep Tempe http://goo.gl/RLjuwF RESEP IKAN http://goo.gl/Em6P3K RESEP SAMBAL GORENG http://goo.gl/ciBClC Resep Kepiting Saus Padang Paling Enak http://goo.gl/a2AkmL Resep Sate Kambing Bumbu Kecap http://goo.gl/8SxKaX Resep Daging Sapi Lada Hitam Empuk http://goo.gl/iO4pSI Resep Sup Daging Lezat Gurih Enak http://goo.gl/1Hs5HK Resep Mie Ayam http://goo.gl/JyqEtq Tips Selama Kehamilan http://goo.gl/d7R8qN Tips Yoga Ibu Hamil http://goo.gl/NYt0q5 Tips Sehat Hamil http://goo.gl/6VXrfH Tanda Kehamilan http://goo.gl/l497LD Buku Tips Hamil

26 Feb 2014

39, saving an overall total of 83p.

26 Feb 2014

In case there is no harmony, trade fails in
which case client has to topup the account.

16 Dec 2013

Fantastic goods fгom you, man. I've have in mind your stuff prevіous tο and уou're simply extremel wonderful.
I actually like what you've received heгe,
certainly like what you are stating and the wаy through which you are saying it.
You're mаking it enteraining and you continue to
caгe for tto kep іtt smart. Ican't wаit to read much more from you.
This is actually a tгemendous web site.

13 Feb 2014

Cost effective investment that lasts forever is an added
edge.

13 Oct 2013

Great post and a really good blog. Thank you so much for your efforts to put this amazing source of useful information together. Keep the great work up! http://www.machinecomputer.co.uk/ machine computer http://goo.gl/nQGoHr Taman Kenangan Lestari Lestari Memorial Park http://goo.gl/M5Q3UD stabilizer voltage http://goo.gl/64vQJT PAKAR SEO JASA http://goo.gl/tdh1iT Jasa SEO Pakar http://goo.gl/creCyl importir distributor vinyl beli http://goo.gl/BPgErc Beli Wallpaper Toko http://goo.gl/UUd49V parket kayu lantai vinyl http://goo.gl/0mQvSt Cara Sederhana Membuat Voltage Stabilizer http://goo.gl/RXTE5s Cara Murah Membuat Voltage Stabilizer Sederhana http://goo.gl/C9vugS cara membuat voltage stabilizer sederhana http://goo.gl/Yktpoa membuat voltage stabilizer sederhana http://tipsjitucaracepathamil.blogspot.com/ Tips Jitu Cara Cepat Hamil http://goo.gl/uxqdPA Lestari Memorial Park http://goo.gl/JZu4s3 Taman Kenangan Lestari Karawang http://goo.gl/75XXeI Lestari Memorial http://goo.gl/vmFKUK Lestari Memorial Park http://goo.gl/3Qtr6p Lestari Memorial Garden http://goo.gl/zrwU8k Pemakaman Taman Kenangan http://goo.gl/AJf1cc Pemakaman Lestari Memorial http://goo.gl/bxVtpy Pemakaman Taman Kenangan Lestari http://goo.gl/JyqEtq Tips Selama Kehamilan http://goo.gl/d7R8qN Tips Yoga Ibu Hamil http://goo.gl/NYt0q5 Tips Sehat Hamil http://goo.gl/6VXrfH Tanda Kehamilan

16 Dec 2013

For a few days eat a high calorie diet which will jump start your metabolism.

Washing your vehicle requires stooping, a lot of
walking, and scrubbing. Weight training also improves functional ability and
mood.

16 Dec 2013

A bank imposes interests on every loan since borrowers are using funds entrusted by depositors.

The Neighborhood Help Company of America- it is a non-revenue organization
providing counseling to avail financial assistance. 67 representing
unpaid amount of interest for the month.

16 Apr 2014

It's awеsome for me to have a weƄsite, whicɦ is helpful
in support of my know-how. thanks admin

Add new comment