Ping localhost: 0 packets received, 100% packet loss RedHat 6.2

Ping localhost: 0 packets received, 100% packet loss RedHat 6.2

Post by Brian Wildasin » Sun, 31 Dec 1899 09:00:00



Hi,
Why can't I ping localhost?

I have a dynamic dialup connection to my school's isp.

Here's  what is happening. BTW I can't change the netmask for the
loopback interface to what should be:  ifconfig lo netmask 255.0.0.0.
See error below. Is that the problem?

Any help is appreciated!  Please email me since I don't get on these
boards too much lately.

Brian

Script started on Wed Dec  6 14:15:28 2000



localhost
PING localhost.localdomain (127.0.0.1) from 134.139.23.180 : 56(84)
bytes of data.

--- localhost.localdomain ping statistics ---
8 packets transmitted, 0 packets received, 100% packet loss



127.0.0.1
PING 127.0.0.1 (127.0.0.1) from 134.139.23.180 : 56(84) bytes of data.

--- 127.0.0.1 ping statistics ---
12 packets transmitted, 0 packets received, 100% packet loss

ppp-off
PPP link to ppp0 terminated.

localhost
connect: Network is unreachable

127.0.0.1
connect: Network is unreachable


ifconfig -a
lo        Link encap:Local Loopback
          LOOPBACK  MTU:3924  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:0

ppp0      Link encap:Point-to-Point Protocol
          POINTOPOINT NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:954 errors:180 dropped:0 overruns:0 frame:180
          TX packets:982 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10



ifconfg ig lo netmask 255.0.0.0
SIOCSIFNETMASK: Cannot assign requested address


netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
134.139.23.3    0.0.0.0         255.255.255.255 UH        0 0          0
ppp0
0.0.0.0         134.139.23.3    0.0.0.0         UG        0 0          0
ppp0

exit

Script done on Wed Dec  6 14:19:04 2000

Here's my local settings  in /etc:

Script started on Wed Dec  6 14:56:04 2000

127.0.0.1  localhost.localdomain  localhost


localhost.localdomain


resolv.conf
search csulb.edu
nameserver 134.139.1.2
nameserver 134.139.60.2


hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
#  allowed to use the local INET services, as decided
#  by the '/usr/sbin/tcpd' server.
#

# only allow access to localhost
ALL:127.


hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
#  *not* allowed to use the local INET services, as decided
#  by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular

# you should know that NFS uses portmap!

in.telnetd: ALL
in.ftpd: ALL


host.equiv
localhost


sysconfig/network-scripts/


`     grep localhost network-functions
    if [ "`hostname`" = "(none)" -o "`hostname`" = "localhost" -o \
  "`hostname`" = "localhost.localdomain" ]; then



exit

Script done on Wed Dec  6 15:04:18 2000

 
 
 

Ping localhost: 0 packets received, 100% packet loss RedHat 6.2

Post by Brian Wildasin » Sun, 31 Dec 1899 09:00:00



> Hi,
> Why can't I ping localhost?

> I have a dynamic dialup connection to my school's isp.

> Here's  what is happening. BTW I can't change the netmask for the
> loopback interface to what should be:  ifconfig lo netmask 255.0.0.0.
> See error below. Is that the problem?

Silly me. Just one button needs to be clicked in Linuxconf:

    linuxconf>Config>Networking>Client tasks>Name Services
Specification>DNS required for normal operation.    Make sure this button
is not checked.

That's all !

Brian

Script started on Wed Dec  6 17:35:18 2000

localhost
PING localhost.localdomain (127.0.0.1) from 127.0.0.1 : 56(84) bytes of
data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=255
time=0.4 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=255
time=0.3 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=255
time=0.3 ms

--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.3/0.3/0.4 ms

127.0.0.1
PING 127.0.0.1 (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=255
time=0.6 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=255
time=0.3 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=255
time=0.3 ms

--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.3/0.4/0.6 ms


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:3888 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3888 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

ppp0      Link encap:Point-to-Point Protocol
          inet addr:134.139.23.202  P-t-P:134.139.23.5
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:600 errors:139 dropped:0 overruns:0 frame:139
          TX packets:620 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10



localhost
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.

Red Hat Linux release 6.2 (Zoot)
Kernel 2.2.14-5.0 on an i586
login: brian
Password:
Last login: Wed Dec  6 17:34:46 from localhost

pwd
/home/brian

  PID TTY          TIME CMD
 1184 pts/3    00:00:00 bash
 1206 pts/3    00:00:00 ps

logout
[H [2JConnection closed by foreign host.

[00m [34;01;07;47mBook_php [00m
[00mlynx_bookmarks.html [00m
[34;01;07;47mIopener [00m                       [34;01;07;47mmail [00m
[34;01;07;47mMail [00m                           [00mmbox [00m
[34;01;07;47mNews [00m                           [00mmysql_note:tmp
mysql.sock.txt [00m
[00mNo_route_to_localhost.html [00m     [34;01;07;47mnews [00m
[00mREADME-source [00m                 [34;01;07;47mnsmail [00m
[00mREADME-source_navigator.html [00m   [00mpinging_localhost.html [00m
[00mRe_pinging_localhost.html [00m     [00mprofile [00m
[34;01;07;47mRp3_vwdial [00m                     [00mps.tmp [00m
[34;01;07;47mSoftware [00m
[01;32;07;40mps_ax.sh [00m
[34;01;07;47mWorkspace [00m
[01;32;07;40mrdate.sh [00m
[00mXmasLetter2000.doc [00m             [00mrxvt-help.txt [00m
[00mYahoo_messenger_install.html [00m
[01;31;07;47msawmill-gnome-0.24-3.i386.rpm [00m
[00mdb_notes.ps_page_2 [00m             [34;01;07;47msawmill-themer [00m
[00mdb_notes2.PDF [00m
[01;31;07;47msawmill-themer-0.24-3.i386.rpm [00m
[00mdead.letter [00m                   [00msetterm-help.txt [00m
[00mdircolors.txt [00m                 [00msignup.html [00m
[00menv-brian.txt [00m                 [00mt
brian]typescript-ping-localhost.txt2 ifconfig [00m
[00menv-root.txt [00m                   [00mtypescript-gnome.txt [00m
[00mfixing_localhost.html [00m
[00mtypescript-localhost-settings.txt [00m
[34;01;07;47mflash [00m
[00mtypescript-ping-localhost.txt2 [00m
[00mindex-cecs.html [00m
[00mtypescript-testing-localhost.txt [00m
[00mloopback_device_problem.html [00m   [00m~.newsrc [00m

localhost
Connected to localhost.localdomain.
220 localhost.localdomain FTP server (Version wu-2.6.0(1) Mon Feb 28
10:30:36 EST 2000) ready.
Name (localhost:brian): brian
331 Password required for brian.
Password:
230-Please read the file README-source
230-  it was last modified on Wed Nov 29 20:21:44 2000 - 7 days ago
230-Please read the file README-source_navigator.html
230-  it was last modified on Wed Nov 29 20:22:25 2000 - 7 days ago
230 User brian logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/home/brian" is current directory.
ftp> exit
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 520 bytes in 0 transfers.
221-Thank you for using the FTP service on localhost.localdomain.
221 Goodbye.


http://127.0.0.1 [7Plocalhost
[?1048h [?1047h [1;24r [4l (B )0 [m [39m [49m [1;24r [H [2J [22;1H [1m [33m [44mLooking
up localhost first.Getting
http://localhost/ [m [39m [49m [K [1m [33m [44mLooking up
localhost. [m [39m [49m [K [1m [33m [44mMaking HTTP connection to
localhost.Sending HTTP request. [m [39m [49m [K [1m [33m [44mHTTP request
sent; waiting for response. [22;5H/1.1 200 OK [m [39m [49m [K [1;18HTest
Page for the Apache Web Server on Red Hat Linux (p1 of 3) [3;34HTest
Page [5;4HThis page is used to test the proper operation of the Apache
Web [6;4Hserver after it has been installed. If you can read this page,
it [7;4Hmeans that the Apache Web server installed at this site is
working [8;4Hproperly. [9;21H___________________________________ [11;16HIf
you are the administrator of this website: [13;6HYou may now add content to
this directory, and replace this page. [14;6HNote that until you do so,
people visiting your website will see [15;6Hthis page, and not your
content. [16;21H___________________________________ [18;18HIf you are a
member of the general public: [20;6HThe fact that you are seeing this page
indicates that the website [21;6Hyou just visited is either experiencing
problems, or is undergoing
[1m [33m [44mData transfer complete [23;3H [m [39m [49mArrow keys: Up and
Down to move.  Right to follow a link; Left to go back. [24;2HH)elp
O)ptions P)rint G)o M)ain screen Q)uit /=search [delete]=history
list [22;1H [1m [33m [44m-- press space for next page --Are you sure you
want to quit? (y)


exit

Script done on Wed Dec  6 17:38:49 2000

 
 
 

Ping localhost: 0 packets received, 100% packet loss RedHat 6.2

Post by Steve Marti » Fri, 08 Dec 2000 11:08:40



> ifconfig -a
> lo        Link encap:Local Loopback
>           LOOPBACK  MTU:3924  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:0

> ppp0      Link encap:Point-to-Point Protocol
>           POINTOPOINT NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:954 errors:180 dropped:0 overruns:0 frame:180
>           TX packets:982 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:10

If this is a complete printout, it looks like your loopback
interface isn't up. The word "UP" should show just before
the word "LOOPBACK" in the listing above for the lo interface.
Try the command

    ifconfig lo up

to see if it brings the interface up.

 
 
 

1. 100% packet loss on ping -- PPP/Slackware

Hi,

I've been trying to get out onto the internet thru Linux with PPP.  I'm
working on connecting manually until I get all the kinks worked out.
Basically, I dial out thru xminicom and get a ppp session going with my
isp.  I close xminicom without resetting the line, and then from an xterm
window type in

pppd /dev/cua1

I then type in

ifconfig ppp0

This shows that I have an ip address assigned to me and that Point-to-Point
is UP AND RUNNING.

One thing I've noticed at this point is that I get RX and TX errors.

Anyway, when I try to ping an ip address, I get 100% packet loss.

I have Slackware 96 (based on Linux 2.0.0).  Any ideas?  I'd appreciate the
input!

Joe Helton

2. prevent Telnet from being denied by firewalls

3. PPP, ping and 100% packet loss

4. Linux Ether to Ether routing problems

5. two computer network, 100% packet loss

6. Name server problems [NAMEd]

7. 100% packet loss with new router - help!

8. Linux & #9 Motion FX 771 2 MB VRAM PCI

9. high packet loss w/ packet size > 1024 byte

10. 99% packet loss to localhost ?

11. Ping 100% loss, 100% frame errors - help!

12. ping -f packet loss on linux

13. Ping -f has 97% packet loss?