LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Can ping to the internet but not to the computer 3 foot away. Why not? (https://www.linuxquestions.org/questions/red-hat-31/can-ping-to-the-internet-but-not-to-the-computer-3-foot-away-why-not-164402/)

Tiyogi 03-30-2004 10:33 PM

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.

linuXBOX 03-30-2004 10:50 PM

Do you have a software firewall (blackice, zonealarm, etc.) on the win98 computer?

Tiyogi 03-31-2004 06:24 AM

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?

acid_kewpie 03-31-2004 06:33 AM

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....

Tiyogi 03-31-2004 08:58 AM

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???????

acid_kewpie 03-31-2004 12:05 PM

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.

Tiyogi 03-31-2004 01:00 PM

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.

r_morris 03-31-2004 03:04 PM

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

Tiyogi 04-02-2004 09:04 PM

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.

maxut 04-03-2004 02:33 AM

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.

Tiyogi 04-03-2004 05:34 AM

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.


All times are GMT -5. The time now is 08:36 AM.