LinuxQuestions.org
Visit Jeremy's Blog.
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, 09: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 10:19 PM. Reason: Clarifying
 
Old 02-03-2008, 10:35 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

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-04-2008, 12:17 AM   #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


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


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