LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-07-2002, 09:24 AM   #1
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Rep: Reputation: 15
Winodws XP does not see Linux box on network


I recently updated to Windows XP and have run into a few problems setting up my network so that XP can communicate with my Linux box.

I dual boot Linux with Win98. Win98 pulls the IP of 192.168.1.2.

I have a Linksys Etherfast Cable/DSL Router with DHCP turned off.
Here is what I have done so far.

1. I boot up Linux, and I check DrakConf. Linux is set to pull a static IP of 192.168.1.4.

2. I ping the router at 192.168.1.1 and get a response.

3. I ping my WindowsXP machine at 192.168.1.3 and get a response.

4. I try the reverse from WindowsXP and I get a "request timed out" error when trying to ping Linux.

5. I also have an Apache server set up on Linux, and I can view the server from WinXP by typing in "http://192.168.1.4/"

I would appreciate solving this one on my own, so just a few pointers are all I'm looking for.

Thanks for taking the time to read this

Last edited by GabeF; 09-07-2002 at 03:15 PM.
 
Old 09-07-2002, 04:06 PM   #2
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
I don't know how relevent or helpful this is, but here is the output from...

% ifconfig

eth0 Link encap:Ethernet HWaddr 00:02:E3:13:C3:AE
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1898 errors:0 dropped:0 overruns:0 frame:0
TX packets:751 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:267861 (261.5 Kb) TX bytes:78850 (77.0 Kb)
Interrupt:5 Base address:0xb000

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:3481 errors:0 dropped:0 overruns:0 frame:0
TX packets:3481 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1553903 (1.4 Mb) TX bytes:1553903 (1.4 Mb)

__________________________

and '% netstat -rn':

(hashes added for clarity)

Kernel IP routing table
Destination##Gateway##Genmask##Flags##MSS##Window## irtt##Iface
192.168.1.0##0.0.0.0##255.255.255.0##U##40##0##0##eth0
127.0.0.0##0.0.0.0##255.0.0.0##U##40##0##0##lo
0.0.0.0##192.168.1.1##0.0.0.0##UG##40##0##0##eth0
 
Old 09-07-2002, 04:12 PM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Do you have a firewall installed?

On the linux box:
Code:
iptables -L -v

Last edited by markus1982; 09-07-2002 at 04:20 PM.
 
Old 09-07-2002, 04:50 PM   #4
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
Yes I have firewall installed. I don't know how to remove it, so I tried to allow everything.

Here is the output from that command:

Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP tcp -- !lo any anywhere 127.0.0.0/8
3227 1582K ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
806 63234 ACCEPT all -- lo any anywhere anywhere
0 0 DROP all -- any any BASE-ADDRESS.MCAST.NET/4 anywhere
1228 174K PUB_IN all -- eth+ any anywhere anywhere
0 0 PUB_IN all -- ppp+ any anywhere anywhere
0 0 PUB_IN all -- slip+ any anywhere anywhere
0 0 DROP all -- any any anywhere anywhere

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT 3501 packets, 1555303 bytes)
pkts bytes target prot opt in out source destination
755 73246 PUB_OUT all -- any eth+ anywhere anywhere
0 0 PUB_OUT all -- any ppp+ anywhere anywhere
0 0 PUB_OUT all -- any slip+ anywhere anywhere

Chain INT_IN (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmp -- any any anywhere anywhere
0 0 DROP all -- any any anywhere anywhere

Chain INT_OUT (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmp -- any any anywhere anywhere
0 0 ACCEPT all -- any any anywhere anywhere

Chain PUB_IN (3 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmp -- any any anywhere anywhere icmp destination-unreachable
0 0 ACCEPT icmp -- any any anywhere anywhere icmp echo-reply
0 0 ACCEPT icmp -- any any anywhere anywhere icmp time-exceeded
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dptop2
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:domain
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:imap
2 88 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ftp-data
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ftp
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dptop3
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:telnet
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:https
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:smtp
0 0 ACCEPT udp -- any any anywhere anywhere udp dpt:domain
0 0 LOG tcp -- any any anywhere anywhere tcp dpt:telnet state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG tcp -- any any anywhere anywhere tcp dpt:ftp state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG tcp -- any any anywhere anywhere tcp dpt:imap state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG tcp -- any any anywhere anywhere tcp dptop3 state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG tcp -- any any anywhere anywhere tcp dpt:finger state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG tcp -- any any anywhere anywhere tcp dpt:sunrpc state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG tcp -- any any anywhere anywhere tcp dpt:exec state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG tcp -- any any anywhere anywhere tcp dpt:login state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG tcp -- any any anywhere anywhere tcp dpt:tacnews state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG tcp -- any any anywhere anywhere tcp dpt:ssh state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
0 0 LOG udp -- any any anywhere anywhere udp dpt:31337 state INVALID,NEW limit: avg 5/sec burst 8 LOG level warning prefix `audit'
12 720 DROP icmp -- any any anywhere anywhere
1214 173K DROP all -- any any anywhere anywhere

Chain PUB_OUT (3 references)
pkts bytes target prot opt in out source destination
0 0 REJECT icmp -- any any anywhere anywhere icmp destination-unreachable reject-with icmp-port-unreachable
0 0 REJECT icmp -- any any anywhere anywhere icmp time-exceeded reject-with icmp-port-unreachable
755 73246 ACCEPT all -- any any anywhere anywhere

Thanks again for your time.

Last edited by GabeF; 09-07-2002 at 04:51 PM.
 
Old 09-07-2002, 05:00 PM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
to stop your firewall try
Code:
/etc/rc.d/init.d/iptables stop
don't know what distro you have ...
 
Old 09-08-2002, 10:57 AM   #6
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
Ok thanks. I'll try that right away. Sorry I didn't include it earlier. I am running Mandrake 8.0
 
Old 09-08-2002, 11:28 AM   #7
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Does it work by now? Or do you still need help?
 
Old 09-08-2002, 11:40 AM   #8
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
I ran that command and tried pinging my linux box again but received the same message. When I searched the forums for a similiar problem. I saw something about ICMP rejecting ping requests? If the firewall is off, it can't be the culprit, can it?

I just tried to telnet to my linux box from windows. It gave me the following error message:

"Could not open connection to the host, on port 23.
A connection attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because connected host
has failed to respond."

Would I be right in thinking that that means Linux is not getting the request?

Last edited by GabeF; 09-08-2002 at 05:40 PM.
 
Old 09-09-2002, 08:48 AM   #9
GabeF
Member
 
Registered: Mar 2002
Location: New Hampshire, US
Distribution: Mandrake 8.0, Redhat 8.0
Posts: 101

Original Poster
Rep: Reputation: 15
Alright I finally got XP to ping Linux. In case it might be helpful to anyone else, here is what I did:

--SEARCHED THE INTERNET Always start here!

--Found out some information about inetd (xinetd on my linux box) and then looked at the settings in /etc/xinetd.d/.

--Checked network settings in DrakConf and netconf.
I found out that the network driver in netconf did not match te one in DrakConf. hmmmmm. In DrakConf it chose natsemi, the universal one. In netconf, I had set it to rtl8139 (for Netgear FA311 Fast Ethernet PCI card).

--Checked iptables again (in /etc/rc.d/init.d/) and made sure it was off.

--Tried pinging again, and Voila!

Thanks a bunch for all the help from markus1982.

Last edited by GabeF; 09-09-2002 at 08:50 AM.
 
Old 09-09-2002, 01:20 PM   #10
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
No problem
 
  


Reply



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
Linux Network Problem carloconcillado Linux - Software 2 06-11-2005 10:02 PM
Mandriva Linux LE2005 Network problem X-men Mandriva 2 06-05-2005 04:49 AM
Network problem on rh linux borisys Red Hat 1 01-06-2004 07:04 AM
Linux network problem scracker Linux - Networking 11 10-18-2003 07:15 AM
Linux Laptop Network Problem topace Linux - Laptop and Netbook 19 07-08-2003 07:19 PM

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

All times are GMT -5. The time now is 03:53 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
Open Source Consulting | Domain Registration