LinuxQuestions.org
Visit Jeremy's Blog.
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 01-29-2003, 11:21 PM   #1
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
Problem pinging default gateway


My ISP has me on a 10.0.0.0/24 IP block. I'm am trying to ping the default gateway:

ping -I eth0 -c 1 10.0.0.1

but when I try to ping it as root I get an error message:

ping: sendmsg: Operation not permitted

route -n shows my routing tables:

Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0 <--

ifconfig -a eth0 shows my configuration:

inet addr:10.0.0.112 Bcast:10.0.0.255 Mask:255.255.255.0

I guess I'm not sure why I can't ping my default gateway but I can browse the Internet and ping other hosts (like yahoo.com)
 
Old 01-29-2003, 11:24 PM   #2
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
The gateway doesn't drop ICMP packets by any chance?

If your not sure, what distro are you running?
 
Old 01-29-2003, 11:33 PM   #3
robeb
Member
 
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
Red Hat 7.3 -- but wouldn't I would get a timeout message instead of an operation not permitted message if the gateway dropped packets?
 
Old 01-29-2003, 11:42 PM   #4
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
yeah, but i thought that i remember reading in a guide somewhere that the host machine could send a message back similar to that one...i think it was: http://www.linuxsecurity.com/resourc...-tutorial.html

otherwise, i have no idea....your able to ping other machines using the same command, only with the different IP, correct?
 
Old 01-29-2003, 11:46 PM   #5
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Isn't that the message you'd get if a firewall (your gateway is most likely a firewall) was set to REJECT instead of DROP?
 
Old 01-29-2003, 11:57 PM   #6
robeb
Member
 
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
Yes, I can ping other hosts outside of my network (it doesn't appear that there are any other hosts on my network, which is really odd since I live in a complex with about 600 other apartments).

I believe I read the same part of the tutorial you were refering to. According to the tutorial, " The following reject types are currently valid: icmp-net-unreachable, icmp-host-unreachable, icmp-port-unreachable, icmp-proto-unreachable, icmp-net-prohibited and icmp-host-prohibited. The default error message is to send an port-unreachable to the host."

I get a "ping: sendmsg: Operation not permitted" but I suppose you could set it up to be a custom message, too.

Very strange how 2 different ISP policies differ. When I was with AT&T Broadband they didn't care what I pinged or scanned. Now I'm with Qwest and they have me on private 10.0.0.0/24 network and won't give me static IP because they no longer support them. BS IMHO.
 
Old 01-30-2003, 12:34 AM   #7
robeb
Member
 
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
Ok, now I'm really confused. I hooked up my labtop (Windows XP)directly to the modem and now I can ping the gateway. Hell, I can even telnet to it. Can anyone tell me why I wouldn't be able to do this from my router?
 
  


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
Default gateway dooda5555 Linux - Networking 1 06-17-2005 11:43 AM
HELP default gateway MrSavage Linux - Newbie 2 01-10-2005 07:46 AM
Default Gateway rrosenkoetter Linux - Networking 3 08-27-2004 08:41 AM
default gateway avikosan Linux - Networking 3 12-09-2003 05:47 PM
What's a default gateway and do I need one? Travis86 Linux - Newbie 8 05-25-2003 05:44 PM

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

All times are GMT -5. The time now is 12:58 AM.

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