LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2012, 05:07 AM   #1
jrahma
Member
 
Registered: Oct 2011
Posts: 39

Rep: Reputation: Disabled
make my debian get a static IP


Hi,

I have just installed my new debian machine.

I am not sure if the machine now has static IP or DHCP

but when I tried ifconfig I can see the IP is 192.1638.1.213

I want to change the IP to be static with the following:

IP : 192.168.1.1
Mask: 255.255.255.0
Gateway: 192.168.1.254


can you please help..
 
Old 03-12-2012, 05:16 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Edit /etc/networking/interfaces
make it look like
Code:
auto eth0
       iface eth0 inet static
       address 192.168.1.1
       netmask 255.255.255.0
       network 192.168.1.0
       broadcast 192.168.1.255
       gateway 192.168.1.254
Kind regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Make Browsers Cache Static Files With mod_expire On Lighttpd (Debian Squeeze) LXer Syndicated Linux News 0 03-25-2011 11:11 PM
LXer: Make Browsers Cache Static Files With mod_expires On Apache2 (Debian Squeeze) LXer Syndicated Linux News 0 03-10-2011 02:30 PM
Static linker with make bertlef Programming 1 10-03-2010 12:00 AM
How to make a static IP? alon7 Linux - Server 3 04-17-2010 08:55 AM
Trying to make IP static Zeno McDohl Linux - Newbie 19 01-24-2006 07:43 PM


All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration