[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting up a home lan

On %M 0, Shao Zhang wrote
> Hi,	
> 	Can anyone tell me what are the procedures to set up two computers
> 	to talk to each other via ethernet.
> 	In particular, what kind of ip I can choose. Is there a HOWTO on this??

If you install the doc-linux-text or doc-linux-html packages, there is an
Ethernet HOWTO in /usr/doc/HOWTO that should tell you what you need to know.
There are three ranges of IP numbers that are 'non-routable', and are
reserved by the IANA for use on private networks, set out in RFC1918
(install doc-rfc to swap 15Mb of disc space for all the RFCs you can eat). 
They are:    -  (1 Class A networks)  -  (16 Class B networks) - (256 Class C networks)

Most people use one or more of the class C networks in the third block.

Debian 2.1 puts information about your network configuration in 
/etc/init.d/network; a typical such file:
  #! /bin/sh
  ifconfig lo
  route add -net
  ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
  route add -net ${NETWORK}
  [ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1

Once you've installed your network card and cables, added the module for
your network card to /etc/modules and verified that the module loads
corectly, the software configuration should be just a question of 'filling
in the blanks' on your system and rebooting.

> 	Also, is there any tools like fsck in linux which can repair the fat file
> 	system??

The dosfstools package includes dosfsck, a utility to maintain and repair FAT
filesystems; read /usr/doc/dosfstools/dosfsck.gz carefully before using it.
I'm not sure that the version supplied with slink supports vfat partitions.

John P.
"Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark

Reply to: