View previous topic :: View next topic |
Author |
Message |
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Fri Feb 27, 2004 4:20 pm Post subject: What no ping? |
|
|
Hi,
I am most of the way through setting up my ADSL ethernet card but can't connect.
I have eth0 up
I have rp-pppoe
I have run adsl-setup
BUT adsl-start always times-out.
So I try ping and get "-bash: ping: command not foud"
Since adsl-start uses ping this may if error trapping is poor.
I tried emerge ping but it want a connection! Catch 22.
I tried emerge -K ping and it says it does not have the binaries to do it.
Is this a newby error or is my installation badly borked?
Thx. |
|
Back to top |
|
|
carbon Guru
Joined: 27 Jun 2003 Posts: 455 Location: New York
|
Posted: Fri Feb 27, 2004 5:21 pm Post subject: |
|
|
post your /sbin/ifconfig eth0
hard to tell what is wrong without that. _________________ I do what I want, and that's what I do.
GNU World Domination
Carbon |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Fri Feb 27, 2004 6:09 pm Post subject: |
|
|
OK.
I copied /bin/ping from the CD so that is sorted.
I can ping the Gentoo machine via its IP and by its hostname : linbox.
If I try to ping the adsl modem on 192.168.1.1 I get netword unreachable
I have to transcribe the ifconfig output since I have not connection or networking on the Gentoo machine. In essence it is this:
192.168.0.1 192.168.0.255 255.255.255.0
UP BRADCAST MUTICAST .........
No errors in RX TX data etc.
does that give you more idea?
Thx. |
|
Back to top |
|
|
Peracles Tux's lil' helper
Joined: 13 Nov 2003 Posts: 143 Location: Dallas, Texas
|
Posted: Fri Feb 27, 2004 10:46 pm Post subject: |
|
|
Gentree wrote: | OK.
I copied /bin/ping from the CD so that is sorted.
I can ping the Gentoo machine via its IP and by its hostname : linbox.
If I try to ping the adsl modem on 192.168.1.1 I get netword unreachable
I have to transcribe the ifconfig output since I have not connection or networking on the Gentoo machine. In essence it is this:
192.168.0.1 192.168.0.255 255.255.255.0
UP BRADCAST MUTICAST .........
No errors in RX TX data etc.
does that give you more idea?
Thx. |
The network u set up is a 192.168.0.X network. You'll never be able to reach 192.168.1.X since there is no route that corresponds to that..... unless that is a typo. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sat Feb 28, 2004 12:36 am Post subject: |
|
|
Thanks,
I had just spotted my mistake ,
I now have put the netmask to 255.255.254.0
This means I no longer get the network unreachable but if I ping the modem I get 100% lost packets.
(also tried setting linbox to 192.168.1.0 to be in the same subnet , same result)
This is not the case if I ping it from the winbox (whick I still have to use to connect) . Winbox is 192.168.0.2 with 255.255.255.0 which in theory should not connect either but it does.!
Resumé linbox is now 192.168.0.1 192.168.0.255 255.255.254.0
Does that seem correct?
Thanks. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sat Feb 28, 2004 1:13 am Post subject: |
|
|
PING PING!
have set linbox to 192.168.0.2 netmask 255.255.254.0
Can now ping the modem at 192.168.1.1
BUT.... stil cant connect.
adsl-start still TIMED-OUT as before.
Must be near now!! Anyone got the missing llnk??
Thanks, in eager anticiapation. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sat Feb 28, 2004 3:00 am Post subject: |
|
|
update :
linbox : 192.168.1.2 netmask 255.255.254.0 brcast 192.168.1.255
modem 192.168.1.1
def gw set to same IP
can now ping the modem OK.
But any external IP gets "Destination net unreaachable"
What am I missing ?
Thx in adv. |
|
Back to top |
|
|
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
Posted: Sat Feb 28, 2004 3:56 am Post subject: |
|
|
Why are you making things more difficult than they have to be?
Why don't you just set your box's IP to something that is on the same subnet as your modem? then you can just use netmasks of 255.255.255.0 and you don't have to worry about setting up routes between two different subnets.
If there is some reason you cannot do this, what is it? _________________ Top notch image hosting. Great for screen shots! http://www.imagelink.org |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sat Feb 28, 2004 11:21 am Post subject: |
|
|
Thanks Froke
Quote: | Why are you making things more difficult than they have to be? |
Probalby because I am making a mistake somewhere and so far no-one has been able to tell me what it is.
Quote: | Why don't you just set your box's IP to something that is on the same subnet as your modem? |
linbox 192.168.1.2
adsl mnodem 192.168.1.1
That is the same subnet isnt it?! That is exactly why I moved linbox to that IP since the modem config interface is fixex in firmware.
Quote: | then you can just use netmasks of 255.255.255.0 |
Again I may be mistaken but I thought the netmask you show is incorrect for these IPs. I certainly got further when I corrected it to the value given.
I can now ping the modem and get correct responce. I just cant ping an IP in the outside world.
Does that make more sence?
THx |
|
Back to top |
|
|
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
Posted: Sat Feb 28, 2004 8:06 pm Post subject: |
|
|
Could you post your output of the following commands:
Code: |
ifconfig
route -n
cat /etc/resolv.conf
|
_________________ Top notch image hosting. Great for screen shots! http://www.imagelink.org |
|
Back to top |
|
|
|