Help - Search - Members - Calendar
Full Version: Can Ping In But Not Out
Linuxhelp > Support > Technical Support
copperdog
I recently set up an old box with debian.
ifconfig shows it got an ip from dhcp ok and i can ping it (by ip & name) from another computer on the local network but it cant ping anything in return.
Anyone know what that might mean?
Termina
I'll assume you have a router.

ifconfig shows a LAN IP, correct?

Computer A can ping Computer B just fine, but Computer B cannot ping Computer A?

Computer A probably has a firewall.

Have you tried pinging another location? yahoo.com, for example?
copperdog
hey thanks for the reply!

yes, it has a local ip address
computer a doesnt have a firewall
computer b cant ping anything, either inside the network (computer a, computer c) or outside (yahoo.com)
Robert83
Hi,

on the debian machine , turn off the firewall (even if you havent configured anything with iptables)

I don't use debian , but there should be something like a

CODE
/etc/init.d/iptables stop


and then try pinging again.

Maybe there is some iptables output rule that is denying you from reaching any host in your network.

Sincerely
Robert B

ps. if wont help paste the results of the following commands please

CODE
ifconfig


CODE
route
Termina
Please post your /etc/resolv.conf file as well
copperdog
I wasnt able to do
/etc/init.d/iptables stop
No such file or directory
locate iptables
didnt return anything

ifconfig
CODE
eth0     Link encap:Ethernet   HWaddr 00:A0:24:7A:EE:22
          inet addr: 192.168.0.105   Bcast:192.168.0.255   Mask:255.255.255.0
          UP BROADCAST RUNNING MTU:1500 Metric:1
          RX packets:1128003 errors:26 dropped:0 overruns:18 frame:26
          TX packets:15205 errors:0 dropped:0 overruns:0 carrier:1
           collisions:8 txqueuelen:100
           Interrupt:10 Base address:0x300

lo         Link encap:local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          UP LOOPBACK RUNNING MTU:3924 Metric:1
          RX packets:84 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0 collsions:0 txqueuelen:0


route
CODE
Kernal IP routing table
Destination   Gateway        Genmask         Flags   Metric Ref  Use Iface
192.168.0.0   *                 255.255.255.0   U        0       0         0 eth0
default          192.168.0.1   0.0.0.0            UG      0       0         0 eth0


cat /etc/resolv.conf

CODE
nameserver  192.168.0.1
Termina
Have you tried simply restarting the machine? Otherwise, please try

CODE
iptables -F
ifdown
ifup


QUOTE
RX packets:1128003 errors:26 dropped:0 overruns:18 frame:26


That's not good. Have you made sure that your NIC is functioning properly, and that your network cable is in good condition? I'd suggest swapping both out, with ones that you know work.
copperdog
unfortuntately i cant swap out the card or cable because i dont spares. but they both came from another machine and were working fine.

CODE
# iptables -F
bash: iptables: commmand not found

neither find nor locate turn up anything for iptables.
CODE
# ifdown
# ifup

both say
CODE
Use --help for help


so i did and thought -a for all sounded good

CODE
# ifdown -a
#ifup -a

then i tried
CODE
# ifconfig
#

and got nothing.
this is bad?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.