LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connecting linux and windows (https://www.linuxquestions.org/questions/linux-networking-3/connecting-linux-and-windows-192675/)

nawialkair 06-12-2004 10:01 AM

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

david_ross 06-12-2004 01:48 PM

Welcome to LQ.

Do you have links lights on the hub and on the network cards in each PC?

nawialkair 06-12-2004 04:16 PM

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

david_ross 06-12-2004 04:30 PM

Is this a new switch? Perhaps it has a fault or has been seperated in vlans.

nawialkair 06-16-2004 03:57 PM

Nope

I tested the switch with the same computer when using windows.

jschiwal 06-16-2004 04:24 PM

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!

necrotic 06-16-2004 10:31 PM

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.

nawialkair 06-19-2004 08:09 AM

Problem resolved
I switched to fedora core 2.
I got the network on in less than 2 minutes.


Thanks ALL


All times are GMT -5. The time now is 06:17 PM.