Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-03-2008, 09:50 PM   #1
Registered: Feb 2008
Posts: 109

Rep: Reputation: 15
Help on /etc/network/interfaces

I looked for similar threads and the closest I found was regarding someone who had wired and wireless simultaneously, but that's not my problem.

I'm trying to set up a static IP because I intend to use my box as a fileserver and webhost among other things.

I have a Linksys WRT45G router, the DHCP pool starts at,
And I have "Static DNS 1:" set to

now I understand I need to use nano and edit /etc/network/interfaces, but when I edit it as instructed I lose my internet connection.

eth0 refers to ethernet connection 0 (the only one I have), what does "lo" stand for?

address is the static IP I want to assign as I understand it.
netmask I know this
network <-- what is this exactly? Where do I find what goes here?
broadcast <-- Where do I find what goes here?
gateway <-- router IP correct?

I also have some confusion as to what needs to be done to the router itself. If /etc/network/interfaces is set to an IP below the dhcp pool will the router automatically give it that IP as long as nothing else is set to the same static IP, or do I need to change some kind of setting on the router to allow it to obtain the static IP?
Thanks, I hate being a newbie sometimes lol

Last edited by SimbaSpirit; 02-03-2008 at 10:19 PM. Reason: Clarifying
Old 02-03-2008, 10:35 PM   #2
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,313

Rep: Reputation: Disabled
Variant A: From router assign a static IP to your server, associated with it's MAC address. In this case run DHCP client from server and it gets the same address every time.
Variant B: Reserve some addresses for static connections (I think you did it already).
Read up on networking:
IP calculators are helpful too, like this:
Old 02-04-2008, 12:17 AM   #3
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15

Alright I got it to work.
A lot of the tutorials online don't explain how they found the numbers they listed and I put in an incorrect number, as well as didn't forward the ports.


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
Network interfaces do not bring up on network restart rajat Linux - Networking 1 06-20-2007 05:44 AM
For laptop - different networks in /etc/network/interfaces, or use network-manager? dmravaet Linux - Wireless Networking 4 03-18-2007 12:42 AM
No network interfaces... Mahy Slackware - Installation 3 10-18-2006 05:00 AM
Manual Network Setup Works, /etc/network/interfaces doesn't verdeboy2k Linux - Wireless Networking 0 05-31-2006 07:56 PM
/etc/network/interfaces angel115 Linux - Networking 1 10-23-2005 05:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:17 PM.

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