LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 03-30-2004, 11:33 PM   #1
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Rep: Reputation: 15
Can ping to the internet but not to the computer 3 foot away. Why not?


I think I have a working nic card.
[root@localhost root]# /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:C0:F0:56:44:2B
inet addr:196.168.0.3 Bcast:196.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1239 errors:1 dropped:0 overruns:0 frame:0
TX packets:208 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:86253 (84.2 Kb) TX bytes:8736 (8.5 Kb)
Interrupt:5 Base address:0x2000

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:213 errors:0 dropped:0 overruns:0 frame:0
TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16691 (16.2 Kb) TX bytes:16691 (16.2 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:12.76.47.192 P-t-P:199.70.80.13 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1514 Metric:1
RX packets:1768 errors:0 dropped:0 overruns:0 frame:0
TX packets:2046 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1400313 (1.3 Mb) TX bytes:320056 (312.5 Kb)

I have ping the out side world and got a proper response.

[root@localhost root]# ping bbc.co.uk
PING bbc.co.uk (212.58.228.154) from 12.76.47.192 : 56(84) bytes of data.
64 bytes from bogons.mh.bbc.co.uk (212.58.228.154): icmp_seq=1 ttl=242 time=319 ms
64 bytes from bogons.mh.bbc.co.uk (212.58.228.154): icmp_seq=2 ttl=242 time=317 ms
64 bytes from bogons.mh.bbc.co.uk (212.58.228.154): icmp_seq=3 ttl=242 time=317 ms

--- bbc.co.uk ping statistics ---
4 packets transmitted, 3 received, 25% loss, time 16638ms
rtt min/avg/max/mdev = 317.733/318.287/319.260/0.948 ms

and
[root@localhost root]# ping 212.58.228.154
PING 212.58.228.154 (212.58.228.154) from 12.76.47.192 : 56(84) bytes of data.
64 bytes from 212.58.228.154: icmp_seq=1 ttl=242 time=240 ms
64 bytes from 212.58.228.154: icmp_seq=2 ttl=242 time=199 ms
64 bytes from 212.58.228.154: icmp_seq=3 ttl=242 time=203 ms
64 bytes from 212.58.228.154: icmp_seq=4 ttl=242 time=199 ms
64 bytes from 212.58.228.154: icmp_seq=5 ttl=242 time=207 ms

--- 212.58.228.154 ping statistics ---
6 packets transmitted, 5 received, 16% loss, time 5017ms
rtt min/avg/max/mdev = 199.203/209.811/240.500/15.618 ms


But if I attempt to ping to the computer 3 foor away.

[root@localhost root]# ping iwill
PING IWILL (169.254.133.224) from 12.76.47.192 : 56(84) bytes of data.

--- IWILL ping statistics ---
10 packets transmitted, 0 received, 100% loss, time 9012ms

and

[root@localhost root]# ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) from 12.76.47.192 : 56(84) bytes of data.

--- 192.168.0.2 ping statistics ---
20 packets transmitted, 0 received, 100% loss, time 19012ms


"iwill" is the name of the other computer and 192.168.0.2 is the address I got off the WIn98 Winconfig page.

The infor from the Win 98 Wincofig is

Host name IWILL
Dns Server 198.168.0.1
Node Type Broadcast
IP Routing Enabled (a check mark in box)
===================
Ethernet Adapter Information
IP address 192.168.0.2
Subnet Mask 255.0.0.0
Default Gateway 192.168.0.1
DHCP Server 192.168.0.1


And if I try ping from the Win98 to the linux all packets are lost , with "Request time out".

Here is more info
[b]
[root@localhost root]# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (1 references)
target prot opt source destination
ACCEPT udp -- ns6.worldnet.att.net anywhere udp spt:domain dpts:1025:65535
ACCEPT udp -- ns28.worldnet.att.net anywhere udp spt:domain dpts:1025:65535
ACCEPT udp -- 196.168.0.1 anywhere udp spt:domain dpts:1025:65535
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpt:nfs reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
[/b}

Well thats all of the info I have.
What is the problem? And how do I cure it.
And what is really my address I should be using ? In one place it is 12.76.47.192 but I have th static address set to 196.168.0.3. So I am confused.

All information was gather under the "root" user.
 
Old 03-30-2004, 11:50 PM   #2
linuXBOX
Member
 
Registered: Jul 2003
Location: Stuart,FL
Distribution: Fedora Core 3 and Slackware 10.0
Posts: 179

Rep: Reputation: 30
Do you have a software firewall (blackice, zonealarm, etc.) on the win98 computer?
 
Old 03-31-2004, 07:24 AM   #3
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by linuXBOX
Do you have a software firewall (blackice, zonealarm, etc.) on the win98 computer?
No, there is no firewall on the Win98 machine.
Linux machine has the default firewall set to high. According to the "Kickstart" configuror".

I do not have a IP address setup in the "Kickstart" it set to DHCP yet I have set a "Static IP address" in my nic configator. Could this be a problem?

Should I go into "kickstart" and add the address there?
Should I change it to "Static IP address"?
Or
Should I leave it along?

Any ideas as what to do?
 
Old 03-31-2004, 07:33 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
it looks like the subnets you have set up are wrong.

Quote:
inet addr:196.168.0.3 Bcast:196.168.0.255 Mask:255.255.255.0
this "local" address does not fit into your subnet mask, as it starts with 192, not 196 which your linux machine does. as it is not within this definition, the ICMP packets will be routed via your predefined gateway. which will naturally time out as the data will not have gone near the intended machine.

Basically, your IP address needs correcting. as a default class C subnet it should normamly be on 192.168.0.0 anyway, not 196....
 
Old 03-31-2004, 09:58 AM   #5
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
it looks like the subnets you have set up are wrong.



this "local" address does not fit into your subnet mask, as it starts with 192, not 196 which your linux machine does. as it is not within this definition, the ICMP packets will be routed via your predefined gateway. which will naturally time out as the data will not have gone near the intended machine.

Basically, your IP address needs correcting. as a default class C subnet it should normamly be on 192.168.0.0 anyway, not 196....
Hi Chris,

There seems to be a number a of place that there are IP Address to be entered. [list=1][*]The Menu under Kickstart "Netwrok Configuration"[*]The menu for configuring "Network Device Control"[*]The DNS tab under the "Network Configuration"[*]The "ethernet device"[/list=1]
So you see why I am confused, I have a number of choice but I do not know which controls which.
So where exactly am I change this address???????
 
Old 03-31-2004, 01:05 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
the be all and end all of what to change is /etc/sysconfig/network-scripts/ifcfg-eth0 you can easily set a static IP there, or also from that file declare it should use DHCP. it si that file that every other interface will eventually control.
 
Old 03-31-2004, 02:00 PM   #7
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Original Poster
Rep: Reputation: 15
Ok acid_kewpie

Where exactly are the address coming from am I just making them up? Does my 5 way hub assign them? I would like to know where these magical numbers come from.
There four places that have addresses with 4 different address. You had mentioned that the numbers starting with "196" should really be "192"'s so do I just change 196 to 192 where ever it is?
Also you mentioned changing the "DHCP" . It sounds like I change to a static address or use the DHCP" but not both. I am understanding this correctly?

Here is the file

DEVICE=eth0
ONBOOT=no
BOOTPROTO=none
IPADDR=196.168.0.3==Is this the address to change right?
NETMASK=255.255.255.0==Leave this one alone??
TYPE=Ethernet
USERCTL=no
PEERDNS=no==This is the DNS to change "YES" ?
NETWORK=196.168.0.0===What is this address for ? Do I change it?
BROADCAST=196.168.0.255===What is this address for?? Do I change it?




Sorry if I seem overly cautious but I messed with my network and modem once before and it took me a week to figure out how to get back into my system. So I do not want to have to go thru that again.
 
Old 03-31-2004, 04:04 PM   #8
r_morris
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
root@localhost root]# ping iwill PING IWILL (169.254.133.224) from 12.76.47.192 : 56(84) bytes of data. --- IWILL ping statistics --- 10 packets transmitted, 0 received, 100% loss, time 9012ms

Further problems. 169.254.x.x numbers are for when an interface can't reach a DHCP server, it self assigns in this range.
When you try to ping, it goes through the PPP interface. That's where the 12.76.47.192 address is.

If you have:
modem------computer-----nic---------hub----other computers-----

Then there either needs to be a DHCP server that is handling the computers off of the hub, or you need to assign an IP address to them. Don't just pick IPs at random. google on 'private ip range'.
192.168.0.0/24 is the one every one seems to use. I have a 'dsl router' in place where I have hub listed above. It's capable of doing DHCP, then I just put the computer w/modem on the wan port on the DSL/router, then I have the modem-computer set to forward traffice for the network. I go online, then all the computers in the house can browse the internet.
If you self assign, the computer w/modem would be considered the gateway.
In the above scenario, I'd call the gateway: 192.168.0.1, with 255.255.255.0 for a subnet mask. I would then assign the other computers IPs in the 192.168.0.2-10 range (I don't have that many). Same subnet, but use 192.168.0.1 as the gateway. On the modem-computer, I'd leave the default route alone, when it dials, it will assign the default route the PPP connection.

roger
 
Old 04-02-2004, 10:04 PM   #9
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Original Poster
Rep: Reputation: 15
Ok, what I did was as adviced change my IP address. From 196.xx to a 192.xx , this seem to solve my problem now I can at least ping to the Win98 and Linux

With this problem solved we seek out the next solution.

Getting Samba-Swat to work.

Thanks for all the help. Hope I can help you out in the future.
 
Old 04-03-2004, 03:33 AM   #10
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
first have u installed samba and swat?
if its so,
then start swat daemon.
1 - type "ntsysv" in terminal and mark swat with * .
2 - u must restart or reload xinetd service. because swat works as a xinetd sub service.
restart xinetd: "/etc/rc.d/init.d/xinetd restart" .

3 - then open your browser type "localhost:901" in address bar. login with root and enjoy.
 
Old 04-03-2004, 06:34 AM   #11
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by maxut
first have u installed samba and swat?
if its so,
then start swat daemon.
1 - type "ntsysv" in terminal and mark swat with * .
2 - u must restart or reload xinetd service. because swat works as a xinetd sub service.
restart xinetd: "/etc/rc.d/init.d/xinetd restart" .

3 - then open your browser type "localhost:901" in address bar. login with root and enjoy.
Thanks Maxnut ,

I have started a new post on this subject. A few questions about Samba-Swat.

I am able to bring Swat up but I do not understand what it is asking for actually.
Again thanks for the help in trying to teach an old dog new tricks.
See you at the other post.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can ping network computer, cannot ping google.com (help needed) ben_build#2.1.0 Linux - Wireless Networking 23 11-07-2010 01:55 PM
FC4 won't ping 127.0.0.1 or the internet, but will ping local computers jalsk Linux - Networking 4 11-22-2005 06:59 PM
Internet is slower on my win computer than on my linux computer eXor Linux - Networking 1 12-03-2004 09:58 AM
Can ping network but can't ping any internet ip when I hard set the ip Streme Linux - Wireless Networking 4 04-13-2004 10:18 AM
I can't ping to any windows computer durukan Linux - Networking 3 07-23-2003 01:47 PM


All times are GMT -5. The time now is 02:30 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration