Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't PING !! (unknown protocol icmp) - SOLVED !
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
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Aug 01, 2002 12:39 pm    Post subject: Can't PING !! (unknown protocol icmp) - SOLVED ! Reply with quote

hi,
when i start ping (or tracerout, or any icmp protokol using program) i get:

# ping
ping: unknown protocol icmp.

??

But its getting worse, during compiling perl i now get during test:
lib/io_sock..........IO::Socket::INET: Bad protocol 'tcp' ...propagated at lib/io_sock.t line 37.
FAILED at test 1

But most programs still seem to work fine (like this mozilla 1.0, which i''m using to post), network seems to be ok, too. Any clues ?


Last edited by mglauche on Mon Aug 12, 2002 7:38 am; edited 1 time in total
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Thu Aug 01, 2002 12:53 pm    Post subject: Reply with quote

What does your /etc/protocols file look like? Sounds like it might be wacked out...

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Aug 01, 2002 12:55 pm    Post subject: Reply with quote

Code:

ip      0       IP              # internet protocol, pseudo protocol number
icmp    1       ICMP            # internet control message protocol
igmp    2       IGMP            # Internet Group Management
ggp     3       GGP             # gateway-gateway protocol
ipencap 4       IP-ENCAP        # IP encapsulated in IP (officially ``IP'')
st      5       ST              # ST datagram mode
tcp     6       TCP             # transmission control protocol
egp     8       EGP             # exterior gateway protocol
pup     12      PUP             # PARC universal packet protocol
udp     17      UDP             # user datagram protocol
hmp     20      HMP             # host monitoring protocol
xns-idp 22      XNS-IDP         # Xerox NS IDP
rdp     27      RDP             # "reliable datagram" protocol
iso-tp4 29      ISO-TP4         # ISO Transport Protocol class 4
xtp     36      XTP             # Xpress Tranfer Protocol
ddp     37      DDP             # Datagram Delivery Protocol
idpr-cmtp 38    IDPR-CMTP       # IDPR Control Message Transport
ipv6    41      IPv6            # IPv6
ipv6-route 43   IPv6-Route      # Routing Header for IPv6
ipv6-frag 44    IPv6-Frag       # Fragment Header for IPv6
idrp    45      IDRP            # Inter-Domain Routing Protocol
rsvp    46      RSVP            # Reservation Protocol
gre     47      GRE             # General Routing Encapsulation
esp     50      ESP             # Encap Security Payload for IPv6
ah      51      AH              # Authentication Header for IPv6
skip    57      SKIP            # SKIP
ipv6-icmp 58    IPv6-ICMP       # ICMP for IPv6
ipv6-nonxt 59   IPv6-NoNxt      # No Next Header for IPv6
ipv6-opts 60    IPv6-Opts       # Destination Options for IPv6
rspf    73      RSPF            # Radio Shortest Path First.
vmtp    81      VMTP            # Versatile Message Transport
ospf    89      OSPFIGP         # Open Shortest Path First IGP
ipip    94      IPIP            # IP-within-IP Encapsulation Protocol
encap   98      ENCAP           # Yet Another IP encapsulation
pim     103     PIM             # Protocol Independent Multicast
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Mon Aug 12, 2002 7:40 am    Post subject: Reply with quote

it was a wrongly configured nsswitch.conf ;) after a "strace ping" i saw ldap requests for the protocol, which is obviously wrong :P

The reason was i did copy some nsswitch.conf for ldap auth from somewhere, and didn't look into it very deeply :P

but now i did remove the ldap settings from the network files, and everything works fine agian. even ldap auth ;)
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