LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2003, 03:28 PM   #1
chapzilla
Member
 
Registered: May 2003
Posts: 37

Rep: Reputation: 15
Angry Cannot ping to, telnet to, but CAN use WWW from new linux box


Hi,

I just installed Linux on a box and am having troubles getting it configured properly for the network. I'm running Mandrake 9.1. I've put it on my network at work and can ping my Windows box from the Linux box. I can get out onto the internet. I can telnet into a Sun box from the Linux box. But, I can't see the Linux box on the network. I tried to have it ping itself, with no luck:

ping localhost

100% packet loss

Here's the results of ifconfig:

eth0 Link encap:Ethernet HWaddr 00:04:75:867:5A
inet addr:192.168.1.55 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:805 errors:0 dropped:0 overruns:1 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:69413 (67.7 Kb) TX bytes:552 (552.0 b)
Interrupt:17 Base address:0xd800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:512 errors:0 dropped:0 overruns:0 frame:0
TX packets:512 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:33582 (32.7 Kb) TX bytes:33582 (32.7 Kb)

WAIT!!! HALLEELUIA! I fixed the ping problem. In the file /etc/sysctl.conf I commented out the line net.ipv4.icmp_echo_ignore=1 and replaced it with net.ipv4.icmp_echo_ignor = 0

So, I can ping the linux box. WOO HOO!!!!

I still can't telnet to it. Here's what I've done to identify problems using telnet:

ps -ef | grep inet

root 10569 1 0 15:17 ? 00:00:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid

So, the daemon is up that should listen for telnet sessions, so what's the deal? What can I do to identify the problem?

Thanks,
 
Old 05-22-2003, 03:44 PM   #2
PhilD
Member
 
Registered: Mar 2003
Location: Iowa, US
Distribution: Mint
Posts: 174

Rep: Reputation: 30
One thing to check, are you running a firewall? Mandy 9.1 comes with shorewall. I am not exactly sure what the default is for the standard installation.

Check to see if it is running - as root - shorewall status
If it is, check the /etc/shorewall/policy and /etc/shorewall/rules to see if telnet is allowed.

Hope this helps,

PhilD

EDIT:
Also, if it is getting rejected by the firewall, you should have entries in the /var/log/messages file.

Last edited by PhilD; 05-22-2003 at 03:45 PM.
 
Old 05-22-2003, 03:52 PM   #3
chapzilla
Member
 
Registered: May 2003
Posts: 37

Original Poster
Rep: Reputation: 15
No firewall is running. I just checked. I don't have shorewall either, although I will be looking to set up a firewall in the near future.
 
Old 05-22-2003, 03:55 PM   #4
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
also check and see if telnet server is enabled in the /etc/xinetd.d directory
 
Old 05-22-2003, 03:56 PM   #5
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Use Guarddog for a nice frontend to iptables
 
Old 05-22-2003, 04:08 PM   #6
chapzilla
Member
 
Registered: May 2003
Posts: 37

Original Poster
Rep: Reputation: 15
How do I check if telnet is enabled in the xinetd.d directory? I listed the directory and got:

chargen
chargen-udp
cups-lpd
cvs
daytime
daytime-udp
echo
echo-udp
fam
linuxconf-web
proftpd-xinetd
rsync
servers
services
sshd-xinetd
time
time-udp
xadmin
 
Old 05-22-2003, 04:19 PM   #7
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
i am sorry buddy, all the while i was thinking about ftp server. i am really sorry.

it must be the iptables i guess. even though you dont have a firewall if you installed iptables and if the service is running then the dafault policy is set to drop.

so check if the service is running, if it is then do

'/etc/rc.d/init.d/iptables stop'
 
Old 05-22-2003, 04:23 PM   #8
chapzilla
Member
 
Registered: May 2003
Posts: 37

Original Poster
Rep: Reputation: 15
Well, it can't be iptables, because I don't have it in man pages or in /etc/rc.d/init.d/ directory. What's the name of the telnet daemon? How I know if xinetd can start/stop it?
 
Old 05-22-2003, 04:27 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Have you got the telnet-server package installed?
 
Old 05-22-2003, 04:31 PM   #10
chapzilla
Member
 
Registered: May 2003
Posts: 37

Original Poster
Rep: Reputation: 15
I do I check if the telnet package is installed? I assume I do as I did a server installation, but I'd still like to know how to check.
 
Old 05-22-2003, 04:33 PM   #11
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
if you are using a rpm based system, redhat or mandrake do

rpm -qa |grep telnet


and see if there is a telnet server installed.
 
Old 05-22-2003, 04:35 PM   #12
chapzilla
Member
 
Registered: May 2003
Posts: 37

Original Poster
Rep: Reputation: 15
rpm -qa | grep telnet produced:
telnet-client-krb5-1.2.7-1mdk
gnome-telnet-2.4-4mdk
 
Old 05-22-2003, 04:37 PM   #13
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
you dont have a telnet server installed. install the telnet server rpm from the cd's or download the rpm and install it.

once you install it the default is disable i guess, so you need to enable it. read the man pages for it and you can do it

Last edited by manthram; 05-22-2003 at 04:38 PM.
 
Old 05-22-2003, 04:42 PM   #14
chapzilla
Member
 
Registered: May 2003
Posts: 37

Original Poster
Rep: Reputation: 15
I'm real new, so please bear with me. I've found telnet-server-krb5-1.2.7-mdk.i586.rpm on one of the CDs. How do I install it?
 
Old 05-22-2003, 04:44 PM   #15
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
goto the directory where cdrom is mounted then

rpm -ivh telnet-serverxxxxxxxxx.rpm

man rpm for more options

you have to learn one thing and very important thing

then universal command "man"

Last edited by manthram; 05-22-2003 at 04:45 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any idea why this time I can not ping my LAN pc but can PING for ex. www.yahoo.com vakia Debian 5 09-28-2005 06:42 PM
Cannot ping linux box from XP box antare Linux - Networking 10 03-10-2005 10:48 AM
can't ping linux box jammy3 Linux - Newbie 3 12-03-2004 11:33 AM
Can ping but can not telnet/ftp/ssh my box fbarre Linux - Networking 10 04-20-2004 12:11 AM
Can't ping linux box Zero Linux - Networking 4 05-11-2002 01:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration