Click to See Complete Forum and Search --> : Networking Windows/Linux


williee12
12-15-2001, 01:40 PM
I have a small switched network I set up between three Windows machines (host running Win98SE) using Windows ICS. I have since dual booted one client (Linux/Windows). Is it possible to be under Linux on the client and configure the network so that the linux box can use network resources?

furrycat
12-21-2001, 02:08 AM
Yes, just set the default route to the IP of the ICS machine.

I believe ICS forces you (cheers M$) to use 192.168.0.0/24 so you'd probably do something like:

ifconfig eth0 192.168.0.71
route add default gw 192.168.0.1 eth0

assuming the ICS box is 192.168.0.1.

WollombiWombat
01-14-2002, 05:56 PM
Hi
I have a similar problem. I have a Win2k box that needs to run ICS for my Internet connection. This system is connected to my dual boot Win98/Linux RH7.0 box. That's all there is in the network. The Win2K/Win98 bit runs OK with the Win2K using 192.168.0.1 as its address. However, the Win2K - Linux connection is not fully functional.

I have set the Linux eth0 to 192.168.0.6 and can telnet into it from the Win2K box using this address but I cannot find the Linux box when I attempt to telnet to it using its hostname.

I need to run Apache on the Linux box and have Apache running on the Win2K box. I can get to the Win2K box using both the 192.168.0.1 address and by using its host name from the Internet browser on the Linux box. So the network is kinda working in that direction.

I have spent two days reloading Linux RH7.0 and going over and over the setup process for the Linux network config. And cant find the solution. Have not attempted to get Apache/Linux running yet.

The reply given by Furrycat:
"ifconfig eth0 192.168.0.71
route add default gw 192.168.0.1 eth0"
has me wondering what the last line means as I have not come across this in anything I have read to date. What does this command do? I have tried it but no change in the situation.
http://discussions.linuxplanet.com/confused.gif Linux (and Win2K) novice.

furrycat
01-15-2002, 06:00 AM
Your hostname problem is to do with DNS. You need to set up a DNS server on the network and tell it about your hosts. The DNS HOWTO from http://www.linuxdoc.org/ will tell you how to do this on Linux, or you can use the Windows 2000 DNS server.

It's up to you but if the 2K box has the internet connection I would recommend you use it as the DNS server for your network. Clients will then also be able to use it as a caching nameserver it connected.

"route add default gw 192.168.0.1 eth0" means "set the default route on interface eth0 using 192.168.0.1 as the gateway." This means that any packets for addresses not on the local network (which is almost certainly 192.168.0.0/255.255.255.0 in your example) will be sent out on the interface eth0 to the machine 192.168.0.1. That machine is then responsible for forwarding them to the outside world. In this case, that means via ICS.

Setting this command won't affect your (in)ability to lookup nonexistent names in DNS. It allows you to reach the internet.

PS You'll have better results out of Routing and Remote Access if you're running Windows 2000. ICS is best avoided.

WollombiWombat
01-17-2002, 02:18 AM
Many thanks for such an excellent explanation and further advise. It now works. For the time being I will not attempt to set up DNS (if it aint broke - dont fix it) cause I know that will just open another can of worms for me (Murphy's Law: What can go wrong will go wrong).

I have realyy found this suite to be of excellent value. Please keep up the good work. http://discussions.linuxplanet.com/smile.gif