-   Linux - Networking (
-   -   can't see other machines but they can see each other (

Silly22 11-20-2002 03:06 AM

can't see other machines but they can see each other
I'm having weird problems similar to the ones in these posts:

I have three machines, a Mandrake linux 8.1 box, a winXP box and a win98 box. I have a hub and an ADSL modem. The ISP automatically assigns IP addresses through DHCP. The linux box runs an ssh server and my win98 box runs a VNC server.

The linux box has two NICs. Recently, I set up a NAT using the linux box to masquerade. Thus, the linux box had one NIC (eth0) connected to the ADSL modem through a hub and the other NIC (eth1) connected directly (with a crossover cable) to the winXP box. My win98 box was also connected thru the ADSL modem. So I had two boxes which got their separate IPs from my ISP. That is, the win98 box and linux box each were assigned an IP using dhcp from my ISP. My winXP box was assigned an IP by my linux box because it ran a dhcp daemon.
I started to surf the net and test out different protocols and ports to see if my NAT was working properly. Here's what happened:
I could ssh from my XP box to my linux box using either the linux box's Intranet IP ( or it's ISP assigned IP.
I could not connect to my win98 box's VNC server from either my winxp box or the linux machine.
My win98 machine could not ssh to my linux machine (of course I had to use the linux machine's ISP assigned IP).

Currently, I have set up my winXP machine to go thru the HUB and directly to the ADSL modem so that it also receives its own IP from my ISP. So I have all three machines getting different IPs from my ISP. eth1 of linux box is no longer in use.
Here's the situation now:
I can connect to my win98 machine's VNC server from my winXP box. They can also ping each other.
My friend, also on the same ISP, can ping all of my machines, he can ssh to my linux box and connect to my VNC server on the win98 box.
I can't get either of my win98 or winXP machines to ssh to my linux box.
The linux box can not connect to the win98 machine's VNC server.
Neither of my windows machines can ping my linux box.
My linux box can not ping my windows machines. Traceroutes to these windows machines shows only '*' (stars).
My linux box can ping very similar addresses to my win98's IP address. That is, while my win98 machine's address is ABC.DEF.GHI.91. My linux box can successfully ping ABC.DEF.GHI.16
Remember... the IP addresses i'm using now are the ones assigned by my ISP.

I just thought of something... maybe it's because I haven't turned off my dhcp daemon yet. but that shouldn't effect anything because eth1 which previously leased out IP addresses isn't even in use anymore. ethernet 1's light isn't even on.

It's like my linux box remembers my windows machines and refuses to connect to them. Please help!!!!! anyone have a clue what's going on?

Silly22 11-20-2002 03:28 AM

BTW, using the command "ifconfig -a"
eth0 Link encap:Ethernet HWaddr 00:##:##:##:##:DB
inet addr:1##.###.###.### Bcast:1##.###.155.255 Mask:
RX packets:3261 errors:0 dropped:0 overruns:0 frame:0
TX packets:3050 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:100
RX bytes:1163364 (1.1 Mb) TX bytes:426449 (416.4 Kb)
Interrupt:11 Base address:0x6000

eth1 Link encap:Ethernet HWaddr 00:##:##:##:##:B6
inet addr: Bcast: Mask:
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:12016 (11.7 Kb)

lo Link encap:Local Loopback
inet addr: Mask:
RX packets:929 errors:0 dropped:0 overruns:0 frame:0
TX packets:929 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:65501 (63.9 Kb) TX bytes:65501 (63.9 Kb)

traceroute to my win98 machine from the linux machine gives:
traceroute to 1##.###.###.### (1##.###.###.###), 30 hops max, 38 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *

% route

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface    *      U    0      0        0 eth1
ABC.D9.152.0    *      U    0      0        0 eth0      *          U    0      0        0 lo
default        ABC.D9.152.1        UG    0      0        0 eth0

All times are GMT -5. The time now is 10:01 AM.