You are not logged in.
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
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
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
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
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
Ok, it's fixed. I changed to dynamically assign IPs' and everything seems to be working. Thank you.
Offline
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
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
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
Offline
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
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
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
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
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
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