You are not logged in.

#1 2008-05-04 22:37:09

doodger
Member
Registered: 2008-05-04
Posts: 7

Connection trouble

Hello! I'm installing arch linux for the first time,and i'm following this guide
So everything goes smoothly until the "Configuring the network" part. At this point i write

ping -c www.google.com

and the console send me this message.

ping: bad number of packets to transmit

I'm completly clueless on what to do, can any of you help me?


A proud french Canuck

Offline

#2 2008-05-04 22:54:04

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: Connection trouble

doodger wrote:

Hello! I'm installing arch linux for the first time,and i'm following this guide
So everything goes smoothly until the "Configuring the network" part. At this point i write

ping -c www.google.com

and the console send me this message.

ping: bad number of packets to transmit

I'm completly clueless on what to do, can any of you help me?

ping -c5 www.google.com tongue

Offline

#3 2008-05-04 23:22:02

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: Connection trouble

deleted

Last edited by Misbah (2012-02-14 04:39:40)

Offline

#4 2008-05-04 23:38:05

doodger
Member
Registered: 2008-05-04
Posts: 7

Re: Connection trouble

ok..., but the connection still doesn't work

i have tried to configure pacman, but it doesn't work


A proud french Canuck

Offline

#5 2008-05-04 23:42:26

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: Connection trouble

deleted

Last edited by Misbah (2012-02-14 04:39:26)

Offline

#6 2008-05-04 23:54:27

doodger
Member
Registered: 2008-05-04
Posts: 7

Re: Connection trouble

Misbah wrote:

need more information. are you getting the unable to reach host error? most likely your networking isn't setup properly, could be something else. What's the error you're getting. Are you using wireless or wired? whats the output of your ifconfig/iwconfig, are you using netcfg2 or just implementing network settings in rc.conf? Behind a router or plugged in straight to the modem?

Hmm I'll answer as best as i can.

I have the " unknown host www.google.com@, im using wired, writing ifconfig/iwconfig send me the : no such file or directory.

What's netcfg2?


It seems that my network config files are all wrong.


A proud french Canuck

Offline

#7 2008-05-05 00:11:37

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: Connection trouble

post your /etc/rc.conf
also post the result of the following commands (type them in a console)
ifconfig
route

That will give people trying to help enough information to provide some directions.

R.

Offline

#8 2008-05-05 00:23:38

doodger
Member
Registered: 2008-05-04
Posts: 7

Re: Connection trouble

ralvez wrote:

post your /etc/rc.conf
also post the result of the following commands (type them in a console)
ifconfig
route

That will give people trying to help enough information to provide some directions.

R.

/etc/rc.conf
#networking
HOSTNAME="doodger"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
#NETWORKS=(main)

ifconfig result

eth0 Link encap:Ethernet HWaddr 00:30:F1:08:D5:D8
       inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
       UP BROADCAST MULTICAST MTU:1500 METRIC:1
       RX packets:0 errors:0 dropped:0 overruns:0 frame:0
       TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
       collisions:0 txqueuelen:1000
       Rx bytes:0 (0.0 b) TX bytes:0 (0,0 b)
       Interrupt:11

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168,0,0 * 255.255.255.0 U 0 0 0 eth0


A proud french Canuck

Offline

#9 2008-05-05 00:42:14

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Connection trouble

Looks to me like you need to remove the '!' from in front of !gateway in the ROUTES array--assuming of course that 192.168.0.1 is the IP of your router.


thayer williams ~ cinderwick.ca

Offline

#10 2008-05-05 01:00:20

doodger
Member
Registered: 2008-05-04
Posts: 7

Re: Connection trouble

thayer wrote:

Looks to me like you need to remove the '!' from in front of !gateway in the ROUTES array--assuming of course that 192.168.0.1 is the IP of your router.

I did this, but it didn't work


A proud french Canuck

Offline

#11 2008-05-05 01:20:32

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: Connection trouble

OK. Everything looks good for static IP setup. As thayer pointed out:

remove the '!' from in front of !gateway in the ROUTES array--assuming of course that 192.168.0.1 is the IP of your router

and leave it out.
Now, the next reason for the problem may be in your /etc/resolv.conf
Post the contents of that file.

R.

Offline

#12 2008-05-05 01:29:56

doodger
Member
Registered: 2008-05-04
Posts: 7

Re: Connection trouble

nameserver 192.168.1.1

this the only un-commented line


A proud french Canuck

Offline

#13 2008-05-05 01:37:48

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: Connection trouble

OK. That's the problem.
You should have the address of the Primary and Secondary (if two are given to you by your ISP) IP addresses.
That is what resolves names into IP addresses for the Web.

R.

Edit: Now, on second thought, if you have a router and you are pointing to your router's address something is wrong with the address since you are using a 192.168.0.X address in your machine and 192.168.1.1 in your router. In your case it should say: 102.168.0.1

Last edited by ralvez (2008-05-05 01:40:48)

Offline

#14 2008-05-05 01:48:26

doodger
Member
Registered: 2008-05-04
Posts: 7

Re: Connection trouble

Edit: Now, on second thought, if you have a router and you are pointing to your router's address something is wrong with the address since you are using a 192.168.0.X address in your machine and 192.168.1.1 in your router. In your case it should say: 102.168.0.1

wait i didn't understand anything. What am i supposed to do?


A proud french Canuck

Offline

#15 2008-05-05 02:15:00

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: Connection trouble

OK. I'll explain in more detail. smile
The file /etc/resolv.conf holds the names of the DNS servers your machine will use to convert an address of the type: http://google.com into its corresponding IP address. If you put there the DNS servers your ISP has given you (and usually you are given two) then you should have something like

nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

in that file. (where xxx.xxx.xxx.xxx represent the IP address your ISP gave you)

In some cases though, like in my case, I have a router and that router has the IP addresses of my provider's DNS servers in its configuration; so instead of putting the  addresses of my provider's DNS servers in my /etc/resolv.conf  I put instead the address of my router.

Both approaches are correct.

In addition to what I say above, I noticed that your network is set on an IP schema of 192.168.0.x but the IP you say you have in your /etc/resolv.conf is 192.168.1.1 which would be a different sub-net. In other words, if you have set up your router to hold the DNS addresses given to you by your provider, which is fine; then your router's address should be within the scope of your sub-net and should be 192.168.0.1 and not 192.168.1.1

If after this explanation you are yet confused then take the simple approach and enter into your /etc/resolv.conf the two IP addresses your ISP has given you. wink

R.

Last edited by ralvez (2008-05-05 02:17:20)

Offline

Board footer

Powered by FluxBB