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:
10.0.0.0 - 10.255.255.255 (1 Class A networks)
172.16.0.0 - 172.31.255.255 (16 Class B networks)
192.168.0.0 - 192.168.255.255 (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 127.0.0.1
route add -net 127.0.0.0
IPADDR=192.168.113.110
NETMASK=255.255.255.0
NETWORK=192.168.113.0
BROADCAST=192.168.113.255
#GATEWAY=192.168.113.106
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.
--
huiac@camtech.net.au
john@huiac.apana.org.au
"Oh - I - you know - my job is to fear everything." - Bill Gates in Denmark
Reply to: