LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-09-2006, 12:55 PM   #1
BackwardsDown
Member
 
Registered: Nov 2005
Posts: 66

Rep: Reputation: 15
no connection


hi,

I am new to linux (thats why I post in this forum),
and I have installed debian sarge net-install.

But when I start linux, I dont have a connection.
(Sometimes I do have a connection but I have to reboot a lot to get it)

Does someone know how I can solve this problem? Or where I can start looking?
 
Old 02-09-2006, 01:22 PM   #2
d2490n
Member
 
Registered: Jul 2005
Location: San Diego, CA
Distribution: RHEL, Debian, Gentoo when I'm brave.
Posts: 47

Rep: Reputation: 15
im pritty noob myself, but i think i might be able to help here.

use "ifconfig" (as root) and see if eth0 is up,(i asume your using ethernet) if not use "ifconfig eth0 up" than, if you use dhcp, use "dhcpcd eth0", thats all i got. hope it helps.
 
Old 02-09-2006, 02:13 PM   #3
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
Quote:
use "ifconfig" (as root) and see if eth0 is up,(i asume your using ethernet) if not use "ifconfig eth0 up" than, if you use dhcp, use "dhcpcd eth0", thats all i got. hope it helps.
That will more than likely work but can be annoying to do everytime. which distro are u running?
 
Old 02-09-2006, 02:41 PM   #4
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
He is running Debian Sarge.

You will just have to edit the net configuration, how is it when it doesn't work... and what does it look like when it is working? And what is the extent of not working? No internet, or just no DNS?
 
Old 02-09-2006, 02:48 PM   #5
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
Ya maybe i should'nt read so fast....
 
Old 02-09-2006, 03:38 PM   #6
BackwardsDown
Member
 
Registered: Nov 2005
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
and what does it look like when it is working? And what is the extent of not working? No internet, or just no DNS?
I cant ping, I cant use firefox, cant use dselect, apt-get update doesnt work, cant use gaim... etc.
I have a dual boot with windows, and on windows the internet works correctly.

About the ifconfig, this is what I had when I have no connection. I have wrote it down on a piece of paper, and I am now typing it over, there could be some mistakes becouse of my bad handwryting:

eth1:
Link encap: Ethernet HWaddr 00:0A:48:02:85:7C
inet6 addr: fe80::20a:48ff:fe02:857c/64 scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 METRIC 1
RX packets:62 errors:0 dropped:0 overrruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carriers:20
collisions:0 txqueelen:1000
RX bytes:3720 (3.6 KiB) TX bytes:0 (0,0b)
interrupt 217 base adress:0xc000

lo:
linkencap local loopback
inet addr:127.0.0.1 mask: 255.0.0.0
inet addr::1/128 scope: Host
up loopback running mtu: 16436 metric1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carriers:0
collisions:0 txqueelen:0
RX bytes:560 (560,0b) TX bytes:560 (560,0b)

Last edited by BackwardsDown; 02-09-2006 at 03:39 PM.
 
Old 02-09-2006, 04:04 PM   #7
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
That doesn't really mention what is wrong. Can you go to IP addresses, instead of web addresses? Then it is a simple DNS issue that can be resolved(no pun inteded) easily.

Try going to a few IPs like:
68.178.151.47
64.233.167.99
199.181.132.250

Let me know if that works when the internet is "dead"
 
Old 02-09-2006, 04:13 PM   #8
BackwardsDown
Member
 
Registered: Nov 2005
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Try going to a few IPs like:
Should I try go to them with firefox?
Or should I ping them with "ping ip"?
 
Old 02-09-2006, 04:52 PM   #9
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
If u cant ping anthing than it is not configured properly.
Quote:
eth1:
Link encap: Ethernet HWaddr 00:0A:48:02:85:7C
inet6 addr: fe80::20a:48ff:fe02:857c/64 scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 METRIC 1
RX packets:62 errors:0 dropped:0 overrruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carriers:20
collisions:0 txqueelen:1000
RX bytes:3720 (3.6 KiB) TX bytes:0 (0,0b)
interrupt 217 base adress:0xc000
U dont seem to be assigned an ip addr.

Do you have 2 ethernet card? because u should see eth0 before eth1.

if u do have 2, do this in a console as root:
#ifconfig eth0 up

If u have a dynamic ip (more than likely) try this in a console as root:
#dhcpcd eth0
and/or
#dhcpcd eth1

then ifconfig should display about the same thing but u should have an ip addr assigned.

If u have a static ip u will have to assign it manually, i am not in linux right now so i cant find the command for that yet, but u probably have a dynamic.

Run those command and cut/paste any ouput u get for them, also post back ifconfig after running those if u still have problem.
 
Old 02-09-2006, 05:03 PM   #10
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
The debian way is to edit the /etc/network/interfaces file.

In this file, it may look like:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

The above defines the loopback and the first ethernet device. It will use dhcp to assign the ip address. If you need a static ipaddress, then try the following for the eth0 device. Changing to an appropriate ip address.

auto eth0
iface eth0 inet static
address 192.168.0.2 <----- change address to reflect your network
netmask 255.255.255.0 <----- once again change appropriately
gateway 192.168.0.1 <----- put in the default gateway here, perhaps router address

hope this helps
 
Old 02-10-2006, 01:03 PM   #11
BackwardsDown
Member
 
Registered: Nov 2005
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Try going to a few IPs like:
68.178.151.47
64.233.167.99
199.181.132.250

Let me know if that works when the internet is "dead"
It sais with all three ip's:
"Network is unreachable"

Quote:
Do you have 2 ethernet card?
Yes I have got two.

Quote:
If u have a dynamic ip (more than likely) try this in a console as root:
I think I have a static ip, in windows I allways have the same IP.

Output for ifconfig (only for eth0):

eth0:
Link encap: Ethernet HWaddr 00:0A:48:02:85:7C
inet6 addr: fe80::200:48ff:fe02:857c/64 scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 METRIC 1
RX packets:1 errors:0 dropped:0 overrruns:0 frame:0
TX packets:0 errors:3 dropped:0 overruns:0 carriers:6
collisions:0 txqueelen:1000
RX bytes:60 (60.0 KiB) TX bytes:0 (0,0b)
interrupt 209 base adress:0xc000

And I have added this to my interfaces file:

auto eth0
iface eth0 inet static
address 83.81.177.195 <--my ip
netmask 255.255.255.0
gateway 83.81.176.1

But with no luck
 
Old 02-10-2006, 01:18 PM   #12
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Hi,

If you always have the same IP number it does not means it is static. You could be using DHCP and it just that the server always assigns you the same IP. Try to check that on your Windows configuration (can't help you there, too long since the last time I was on Windows).

Next, I would try to make it work using ifconfig/ifup before editing /etc/network/interfaces. Doing so, you'll learn which is the problem, solve it and then to edit the file will be simple.

Also, since eth1 seems to work fine: Have you tried to use that one to connect to the internet? My guess is that you are using it to share the internet connection, but if not then it wouldn't hurt you to connect thru that one. (At least it may help you to isolate problems.)

Let us know how things are going.

Regards
 
Old 02-10-2006, 02:16 PM   #13
BackwardsDown
Member
 
Registered: Nov 2005
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
#dhcpcd eth0
The dhcpcd command doesnt exist

Quote:
Have you tried to use that one to connect to the internet?
I have switched the network cables in the bakc of my computer, with no succes

Quote:
You could be using DHCP
I have checked it and I am using DHCP.
 
Old 02-10-2006, 03:27 PM   #14
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
there is your main problem, but i dont know how to install on debian sarge. Try to find and install it.
 
Old 02-10-2006, 04:07 PM   #15
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
To install dhcpcd on debian, execute the following command as root:

apt-get install dhcpcd

that should install the dhcp client software.

Hope this helps
 
  


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
wireless connection ok with knoppix dvd , no connection with installed fedora 4 docharmony Linux - Wireless Networking 2 11-27-2005 05:33 PM
Time out in Connection established state if no Data flows on that connection asurya Linux - Networking 2 04-10-2005 04:54 PM
LDAP SERVER Client Connection on SUSE 9.2 - connection error jcarton Linux - Networking 3 03-19-2005 01:40 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo Linux - Networking 4 03-01-2005 02:43 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo SUSE / openSUSE 0 03-01-2005 06:43 AM


All times are GMT -5. The time now is 08:31 PM.

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