Friday, January 21, 2005

Networking Linux with Windows

I recently acquired 2 redundant PCs and promptly installed RedHat Linux 8.0.

My first task was to network both PCs with my existing Windows XP machine (connected to Broadband). After 1 week of trying, and with help from a few forums, I have cracked it. Before I completely forget, here are the instructions (assuming the network cards are in place).

1) On the Windows XP machine, set up Internet Connection sharing (ICS).
2) The following is for the Linux machines (as root user):
a) Enable FTP permissions by changing disable=yes to disable=no in the file:
/etc/xinetd.d/vsftpd
b) In the file, /etc/sysconfig/network add the line GATEWAYDEV="eth0"
c) In the file, /etc/resolv.conf add the line:
nameserver 192.168.0.1 #this is the WinXP gateway IP
d) Open Network Configuration Tool and, for each machine, type in the IP settings, e.g.-
linux machine 1 ----> 192.168.0.2
255.255.255.0
192.168.0.1

linux machine 2 ----> 192.168.0.3
255.255.255.0
192.168.0.1
e) Reboot linux machines

N.B. When logging both linux machines back in, use the local user (not root) as Ftp is disabled for root user by default. Browsing should now also be possible.

My next Task will be sharing a USB printer on the network.