Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What no ping?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Fri Feb 27, 2004 4:20 pm    Post subject: What no ping? Reply with quote

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
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Fri Feb 27, 2004 5:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Fri Feb 27, 2004 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Peracles
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2003
Posts: 143
Location: Dallas, Texas

PostPosted: Fri Feb 27, 2004 10:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Feb 28, 2004 12:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Feb 28, 2004 1:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Feb 28, 2004 3:00 am    Post subject: Reply with quote

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
View user's profile Send private message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Sat Feb 28, 2004 3:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Feb 28, 2004 11:21 am    Post subject: Reply with quote

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
View user's profile Send private message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Sat Feb 28, 2004 8:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum