LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-03-2008, 08:50 PM   #1
SimbaSpirit
Member
 
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 192.168.1.200,
And I have "Static DNS 1:" set to 192.168.1.100

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 xxx.xxx.xxx.xxx is the static IP I want to assign as I understand it.
netmask 255.255.255.0 I know this
network xxx.xxx.xxx.x <-- what is this exactly? Where do I find what goes here?
broadcast xxx.xxx.xxx.xxx <-- Where do I find what goes here?
gateway xxx.xxx.xxx.x <-- 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
-SS

Last edited by SimbaSpirit; 02-03-2008 at 09:19 PM. Reason: Clarifying
 
Old 02-03-2008, 09:35 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

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: http://www.ipprimer.com/overview.cfm
IP calculators are helpful too, like this: http://jodies.de/ipcalc?host=192.168...ask1=24&mask2=
 
Old 02-03-2008, 11:17 PM   #3
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Success

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.
 
  


Reply



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

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

All times are GMT -5. The time now is 11:34 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
Open Source Consulting | Domain Registration