SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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....
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.
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.
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.
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
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:
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
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...
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.