LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-26-2005, 10:32 PM   #1
bluesky2005
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Rep: Reputation: 0
debian on dial-up-- no internet


ok, i'm a beginner linux user, so hopefully my problem is easy to troubleshoot..... here goes:

I recently got debian linux setup on a new ibm eserver. I have the server at home now and am trying to get it configured before hauling it to the school network and putting it online. Everything has went well to this point. I have been working with the server at home using my dialup connection. I have the server connected to a switch (using basic 192.168.10.1 windows xp networking). I can assign a static ip and login thru ssh from my pc to the server with no problems. However, i cannot access the internet from the server. I do have all firewalls turned off.

I have tried switching to dhcp (which oddly enough worked for me last week to get the original apt-get updates and such, but will not now)...... i just get the "no new dhcp releases, sleeping" thing. I have double-checked my connections, re-booted the server, unplugged the switch, re-dialed up to the internet a few times...... but nothing with dhcp. I would like to have a static ip anyways, so that's what i have been focusing on.

I have spent several hours trying every static combination i can think of. I even tried using a cross-over cable and going direct to my pc, but have similar results trying to get a dhcp address. Yes, i am remembering to do a restart each time i make changes to the interfaces. If i add in a gateway in the /etc/network/interfaces it does attempt to connect to the updates but sits at 0% and times out. Without a gateway, it just zooms thru the updates saying it can't connect. Do i even need a gateway if i am just connecting via a switch?

Now, i realize that using a server on a dialup connection thru a switch is odd, so maybe that's my problem. Is there any way for this to work statically? Am i SOL trying to get internet access on the server at home on dialup?
 
Old 03-27-2005, 08:03 AM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
Re: debian on dial-up-- no internet

Quote:
Originally posted by bluesky2005

I recently got debian linux setup on a new ibm eserver. I have the server at home now and am trying to get it configured before hauling it to the school network and putting it online. Everything has went well to this point. I have been working with the server at home using my dialup connection. I have the server connected to a switch (using basic 192.168.10.1 windows xp networking). I can assign a static ip and login thru ssh from my pc to the server with no problems. However, i cannot access the internet from the server. I do have all firewalls turned off.
192.168.x.x is private address block and has nothing to do with windows xp networking. Are you saying you run DHCP server on your WinXP machine?

Quote:
I have spent several hours trying every static combination i can think of. I even tried using a cross-over cable and going direct to my pc, but have similar results trying to get a dhcp address. Yes, i am remembering to do a restart each time i make changes to the interfaces. If i add in a gateway in the /etc/network/interfaces it does attempt to connect to the updates but sits at 0% and times out. Without a gateway, it just zooms thru the updates saying it can't connect. Do i even need a gateway if i am just connecting via a switch?
If you have working DHCP, then following in interfaces is sufficient:

auto eth0
iface eth0 inet dhcp

And you do not have to reboot every time, use ifup and ifdown instead.

Quote:
Now, i realize that using a server on a dialup connection thru a switch is odd, so maybe that's my problem. Is there any way for this to work statically? Am i SOL trying to get internet access on the server at home on dialup?
Unfortunately I have no clue how your home network is built up. Switch and modem, good. But what does the NAT?
 
Old 03-27-2005, 08:53 AM   #3
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 2,635

Rep: Reputation: 47
Oh, i think I gueessed it now. You are using XP box to dial Internet and the ethernet port of same XP box to do something MS calls 'connection sharing'.
If this is the case I seriously doubt XP box can offer valid NAT and DHCP service. I think they do it in some funny microsofted way, and if you are trying to fix it in your Linux box then you are working on wrong machine.
 
Old 03-27-2005, 08:54 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
You need to also tell networking what the gateway is. If you are routing throught the XP box then you must have the debian box on the same subnet address as the ethernet card it is attached to. A quick example if the address of the xp card is 192.168.0.1 and the netmask is 255.255.255.0 then set up the /etc/network/interfaces like this;

auto eth0
iface eth0 inet static

address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
 
Old 03-27-2005, 12:30 PM   #5
bluesky2005
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Well, i have made some progress. It seems dhcp will not work to connect to my switch unless the Windows home networking is setup under the 192.168.0.x format........... (i had changed my home network to the 192.168.10.x format to co-incide with the network at school while configuring some wireless access points and repeaters.) After several fruitless hours i changed my networking back to the ".0" and the server picked up a dhcp IP right away.

Anyhoo..... strange but it does now work.

Now a further question..... i haven't yet tried to go back to static and see if i have internet (i couldn't before so i doubt this will suddenly change). Thinking ahead here, if i must continue to use dhcp in order for everything to work, in order to use ssh, webmin etc, you need the IP, and if it keeps changing will i always have to have a monitor and keyboard connected to the server in order to find out the IP?

thanks.
 
Old 03-27-2005, 03:19 PM   #6
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 48
My opinion and it is supported by a number of gurus is that if you require a permanent access point then it is better to go the static route as this is a permanent connection. dhcp is primarily used in an environment where network activity is transient. That said setting up the debian box as a dhcp client should, according to all the stuff i have read automatically enable a gateway. It is important that the connection from the XP box to the router/switch is on a different subnet to the connection from the XP box to the Debian box.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dial-Up Internet cyborg101010 Linux - Hardware 3 02-12-2005 11:13 AM
Debian, dial-up internet connectivity - almost. kaens Linux - Newbie 5 02-12-2005 09:29 AM
Cant dial up to the internet theheckin Linux - Newbie 4 11-16-2003 07:58 PM
Dial Up internet bricast Linux - Newbie 1 08-13-2002 08:28 AM
Dial up internet mriccucci Linux - Networking 11 04-08-2002 03:16 PM


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