LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-06-2004, 05:12 AM   #1
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Rep: Reputation: 15
Dead network


I want to connect my slackware machine to a Windows XP machine so that I can share the internet connection (The Windows machine is connected to broadband). I've tried running netconfig to set up the network, but when I try to ping the windows machine i get the message "Destination Host unreachable" and the windows machine doesn't even detect the fact that it is connected to the other machine....

how can I fix this?
 
Old 08-06-2004, 05:42 AM   #2
spook
LQ Newbie
 
Registered: Jun 2002
Location: UK
Distribution: slackware, freebsd, solaris,sunOS, IRIX
Posts: 18

Rep: Reputation: 0
Hi,

What is the output from the command "ifconfig"? If there is a working interface up, then try the "arp" command and it ought to show any machines that are connected to the subnet. I am not sure what the netconfig command does, so I am afraid that I cannot help you with its use. Networking an XP box and a Slackware box really ought to be straight forward as long as the XP box is correctly setup. You ought to be able to get a slackware box up on a network just by doing "ifconfig <ip>" as root. Hope this helps, but without more info I am not sure where the problem is.

Spook
.
 
Old 08-06-2004, 05:43 AM   #3
vrln
Member
 
Registered: Mar 2004
Location: Finland
Distribution: Gentoo
Posts: 235

Rep: Reputation: 30
This doesn´t really answer your question, but an easy way to fix that would be to use a router that automatically shares the connection. Some cable/adsl-modems have this feature.
 
Old 08-06-2004, 05:57 AM   #4
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15
This is the output from ifconfig:

eth0 Link encap:Ethernet HWaddr 00:20:97:02:61:28
inet addr:192.168.0.6 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:0 errors:1 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:2142 (2.0 Kb)
Interrupt:5 Base address:0x220

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen :0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vrln: I would get a router that automatically shares the connection, but I am 18 and i'm starting uni in 2 months, so i'm kinda short on money
 
Old 08-06-2004, 06:09 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
I think it is from XP side that the problem comes. By default it drop pings for example. Try to set its internal firewall to accept all connection from your slackware machine IP.
 
Old 08-06-2004, 06:12 AM   #6
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
You have to set up internet-sharing on the XP machine. There is some kind of guide for that, I think under controlpanel->network
What's the IP on XP?
 
Old 08-06-2004, 06:13 AM   #7
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15
The IP on the XP machine is 192.168.0.1. and the connection is shared, i've been connecting to the net through the xp machine on a 2000 laptop for over a year
 
Old 08-06-2004, 06:24 AM   #8
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
What is your output for /sbin/route in slackware machine ?
 
Old 08-06-2004, 06:27 AM   #9
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15
the output is:
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
 
Old 08-06-2004, 06:33 AM   #10
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Did you try run netconfig and set 192.168.0.1 as gateway ?
 
Old 08-06-2004, 06:36 AM   #11
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15
what do I set the domainname as in netconfig?
 
Old 08-06-2004, 07:04 AM   #12
mhollstein
LQ Newbie
 
Registered: Jul 2004
Location: Stuttgart, Germany
Distribution: suse
Posts: 23

Rep: Reputation: 15
kryis, you write:
"the windows machine doesn't even detect the fact that it is connected to the other machine"

I assume that you refer to the network adapter status in Windows
(Start . Settings - Network connections)
In this case it is a problem of the physical layer (network adapter speed, cable, switch/hub). You should fix this first before you are going to examine the higher protocol levels (IP, name resolution etc)

Try to simlplify the environment. disattach the windows system from the internet, connect windows-pc and the linux machine directly with a crossover cable and watch what happens.

BTW: what about the routing table in the Win PC?
Type "route print" at the dos prompt
The output shoud show something like that:

0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.1 ...
192.168.0.0 255.255.255.0 192.168.0.1 192.168.0.1 ...
 
Old 08-06-2004, 07:08 AM   #13
Kryis
LQ Newbie
 
Registered: Aug 2004
Distribution: FC5
Posts: 23

Original Poster
Rep: Reputation: 15
The two computers are connected directly with a crossover cable at the moment, and i cant get on the Win PC at the moment cause my brother is using it for games and refuses to come off... i'll check route print when i can
 
Old 08-06-2004, 07:35 AM   #14
mhollstein
LQ Newbie
 
Registered: Jul 2004
Location: Stuttgart, Germany
Distribution: suse
Posts: 23

Rep: Reputation: 15
Strip off unnecessary stuff in the Windows adapter configuration. uncheck everything but TCP/IP and make things as straightforward as you can.

check "ipconfig /all" as well (it is the win-version of ifconfig)
The output should contain:

IP Address ....... 192.168.0.1
Subnet Mask .... 255.255.255.0

If this is the case, your IP configuraton seems to be ok
and you should really concetrate on the physical layer.

1. on WinPC: start - settings - network connections
double click on "local area connection"
you will see an counter: activity send/receive
2. ping from linux PC: ping 192.168.0.1
3. if the physical connection is ok the receive counter on WinPC shoud increment.

if not: check adapter speed on both machines (if you have mii-tool on your linux system, try it. it will tell you the physical status of the adapter). check cable.

I'm sorry not to be able to give you further help :-) Weekend, you know, and my son needs his dad...
 
Old 08-06-2004, 07:38 AM   #15
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
what do I set the domainname as in netconfig? anything that does not matter say slack.Kryis.com if you want, but again try to set 192.168.0.1 as gateway in netconfig, and don't forget the slackware IP too, say 192.168.0.6, for dns, put your isp dns (the same as in windows machine)

Last edited by Cedrik; 08-06-2004 at 07:39 AM.
 
  


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
network dead ?! otoomet Linux - Networking 2 01-03-2005 03:15 PM
RH9 Network Device Control issues/modem: on BUSY, can't deactivate; NOW NDC dead! vinylone Linux - Networking 4 08-10-2004 06:22 AM
CD-Rom dead, trying to install RedHat via network on a Xircom PCMCIA crimzor Red Hat 0 11-08-2003 11:19 AM
Squid:2nd Browser access Internet SPEED dead becomes dead slow mwj Linux - Software 1 10-04-2003 01:40 PM
Recompiled kernels and dead network connections. ritz22 Linux - Networking 4 05-25-2002 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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