LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-12-2004, 10:01 AM   #1
nawialkair
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
Connecting linux and windows


Hi
I have two machines

M1 has XP SP1 installed and connected to the internet via sattelite.
M2 has mandrake 10 installed.

I have a network card in each machine.
They are connected using a small switch.

I gave each machine a static IP and made the ip of M1 the default gateway in M2.

I could not get the network up.
When I ping M2 from the M1 I get a time out response.
The same when I ping M1 from M2 I get this:
Destination Host Unreachable

Let me describe what I did exactly.
1- I went to hardDrake
2- I clicked on the network card then on run config tool
3- CHose lan network
4- I did not choose the manual choice
5- manual configuration
6- in the Ip address I entered 192.168.0.2
the netmask was 255.255.255.0
network hotplugging and start at boot are checked
7- Host name empty
DNS server 1 is automatically filled with 192.168.0.2
DNS server 2 empty
DNS server 3 empty
serach domain also empty
Gateway 192.168.0.1 which is the IP of the windows XP machine
zeroconf host name is also empty "I don't know what the hell it means"
Thats exactly what I did.


eth0 Link encap:Ethernet HWaddr 00:08:A1:3F:09:94
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:14 errors:1507 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2730 (2.6 Kb) TX bytes:504 (504.0 b)
Interrupt:5 Base address:0xe400

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


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


The content of resolve.conf is:
nameserver 192.168.0.2
# ppp temp entry
______
The ping of linux machine from linux itself

[root@localhost nawi]# ping -c 4 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.069 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=0.058 ms
64 bytes from 192.168.0.2: icmp_seq=3 ttl=64 time=0.057 ms
64 bytes from 192.168.0.2: icmp_seq=4 ttl=64 time=0.057 ms

--- 192.168.0.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.057/0.060/0.069/0.007 ms

The ping of the windows XP from linux box:
[root@localhost nawi]# ping -c 4 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.2 icmp_seq=1 Destination Host Unreachable
From 192.168.0.2 icmp_seq=2 Destination Host Unreachable
From 192.168.0.2 icmp_seq=3 Destination Host Unreachable
From 192.168.0.2 icmp_seq=4 Destination Host Unreachable

--- 192.168.0.1 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3000ms
, pipe 3

Windows XP pinging its own IP

Pinging 192.168.0.1 with 32 bytes of data:

Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128

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

When I ping the linux IP, I always get time out response
 
Old 06-12-2004, 01:48 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Welcome to LQ.

Do you have links lights on the hub and on the network cards in each PC?
 
Old 06-12-2004, 04:16 PM   #3
nawialkair
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your reply


And the answer to your question is yes.

One more thing
I don't have any firewall installed on the windows machine
 
Old 06-12-2004, 04:30 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Is this a new switch? Perhaps it has a fault or has been seperated in vlans.
 
Old 06-16-2004, 03:57 PM   #5
nawialkair
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Nope

I tested the switch with the same computer when using windows.
 
Old 06-16-2004, 04:24 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Do you have the bridge set up for the XP computer, between the XP nic and Satellite interface. It is the XP machine providing the NAT translation. The DNS entries should include the IP DNS machines also. You will need to look at the 'ipconfig' command on the XP for information on the IP's DNS.
Also run through the Firewall setup in the Linux machine. After the first screen, there will be a second on asking for the interface to use for internet access. Make sure that eth0 is selected and not ppp+.

What does the 'ipconfig /all' command on the XP show? Can you verify the IP address of the NIC card on the XP. What is the IP of the Satellite interface? Does it use DHCP or is it statically configurated.

Try giving both of your computers hostnames.

On the linux box, as root, type in the command 'service network restart'.
Which part if any fails?

I recently had a networking problem. Turned out that I needed to power-cycle the switch. After that it was OK. The switch/router DHCP server was working, and the lights indicated a connection, so I had thought that part was ok.

Good Luck!

Last edited by jschiwal; 06-16-2004 at 04:38 PM.
 
Old 06-16-2004, 10:31 PM   #7
necrotic
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Rep: Reputation: 0
I was about to post about this same problem, but I looked through the forum first (thank goodness).

I did 'service network restart' without any errors. Looked at eth0 in netcfg and no values where set, so I changed from DHCP to none and entered in IP as 192.168.0.2. PING 192.168.0.1 (this computer, w2k) didn't work.

Here's part of ipconfig:

Code:
Ethernet adapter Local:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : 3Com EtherLink 10/100 PCI TX NIC (3C905B-TX)
        Physical Address. . . . . . . . . : 00-50-04-68-5D-A4
        DHCP Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.0.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : 127.0.0.1
Thanks for the help.
 
Old 06-19-2004, 08:09 AM   #8
nawialkair
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Problem resolved
I switched to fedora core 2.
I got the network on in less than 2 minutes.


Thanks ALL
 
  


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
connecting windows 98 to linux wildeboer Linux - Networking 2 04-18-2005 11:40 AM
Connecting Windows XP to Linux bsengland Linux - Networking 2 12-16-2004 11:17 AM
Connecting Windows XP to linux shibdas Linux - Networking 1 07-05-2003 01:49 PM
Connecting Windows and Linux Joe Soap Linux - Newbie 4 02-20-2002 01:56 PM
Connecting Linux to a Windows ME machine amykhar Linux - Networking 2 05-08-2001 07:41 PM

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

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