LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
Search this Thread
Old 06-15-2006, 11:36 PM   #1
specialist125
LQ Newbie
 
Registered: Mar 2006
Posts: 20

Rep: Reputation: 0
Problems (eth0) staying connected to the Internet


Ok I recently installed etch and eveything was working fine for the past 3 days. Yesterday I rebooted the computer to do some work in windows. When I started debian again my internet connection wasn't found. So, I figured out that my eth0 connection was disable. I went to kde control center
1. Internet & Network
2.Network setting
3 Enable etho
Everything was working fine again. Today after rebooting from windows I seem to have the same problem. I tried doing what I did yesterday but that did not work. When I try to enable eth0 it switches back thus not allowing me to change the setting. I decided to restart the computer agaian and during bootup I saw that some things where failing in startup. I think it said /etc/network/???? I didnt catch this last part. After trying to reset the eth0 once again and having no luck I restart the computer so I could come to the forum. During the shutdown process their were also errors/fail processes which I belive is "up-down"(this could be wrong). I recall seeing something similar in the /etc/network/??? directory. I dont know what is wrong with it. Everything else seems to work fine. I have to use Window to connect to the internet now. Oh I am not on a network.
 
Old 06-16-2006, 01:45 AM   #2
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
the file you want to read and edit is /etc/network/interfaces.
if you post your file here, we can see what's wrong.
 
Old 06-16-2006, 01:54 AM   #3
specialist125
LQ Newbie
 
Registered: Mar 2006
Posts: 20

Original Poster
Rep: Reputation: 0
This is what I got

the-cage:/home/specialist125# ifup eth0
/etc/network/interfaces:20: too few parameters for iface line
ifup: couldn't read interfaces file "/etc/network/interfaces"


This is the /etc/network/interfaces file


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping eth0
script grep
map eth0

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

iface eth1 inet



auto eth0
 
Old 06-16-2006, 02:08 AM   #4
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
iface eth0 inet dhcp: I think you have to define netmask, network and broadcast address.

iface eth1 inet: you have to define the interface as either static or dhcp.

what is eth1 doing? do you have 2 interfaces?

see 'man interfaces' for details.
 
Old 06-16-2006, 02:45 AM   #5
specialist125
LQ Newbie
 
Registered: Mar 2006
Posts: 20

Original Poster
Rep: Reputation: 0
ok I dont know if I should but I dont think eth1 is doing anything but I know I need eth0 oh.when Im in kde control center I try to change eth1 but kde crashes. It is set to manual I dont know if it should be this way. I dont know netmask, network and broadcast address.
 
Old 06-16-2006, 03:01 AM   #6
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
ok, remove/comment your eth1 line then.

forget the kde control center.
is your network configured with dhcp?
look up the netmask in your windows command prompt. (type ipconfig)
also, check the ip address there and post it.

my interfaces file looks like this:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255


i use a router as a dhcp server.
 
  


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
problems loading internet pages even though connected jamsy Linux - Wireless Networking 1 10-26-2005 12:51 PM
Hang up on eth0 interface when ethernet cable is not connected jsanchez Linux - Laptop and Netbook 1 05-18-2005 12:42 AM
when client connected to eth0 server freezes ichi Linux - Wireless Networking 5 03-26-2005 12:35 PM
eth0 is up, but still have internet and printer configuration problems TudeCat Linux - Newbie 11 05-28-2004 10:45 PM
When connected via dialup RH still try's to use Eth0 to communicate on vofkid Linux - Newbie 1 03-14-2002 12:57 AM


All times are GMT -5. The time now is 12:14 PM.

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