Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to configure on LAN

Status
Not open for further replies.

RemoteSilicon

Programmer
Feb 13, 2001
45
GB
Hi
I have installed RedHat Linux 7.1 on my system. This computer is connected to other computers running on Win 2K with one Win 2K Server. The problem is that I want to take my computer on the windows network. Reason is that I am hosting a site on Linux and want other computers on Windows to access the site but giving the URL e.g 192.168.0.3/ABC in the Browser. Plz help.
 
Hi,

For web serving, all you need is IP connectivity and to configure Apache correctly. You would just need to set the IP address / subnet mask to one in the range of the windows network. I would suspect you have maybe done this already - for example :

winbox1 192.168.0.1 255.255.255.0
winbox2 192.168.0.2 255.255.255.0
linux 192.168.0.3 255.255.255.0

As long as the first three parts are indentical on each machine, i.e. 192.168.0.x and there is physical connectivity then it should work.

Can you ping the windows boxes from linux ?

ping -c5 192.168.0.1

If you get a successful response (and same from the other end) then its just a case of configuring apache. You might first need, however, to configure the redhat firewall to allow inbound port 80 (http). Do (as root) the command '/usr/sbin/lokkit' and either allow port 80 or set the lan interface on your machine as 'trusted'. Once you've got that sorted and assuming you have apache installed (rpm -q apache) then you should be able to do and get the apache test page from any of the machines. After that you're just into the apache config for however you want to set it up. By default on redhat the content directory is /var/ .

Also make sure apache is actually running:

/usr/sbin/lsof -i TCP:80 (do as root)

Hope this helps
 
Thanks for the reply. Actually I am a newbie and dont know much about Linux. The only thing I know is that I can use "Network Configuration" option in System menu to set my IP addresses. But what to enter where, that's what I dont know. Another thing is that I have given the
ping 192.168.0.2 command and it gives me "30 packets recieved 30 packets transmitted 0% lost" kind of message. This is what I can do from Windows machine too except one machine which gives "machine unreachable" message. Plz help.
 
Hi,

Ignoring apache for the moment, to get IP connectivity there are two main things to look at (i) the conventional configuration including physical connections and (ii) any firewalling that may be blocking certain IP traffic.

As I said before, unless you are using a router (or a PC with multiple cards acting as a router), then all machines must be configured on the same IP subnet. If that is OK then you have to check the physical stuff . Are all the cables straight-through (versus crossover)cables connected via a hub or switch? Have you tried swapping the cables from a connection known to work ?

The 'machine unreachable' message seems to indicate that there is an error in the IP config of that PC - I think if it was on the same subnet and couldn't contact the address then you'd just get timed out messages.

Check all the machines IP configs to make sure they are looking OK with the following commands :

winipcfg (win 9x)
ipconfig /all (nt / w2k)
/sbin/ifconfig (linux)

Can the two win boxes ping each other ? You need to give more specific details of your physical network and what works / what doesn't work really.

Incidentally, the redhat network config is explained here --> .

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top