LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Dead network (https://www.linuxquestions.org/questions/slackware-14/dead-network-214167/)

Kryis 08-06-2004 05:12 AM

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?

spook 08-06-2004 05:42 AM

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
.

vrln 08-06-2004 05:43 AM

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.

Kryis 08-06-2004 05:57 AM

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

Cedrik 08-06-2004 06:09 AM

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.

pingu 08-06-2004 06:12 AM

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?

Kryis 08-06-2004 06:13 AM

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

Cedrik 08-06-2004 06:24 AM

What is your output for /sbin/route in slackware machine ?

Kryis 08-06-2004 06:27 AM

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

Cedrik 08-06-2004 06:33 AM

Did you try run netconfig and set 192.168.0.1 as gateway ?

Kryis 08-06-2004 06:36 AM

what do I set the domainname as in netconfig?

mhollstein 08-06-2004 07:04 AM

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 ...

Kryis 08-06-2004 07:08 AM

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

mhollstein 08-06-2004 07:35 AM

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...

Cedrik 08-06-2004 07:38 AM

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)


All times are GMT -5. The time now is 12:21 PM.