Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
|
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 2nd, 2004, 05:04 AM
Authorized User
 
Join Date: Jul 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default Why Linux can't visit public net?

My computer's OS is Red Hat Linux7.3,I can ping this Linux computer from other computers,but in this Linux computer,I ping publish net,I fount I can't ping it,and I can't visit public net in Red Hat Linux7.3,for example:
[root@www root]# ping www.sina.com
ping: unknown host www.sina.com

Then I try ping gateway,I got follow result:
[root@www root]# ping 210.xx.xx.xx
PING 210.xx.xx.xx (210.xx.xx.xx) from 210.xx.xx.xx : 56(84) bytes of data.
From 210.xx.xx.xx icmp_seq=1 Packet filtered
From 210.xx.xx.x x icmp_seq=2 Packet filtered
From 210.xx.xx.xx icmp_seq=3 Packet filtered
From 210.xx.xx.xx icmp_seq=4 Packet filtered
From 210.xx.xx.xx icmp_seq=5 Packet filtered

--- 210.xx.xx.xx ping statistics ---
5 packets transmitted, 0 received, +5 errors, 100% loss, time 4012ms

Then I try to ping DNS Server,I found I can't ping it!
[root@www root]# ping 210.x.x.x
connect: Network is unreachable

Then I use Windows OS,I configure IP address,gateway and DNS as same as Red Hat Linux7.3,I found I can ping public net and visit public net,like follows:
C:\Documents and Settings\Administrator>ping www.sina.com

Pinging us.sina.com.cn [66.77.9.79] with 32 bytes of data:

Reply from 66.77.9.79: bytes=32 time=190ms TTL=237
Reply from 66.77.9.79: bytes=32 time=181ms TTL=237
Reply from 66.77.9.79: bytes=32 time=190ms TTL=237
Reply from 66.77.9.79: bytes=32 time=181ms TTL=237

Ping statistics for 66.77.9.79:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 181ms, Maximum = 190ms, Average = 185ms

Why can't I ping and visit public net under Red Hat Linux7.3? I am a beginer in Linux,please give me detail command.
Thanks in advance!

Best regards,
Edward

 
Old September 7th, 2004, 09:55 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I suspect you have got your routing tables set up wrongly
Can we see the output of the following commands?

route -n
ifconfig -a

--
Don't Stand on your head - you'll get footprints in your hair. http://charlieharvey.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
public article - public articledetails _keysersoze_ BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 8th, 2007 08:38 AM
.net remoting problem while hosting in public IIS dotnetpranker C# 3 March 19th, 2007 07:05 AM
Chapter 13, can not visit the public property Artistry BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 August 25th, 2005 02:16 AM
Refresh problem with ASP.NET on Linux jacob ASP.NET 1.0 and 1.1 Professional 1 January 23rd, 2005 03:10 PM
.NET on Linux planeswalk .NET Web Services 1 January 27th, 2004 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.