You are not logged in.
Pages: 1
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
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 writeping -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
Offline
deleted
Last edited by Misbah (2012-02-14 04:39:40)
Offline
ok..., but the connection still doesn't work
i have tried to configure pacman, but it doesn't work
A proud french Canuck
Offline
deleted
Last edited by Misbah (2012-02-14 04:39:26)
Offline
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
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
post your /etc/rc.conf
also post the result of the following commands (type them in a console)
ifconfig
routeThat 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
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
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
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
nameserver 192.168.1.1
this the only un-commented line
A proud french Canuck
Offline
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
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
OK. I'll explain in more detail.
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.
R.
Last edited by ralvez (2008-05-05 02:17:20)
Offline
Pages: 1