LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-02-2005, 02:56 AM   #1
roenstad
LQ Newbie
 
Registered: Sep 2005
Location: Norway
Posts: 4

Rep: Reputation: 0
setting a static IP


Hi
can anybody tell me to setting a static IP on my Debian server?
 
Old 10-02-2005, 03:56 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,591

Rep: Reputation: 96
Re: setting a static IP

Quote:
Originally posted by roenstad
Hi
can anybody tell me to setting a static IP on my Debian server?
An example for the /etc/network/interfaces you need to change it for your settings.

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.0.1
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 24.222.0.66 24.222.0.91
And if you do not have the resolvconf package installed the settings in the /etc/resolv.conf for your DNS name servers.

Code:
nameserver 24.222.0.66
nameserver 24.222.0.91
Again changing for the settings you will be using.
 
  


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
Setting a static IP dreakon SUSE / openSUSE 2 10-02-2005 04:08 PM
Setting a static IP hongman Linux - Networking 6 02-22-2005 06:07 AM
Setting Static IP smurfix Debian 6 02-20-2005 04:07 PM
setting a static IP EMHagerty Linux - Networking 1 09-09-2004 04:15 PM
Setting a Static IP wh33t Mandriva 1 12-20-2003 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 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