LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-20-2002, 03:06 AM   #1
Silly22
LQ Newbie
 
Registered: Mar 2002
Location: Edmonton, AB
Distribution: Mandrake 10.2, Ubuntu 6.10
Posts: 26

Rep: Reputation: 15
can't see other machines but they can see each other


I'm having weird problems similar to the ones in these posts:
http://www.linuxquestions.org/questi...878#post115878
http://www.linuxquestions.org/questi...threadid=35889

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 (192.168.0.1) 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?
 
Old 11-20-2002, 03:28 AM   #2
Silly22
LQ Newbie
 
Registered: Mar 2002
Location: Edmonton, AB
Distribution: Mandrake 10.2, Ubuntu 6.10
Posts: 26

Original Poster
Rep: Reputation: 15
BTW, using the command "ifconfig -a"
gives:
eth0 Link encap:Ethernet HWaddr 00:##:##:##:##B
inet addr:1##.###.###.### Bcast:1##.###.155.255 Mask:255.255.252.0
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
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:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
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)
Interrupt:10

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: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
outputs:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
ABC.D9.152.0    *               255.255.252.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         ABC.D9.152.1    0.0.0.0         UG    0      0        0 eth0
 
  


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
rely between machines bijuhpd Linux - Newbie 3 12-01-2005 01:56 AM
old machines joe6pack Linux - General 2 03-18-2005 07:56 AM
Scan machines markham82 Linux - Networking 1 12-01-2004 06:44 AM
Can't see other machines AtomicToad Linux - Networking 7 11-19-2002 08:00 PM
Virtual Machines ZoZo Linux - General 2 09-23-2002 12:01 AM

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

All times are GMT -5. The time now is 11:04 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