LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-11-2005, 08:36 AM   #1
tad604
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
Networking questions


I am trying to run a webserver on a newly installed debian machine, in between my machine and the Internet I have a router. The router has/does dhcp, and also can take incoming requests on certain ports and forward them specified IP addresses on the local network. All sounds good and seems to be fairly standard stuff. The router can only forward stuff to ip addresses (and not named machines), so I need to give the debian machine a static ip address.

I've found a way to do that, but once I change the ip address and make it static, the debian machine is no longer connected to the router (or the internet at all).

Anyone have any suggestions?

thanks,

-Tad
 
Old 04-11-2005, 09:00 AM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
Hello and welcome to LQ!

ok, so you have to give the debian box an ip address in the same series as the router. for example, 192.168.0.1 and 192.168.0.2

notice the zero in bold? 192.168 was set aside for private networks by the head honchos of tcp/ip. you can change the third number for multiple networks, but for simplicity's sake just pretend that home networks are 192.168.0.something.

the router should have two cards... one to connect to the internet and one to connect to you, right?
you need to find out what ip address on the you side is... I would guess 192.168.0.1, therefore you should set the debian box to 193.168.0.2 (not only 2, just something bigger than 1)

hope this helps. there are a lot of good articles on networking, google them! also search LQ (did you see the search button?) because this has been discussed before...

titanium_geek
 
Old 04-11-2005, 09:01 AM   #3
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
Do you have the gateway (router) set in /etc/network/interfaces/ ?

(something like this)

iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
gateway 192.168.0.1
 
Old 04-11-2005, 09:11 AM   #4
tad604
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
I've set the address to something like 192.168.0.X
The router has a similiar address (on the local side, I think 192.168.0.1).

I tried something similiar to:
Quote:
iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
gateway 192.168.0.1
Maybe I left off the gateway part (though I thought I tried adding that when I couldn't get connectivity). Or maybe I had this in a different config file...

When you say:
Quote:
/etc/network/interfaces/ ?
Is there a specific file in that directory I should set this in? or?


Thanks for the quick responses,

-Tad
 
Old 04-11-2005, 08:53 PM   #5
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 624

Rep: Reputation: 32
Quote:
Originally posted by tad604
I've set the address to something like 192.168.0.X
The router has a similiar address (on the local side, I think 192.168.0.1).

I tried something similiar to:


Maybe I left off the gateway part (though I thought I tried adding that when I couldn't get connectivity). Or maybe I had this in a different config file...

When you say:


Is there a specific file in that directory I should set this in? or?


Thanks for the quick responses,

-Tad
the basic convention in unix for naming files is as follows:

/directory(etc)/folder (nework)/ file (interfaces)

so /etc/nework/interfaces/ is all you need...

to edit under console mode access would be as follows (using vi or any other command line editor)

vi /etc/nework/interfaces

this will bring in the file interfaces onto the console screen for editing...

 
Old 04-12-2005, 06:53 AM   #6
tad604
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Well I got it to work. Initially after changing the interfaces file I lost all network connectivity (again). But I found the "networking menu" under system tools and "activated" the ethernet card.

Just want to say thanks to everyone who answered my question, I'm sure I'll have several more.

-Tad
 
Old 04-12-2005, 05:15 PM   #7
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
perhaps I can encourage you to push the"Answered" button?

titanium_geek
 
Old 04-12-2005, 06:49 PM   #8
tad604
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Answered Button? Ok... where is this button? I've looked to no avail.

-Tad
 
Old 04-12-2005, 08:09 PM   #9
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
hmmm.... it should be at the top of your first post to your right... but it wasn't a popular move, they might have removed it.

titanium_geek
 
Old 04-12-2005, 09:08 PM   #10
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 31
Do you mean the "thanks" button among the 7 "buttons" at the bottom of each post?

What exactly does that *do* anyway?
 
Old 04-13-2005, 08:40 AM   #11
tad604
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks button is an easy way to donate money.

-Tad
 
Old 04-13-2005, 01:52 PM   #12
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 31
Hmm... I think there used to be a button that said "affero", but I never knew what it meant.
 
Old 04-21-2005, 04:34 PM   #13
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
nope, it is a button at the top of the first post in a thread. It is there only for the poster. *everyone else sees "post a reply"*

titanium_geek
(if you wanna push the thanks button... go a head! )

Last edited by titanium_geek; 04-21-2005 at 04:38 PM.
 
Old 04-22-2005, 08:27 AM   #14
tad604
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Actually it says "Post Reply" for me too.
 
  


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
Networking Questions dklofas Linux - Networking 1 11-16-2005 11:32 PM
networking questions? shanenin Linux - Software 5 08-07-2004 05:40 PM
Networking Questions (simplish) lrt2003 Linux - Networking 2 04-26-2004 04:27 PM
Some networking questions jmcollin92 Linux - Networking 33 02-28-2004 10:12 PM
two networking questions h_lina_k Linux - Newbie 5 02-10-2004 07:04 PM


All times are GMT -5. The time now is 08:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration