my Top page便利な大福帳ドジ話の目次前のドジ話次のドジ話

簡易 LAN を組みました

(新たなる自由への戦い)

  1998年10月15日(木)

  2台のマシン、Dora と Eva で簡単な Local Area Network を組んで見ました。最初思って
いたほど難しくは無く、あっさりと組めてしまいました。でも、双方から ping が返り、telnet
でログイン出来た時は、やはり涙が出る程嬉しかったです。

マシン構成は、

【Dora】
   Primary master HDD   : FreeBSD 2.2.7-R ,  M$-Windows95
           slave        : CD-ROM
   Secondary master HDD : FreeBSD 2.2.6-R

【Eva】
   Primary master HDD : FreeBSD 2.2.7-R , M$-Windows95
   Secondary master   : CD-ROM

Ethernet Adapter には、

Power Heres ISA BUS Ethernet LAN Card 
   Model:AL-NI2000III SE/T
         ( Novell NE2000 Compatible Windows95 Plag&Play )

を使用しています。2枚で約2900円でした。
# 新品2枚でこの値段ですので、大丈夫だろうかととっても不安でした。

デフォルトでは、PnP らしく、付属のユーティリティFD を使ってジャンパレスモード
(NE2000 互換となる)に設定し、それぞれのマシンの空いている IRQ と I/O アドレス
を割り当てました。

デバイスドライバーは、カードが Novell NE2000 Compatible ですので ed0 です。

FreeBSD 2.2.7-R(Eva) では、インストール時にカードの設定をしましたので、そのまま
GENERIC カーネルに反映されています。
FreeBSD 2.2.6-R(Dora) では、カーネルを記述し直し再コンパイルしてインストールし
ています。

そして、 etc/rc.conf ファイルと etc/hosts ファイルを下記のように記述し、再起動
させ、次のコマンドを実行し、カードがきちんと認識され正しく設定されているのを確
かめました。
# 各カードの IP アドレスにはプライベートアドレスを使用しています。

  各マシンからの、 ping と telnet コマンドの実行結果も参考資料として併せて載せて
います。

  2台のマシンですので HUB は使用していません。10BASE-T カテゴリー5のクロスケー
ブルで直結しています。

------------ dmesg と hostname と ifconfig ed0  の結果 (Dora) ----------------

> dmesg

(省略)

ed0 at 0x300-0x31f irq 11 on isa
ed0: address 00:c0:df:c4:a1:98, type NE2000 (16 bit) 
(省略)

> hostname
dora.akiyama.jp

> ifconfig ed0
ed0: flags=8843 mtu 1500
        inet 192.168.128.1 netmask 0xffffff00 broadcast 192.168.128.255
        ether 00:c0:df:c4:a1:98 
> 


------------ dmesg と hostname と ifconfig ed0  の結果 (Eva) ----------------
% dmesg
(省略)

ed0 at 0x300-0x31f irq 5 on isa
ed0: address 00:c0:df:c4:8d:73, type NE2000 (16 bit) 
(省略)

% hostname
eva.akiyama.jp

% ifconfig ed0
ed0: flags=8843 mtu 1500
        inet 192.168.128.2 netmask 0xffffff00 broadcast 192.168.128.255
        ether 00:c0:df:c4:8d:73 
% 

-------------------- etc/rc.conf (Dora) ----------------
#!/bin/sh
#

# This is rc.conf - a file full of useful variables that you can set
# to change the default startup behavior of your system.
#
# All arguments must be in double or single quotes.
#
#       $Id: rc.conf,v 1.1.2.40 1998/03/15 16:39:41 jkh Exp $
(省略)
##############################################################
###  Network configuration sub-section  ######################
##############################################################

### Basic network options: ###
hostname="dora.akiyama.jp"      # Set this!
nisdomainname="NO"              # Set to NIS domain if using NIS (or NO).
firewall_enable="NO"            # Set to YES to enable firewall functionality
firewall_type="UNKNOWN"         # Firewall type (see /etc/rc.firewall)
firewall_quiet="NO"             # Set to YES to suppress rule display
tcp_extensions="YES"            # Allow RFC1323 & RFC1644 extensions (or NO).
network_interfaces="ppp0 lo0 tun0 ed0"  # List of network interfaces (lo0 is loopback).
ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
ifconfig_ed0="inet 192.168.128.1 netmask 255.255.255.0"
### Network daemon (miscellaneous) & NFS options: ###
syslogd_enable="YES"            # Run syslog daemon (or NO).
syslogd_flags=""                # Flags to syslogd (if enabled).
(以下省略)

-------------------- etc/rc.conf (Eva) ----------------
#!/bin/sh
#
(省略)
##############################################################
###  Network configuration sub-section  ######################
##############################################################

### Basic network options: ###
hostname="eva.akiyama.jp"       # Set this!
nisdomainname="NO"              # Set to NIS domain if using NIS (or NO).
firewall_enable="NO"            # Set to YES to enable firewall functionality
firewall_type="UNKNOWN"         # Firewall type (see /etc/rc.firewall)
firewall_quiet="NO"             # Set to YES to suppress rule display
tcp_extensions="YES"            # Allow RFC1323 & RFC1644 extensions (or NO).
network_interfaces="lo0 tun0 ed0"       # List of network interfaces (lo0 is loopback).
ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
ifconfig_ed0="inet 192.168.128.2 netmask 255.255.255.0"

### Network daemon (miscellaneous) & NFS options: ###
syslogd_enable="YES"            # Run syslog daemon (or NO).
syslogd_flags=""                # Flags to syslogd (if enabled).
inetd_enable="YES"              # Run the network daemon dispatcher (or NO).
inetd_flags=""                  # Optional flags to inetd.
named_enable="NO"               # Run named, the DNS server (or NO).
named_program="/usr/sbin/named" # named program, in case we want bind8 instead.
(以下省略)

-------------------- etc/hosts (Dora) ----------------
127.0.0.1               localhost.mxp.meshnet.or.jp localhost
192.168.128.1           dora
192.168.128.2           eva


-------------------- etc/hosts (Eva) ----------------
# $Id: hosts,v 1.6.2.1 1998/07/19 06:53:17 jkh Exp $
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/host.conf for the resolution order.
#
#
127.0.0.1               localhost localhost.my.domain myname.my.domain
192.168.128.1           dora    # FreeBSD Dora
192.168.128.2           eva     # FreeBSD Eva
#
# Imaginary network.
#10.0.0.2               myname.my.domain myname
#10.0.0.3               myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
#       10.0.0.0        -   10.255.255.255
#       172.16.0.0      -   172.31.255.255
#       192.168.0.0     -   192.168.255.255
#
(省略)


-------------------- Dora より Eva への ping 結果 ----------------
> ping eva
PING eva (192.168.128.2): 56 data bytes
64 bytes from 192.168.128.2: icmp_seq=0 ttl=255 time=2.013 ms
64 bytes from 192.168.128.2: icmp_seq=1 ttl=255 time=1.120 ms
64 bytes from 192.168.128.2: icmp_seq=2 ttl=255 time=1.120 ms
64 bytes from 192.168.128.2: icmp_seq=3 ttl=255 time=1.116 ms
64 bytes from 192.168.128.2: icmp_seq=4 ttl=255 time=1.118 ms
64 bytes from 192.168.128.2: icmp_seq=5 ttl=255 time=1.111 ms
64 bytes from 192.168.128.2: icmp_seq=6 ttl=255 time=1.110 ms
64 bytes from 192.168.128.2: icmp_seq=7 ttl=255 time=1.110 ms
64 bytes from 192.168.128.2: icmp_seq=8 ttl=255 time=1.118 ms
64 bytes from 192.168.128.2: icmp_seq=9 ttl=255 time=1.111 ms
64 bytes from 192.168.128.2: icmp_seq=10 ttl=255 time=1.126 ms
64 bytes from 192.168.128.2: icmp_seq=11 ttl=255 time=1.113 ms
64 bytes from 192.168.128.2: icmp_seq=12 ttl=255 time=1.114 ms
64 bytes from 192.168.128.2: icmp_seq=13 ttl=255 time=1.112 ms
^C
--- eva ping statistics ---
14 packets transmitted, 14 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.110/1.179/2.013/0.231 ms
> 

--------------------  Eva より Dora への ping 結果 ----------------
% ping dora
PING dora (192.168.128.1): 56 data bytes
64 bytes from 192.168.128.1: icmp_seq=0 ttl=255 time=1.183 ms
64 bytes from 192.168.128.1: icmp_seq=1 ttl=255 time=1.002 ms
64 bytes from 192.168.128.1: icmp_seq=2 ttl=255 time=1.008 ms
64 bytes from 192.168.128.1: icmp_seq=3 ttl=255 time=1.005 ms
64 bytes from 192.168.128.1: icmp_seq=4 ttl=255 time=1.012 ms
64 bytes from 192.168.128.1: icmp_seq=5 ttl=255 time=1.009 ms
64 bytes from 192.168.128.1: icmp_seq=6 ttl=255 time=1.037 ms
64 bytes from 192.168.128.1: icmp_seq=7 ttl=255 time=1.006 ms
64 bytes from 192.168.128.1: icmp_seq=8 ttl=255 time=1.014 ms
64 bytes from 192.168.128.1: icmp_seq=9 ttl=255 time=1.018 ms
64 bytes from 192.168.128.1: icmp_seq=10 ttl=255 time=1.021 ms
64 bytes from 192.168.128.1: icmp_seq=11 ttl=255 time=1.015 ms
64 bytes from 192.168.128.1: icmp_seq=12 ttl=255 time=1.009 ms
^C
--- dora ping statistics ---
13 packets transmitted, 13 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.002/1.026/1.183/0.046 ms
%

-------------------- Dora より Eva への telnet 結果 ----------------
> telnet eva
Trying 192.168.128.2...
Connected to eva.
Escape character is '^]'.

FreeBSD (eva.akiyama.jp) (ttyp0)

login: akiyama
Password:********
Last login: Wed Oct 21 06:12:04 on ttyv0
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 2.2.7-RELEASE (GENERIC) #0: Wed Jul 22 08:48:29 GMT 1998

Welcome to FreeBSD!  You will find security advisories and updated
information on this releases posted at http://www.FreeBSD.ORG/releases/

Before asking for technical assistance:
 1.  Consult the ERRATA section for your release at the location above.

 2.  Search the Handbook, FAQ, and mail archives at 
     http://www.FreeBSD.ORG/search.html. If the doc distribution is
     installed on this machine, you will also find the FAQ and Handbook
     in /usr/share/doc/.

 3.  If you still have a question or problem, collect the output of
     `uname -a' and include error messages from whatever part of the
     system you are having problems with and email your question to
     questions@FreeBSD.ORG.
        
You may also use `/stand/sysinstall' to re-enter the installation and
configuration  utility.  Edit /etc/motd to change this login announcement.

% pwd
/usr/home/aki
% la
#dmesg#         .history        .mailrc         .shrc           nsmail
.               .login          .netscape       .xinitrc
..              .login_conf     .profile        bootconf.txt
.cshrc          .mail_aliases   .rhosts         dmesg
% exit
% logout
Connection closed by foreign host.
>

--------------------  Eva より Dora への telnet 結果 ----------------
% telnet dora
Trying 192.168.128.1...
Connected to dora.
Escape character is '^]'.

FreeBSD (dora.akiyama.jp) (ttyp6)

login: manpou
Password:********
Last login: Tue Oct 20 21:16:17 on ttyv0
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 2.2.6-RELEASE (Dora) #0: Fri Oct 16 22:07:27 JST 1998

Welcome to FreeBSD!

If the doc distribution has been loaded on this machine, the FreeBSD
Handbook will be in file:/usr/share/doc/handbook and the FAQ in
file:/usr/share/doc/FAQ 

Type /stand/sysinstall to re-enter the installation and configuration utility.

> pwd
/usr/home/manpou
> la
#*mail*#004500#                         XF86Config
.                                       aaa.txt
..                                      aaa.txt~
.Xresources                             aha2920
.cshrc                                  author_copy
.emacs                                  boot226.txt
(省略)
Mail                                    sinsuu.htm
News                                    xlog
RMAIL                                   xplns-2.0-freebsd-static
X                                       xplns-2.0-freebsd-static.tar.gz
> exit
>logout
% 
Connection closed by foreign host.
%
--------------------  End  ----------------------------------------


my Top page便利な大福帳ドジ話の目次前のドジ話次のドジ話