You are not logged in.

#1 2008-03-07 14:31:10

danbrownlow
Member
Registered: 2008-03-07
Posts: 11

No internet connection when attempting to ping.

RIght, well, I'm trying to ping google. I've been using the Beginners guide posted on this forum and have been going through it.

My problem is that I can't get an internet connection, I've checked my router and I think I'm doing it right and I'm currently trying to edit the rc.conf file.

The first thing that I have done is changed the settings under Networking to:

lo="127.0.0.1"
eth0="eth0 192.168.1.68 netmask 255.255.2555.0 broadcast 192.168.0.255"

I also changed:
gateway="default gw 192.168.1.254"
routes=(gateway)

From what I understand, eth0 is the address of the computer (my router says' it's static ip alignment 192.168.1.68 so I entered this, I also changed gatway to 192.168.1.254 which is the IP of my router (btw, it's a homehub).

I don't know what else I should be checking really so if someone could help I'd be very grateful =]

Thank you!

Offline

#2 2008-03-07 15:55:35

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: No internet connection when attempting to ping.

You also need the INTERFACES=(lo eth0) in your /etc/rc.conf.  You may also not have your network module installed in MODULES=(blah...blah).  Sometimes you have to add your network module manually.  Check what interface your network uses with lspci and look for the ethernet controller line.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#3 2008-03-07 16:03:58

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: No internet connection when attempting to ping.

Two things I've noticed:

1) netmask should be 255.255.255.0 - you have 255.255.2555.0 - was this just a copy-paste error, or is that how it actually is in rc.conf?

2) broadcast should probably be 192.168.1.255 since you're on the 192.168.1 network

Last edited by Cerebral (2008-03-07 16:04:15)

Offline

#4 2008-03-07 17:04:37

danbrownlow
Member
Registered: 2008-03-07
Posts: 11

Re: No internet connection when attempting to ping.

Hey, I used lspci and my ethernet controller came up, so does this mean that the module is installed?

I also changed the broadcast to 192.168.1.255 and made sure that I had 255.255.255.0 =]

Anymore ideas?! Thanks.

Offline

#5 2008-03-07 17:17:08

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: No internet connection when attempting to ping.

I don't know if lspci means the module is loaded - I would think not.

Do you have 'network' in your DAEMONS array?  (-edit- DAEMONS array, not MODULES, I'm an idiot)

Actually, have you tried DHCP?  It just occurred to me that you said your router has a static IP assignment table, which implies to me that DHCP will always assign you the same IP, doesn't it?

Try just

lo="127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)

gateway="default gw 192.168.1.254"
ROUTES=(!gateway)

Note that I used !gateway - with DHCP you don't want to configure your gateway this way

Last edited by Cerebral (2008-03-07 17:58:17)

Offline

#6 2008-03-07 17:20:48

danbrownlow
Member
Registered: 2008-03-07
Posts: 11

Re: No internet connection when attempting to ping.

Ok, it's fixed. I changed to dynamically assign IPs' and everything seems to be working.  Thank you.

Offline

#7 2008-03-07 17:35:28

danbrownlow
Member
Registered: 2008-03-07
Posts: 11

Re: No internet connection when attempting to ping.

Ok, well, I said it's fixed, but apparently not entirely fixed. When I reboot, I have to type:

/etc/rc.d/network restart

Do you know why this happens? Another, it the guide I used, it tells me to write

ping -c www.google.com

however, when I do this, it says bad number of packets. So I used ping www.google.com which kept pinging forever lol

Dan.

Offline

#8 2008-03-07 17:39:30

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: No internet connection when attempting to ping.

Ping yahoo.com....ping google.com   ....is all that;s needed.

Stop the ping with ...ctl c.....


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#9 2008-03-07 17:57:26

May-C
Member
Registered: 2007-12-28
Posts: 83

Re: No internet connection when attempting to ping.

The -c switch means how many time it should ping:

ping -c 3 www.google.ch

In this case it pings 3 times google. See man ping for further information.

Offline

#10 2008-03-07 17:57:39

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: No internet connection when attempting to ping.

Or ping -c 3 www.google.com smile

Edit: too late.  Oh well...

Last edited by peart (2008-03-07 17:58:39)

Offline

#11 2008-03-07 17:57:48

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: No internet connection when attempting to ping.

danbrownlow wrote:

Ok, well, I said it's fixed, but apparently not entirely fixed. When I reboot, I have to type:

/etc/rc.d/network restart

You do have 'network' in your DAEMONS array, right?

Offline

#12 2008-03-07 18:53:01

danbrownlow
Member
Registered: 2008-03-07
Posts: 11

Re: No internet connection when attempting to ping.

Yea' I have network in my DAEMONS array, it's got a @ sign before hand? Is this a problem?

Lol, I now have even more problems. I was just starting to install the Xserver to get the GUI and I rebooted for some reason which I've completely forgotton. However,  when I tried to reboot, in the command line I didn't have the option of choosing which OS to boot. All it says is:
>grub

and when I tried to boot, it is reporting that my "kernel must be loaded before booting"

Sorry I'm having so many problems, I've tried searching forums but to no avail.

Offline

#13 2008-03-07 19:38:01

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: No internet connection when attempting to ping.

Somehow you've foobarred your grub bootloader.  Check this wiki: http://wiki.archlinux.org/index.php/Reinstalling_GRUB

btw I don't think you need @ in front of network when you get Arch booting again.

Also as far as the lspci thing goes, this would just tell you what kind of ethernet interface your computer uses.  Then it's just a matter of checking your MODULES line in /etc/rc.conf to see that it autodetected the correct interface and added that to the MODULES.  Since you did establish a connection at least once you must have the network module loaded so I'm just including this for general info for you.

Last edited by bgc1954 (2008-03-07 20:04:59)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#14 2008-03-07 19:54:32

murffatksig
Member
From: Atl
Registered: 2004-05-17
Posts: 358

Re: No internet connection when attempting to ping.

Can you paste the contents of /boot/grub/menu.lst here?  If you can't even view the configuration from within grub, try booting to the install CD and mounting your /boot device there.


"Oh, they have the internet on computers now."

Offline

#15 2008-03-07 21:53:54

danbrownlow
Member
Registered: 2008-03-07
Posts: 11

Re: No internet connection when attempting to ping.

Hey, I've tried a few things and nothing has worked so I've reinstalled and up to now, everything is working okay. I think the problem I had was using the auto drive partitioner to partition my drive, when I did the task myself everything seemed to work a lot better and I've had no problmes so far so hopefully I should be up and running soon.

Thanks for all the help! I'm sure I'll require it again one day.

Dan

Offline

#16 2008-03-10 04:38:01

murffatksig
Member
From: Atl
Registered: 2004-05-17
Posts: 358

Re: No internet connection when attempting to ping.

Good luck, I can't count the number of times I've reinstalled Arch.  Usually it's my own fault for experimenting with something I shouldn't.  But in the end, I always learn something new with Arch or Linux in general.


"Oh, they have the internet on computers now."

Offline

Board footer

Powered by FluxBB