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

[debian-users:17516] LAN の設定と ping コマンドについて



This is a multi-part message in MIME format.

------=_NextPart_000_002F_01BEED87.B7F4E380
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit

柿沼と申します。

win98とdebianをLANでつなげるのに悩んでいます。
分かる方がいらっしゃいましたらご指導よろしくお願いします。
長文となってしまいますが許してください。

win98からもdebianからもpingが通らないで困っています。

pingの結果は以下の通りです。

・Debian -> win のping
PING 192.168.1.2 (192.168.1.2): 56 data bytes

--- 192.168.1.2 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss

・win -> Debian のping
Pinging 192.168.1.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.1.1:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum =  0ms, Average =  0ms

となり認識することが出来ませんでした。


以下に現状の設定です。

ノートパソコン(debian側)
・/dev/init.d/network
#! /bin/sh
IPADDR="192.168.1.1"  # Your IP address.
NETMASK="255.255.255.0"  # Your netmask.
NETWORK="192.168.1.0"  # Your network address.
BROADCAST="192.168.1.255" # Your broadcast address (blank if none).
GATEWAY=""   # Your gateway address.

/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
/sbin/route add -net ${NETWORK}
[ ! -z "$GATEWAY" ] && /sbin/route add default gw ${GATEWAY}

・/dev/hosts
127.0.0.1 localhost
192.168.1.1 debian.foo.ne.jp debian
192.168.1.2     kakinuma 

・/etc/pcmcia/network.opts
# Network adapter configuration
#
# The address format is "scheme,socket,instance,hwaddr".
#
# Note: the "network address" here is NOT the same as the IP address.
# See the Networking HOWTO.  In short, the network address is the IP
# address masked by the netmask.
#
case "$ADDRESS" in
*,*,*,*)
    # Transceiver selection, for some cards -- see 'man ifport'
    IF_PORT=""
    # Use BOOTP? [y/n]
    BOOTP="n"
    # Use DHCP? [y/n]
    DHCP="n"
    # Use DHCLIENT? [y/n]
    DHCLIENT="n"
    # Host's IP address, netmask, network address, broadcast address
    IPADDR="192.168.1.1"
    NETMASK="255.255.255.0"
    NETWORK="192.168.1.0"
    BROADCAST="192.168.1.255"
    # Gateway address for static routing
    GATEWAY=""
    # Things to add to /etc/resolv.conf for this interface
    DOMAIN=""
    SEARCH=""
    # The nameserver IP addresses specified here complement the
    # nameservers already defined in /etc/resolv.conf.  These nameservers
    # will be added to /etc/resolv.conf automatically when the PCMCIA
    # network connection is established and removed from this file when
    # the connection is broken.
    DNS_1=""
    DNS_2=""
    DNS_3=""
    # NFS mounts, should be listed in /etc/fstab
    MOUNTS=""
    # For IPX interfaces, the frame type and network number
    IPX_FRAME=""
    IPX_NETNUM=""
    # Extra stuff to do after setting up the interface
    start_fn () { return; }
    # Extra stuff to do before shutting down the interface
    stop_fn () { return; }
    ;;
esac

・ifconfig -a の結果です。
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0

eth0      Link encap:Ethernet  HWaddr 00:80:C8:88:CC:C7
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0
          Interrupt:9 Base address:0x300


デスクトップ  (win98側)
TCP/IP -> NE2000 Compatible
・コンピュータ名
kakinuma
・ワークグループ
WORKGROUP
・コンピュータの説明
windows
・IP アドレス
192.168.1.2
・サブネットマスク
255.255.255.0
・wins設定、ゲートウエイ、DNS 設定
何も設定していません

構成機器
ノートパソコン
Debian2.0 (Debian GNU/LINUX 徹底入門 武藤健志著)
kernel2.0.36 
pcmcia3.0.9
LAN  ->  D-Link DE-660

デスクトップ
win98
LAN  -> ENW-2401P-T  (NE2000 Compatible)


という状態です。
pingを通すにはどうすればよろしいでしょうか?
ご指導よろしくお願いします。


------=_NextPart_000_002F_01BEED87.B7F4E380
Content-Type: text/html;
	charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3D"text/html; charset=3DcsISO2022JP" =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 face=3D""><FONT =
size=3D3>=1B$B3A>B$H?=3D$7$^$9!#=1B(B</FONT></FONT><FONT=20
size=3D3></FONT></DIV>
<DIV><FONT size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT =
size=3D3>win98=1B$B$H=1B(Bdebian=1B$B$r=1B(BLAN=1B$B$G$D$J$2$k$N$KG:$s$G$=
$$^$9!#=1B(B</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT=20
size=3D3>=1B$BJ,$+$kJ}$,$$$i$C$7$c$$$^$7$?$i$4;XF3$h$m$7$/$*4j$$$7$^$9!#=1B=
(B</FONT></FONT><FONT size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT size=3D3></FONT></FONT><FONT =
size=3D3><FONT=20
color=3D#000000 =
face=3D"">=1B$BD9J8$H$J$C$F$7$^$$$^$9$,5v$7$F$/$@$5$$!#=1B(B</FONT></FONT=
></DIV>
<DIV><FONT size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT=20
size=3D3>win98=1B$B$+$i$b=1B(Bdebian=1B$B$+$i$b=1B(Bping=1B$B$,DL$i$J$$$G=
:$$C$F$$$^$9!#=1B(B</FONT></FONT><FONT=20
size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT size=3D3></FONT></FONT><FONT =
size=3D3><FONT=20
color=3D#000000 face=3D""></FONT></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT=20
size=3D3>ping=1B$B$N7k2L$O0J2<$NDL$j$G$9!#=1B(B</FONT></FONT><FONT =
size=3D3></FONT></DIV>
<DIV><FONT size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT size=3D3>=1B$B!&=1B(BDebian -&gt; win =
=1B$B$N=1B(Bping<BR>PING 192.168.1.2 (192.168.1.2): 56=20
data bytes<BR><BR>--- 192.168.1.2 ping statistics ---<BR>4 packets =
transmitted,=20
0 packets received, 100% packet loss<BR><BR>=1B$B!&=1B(Bwin -&gt; Debian =
=1B$B$N=1B(Bping<BR>Pinging=20
192.168.1.1 with 32 bytes of data:<BR>Request timed out.<BR>Request =
timed=20
out.<BR>Request timed out.<BR>Request timed out.<BR>Ping statistics for=20
192.168.1.1:<BR>&nbsp;&nbsp;&nbsp; Packets: Sent =3D 4, Received =3D 0, =
Lost =3D 4=20
(100% loss),<BR>Approximate round trip times in=20
milli-seconds:<BR>&nbsp;&nbsp;&nbsp; Minimum =3D 0ms, Maximum =3D&nbsp; =
0ms, Average=20
=3D&nbsp; =
0ms<BR><BR>=1B$B$H$J$jG'<1$9$k$3$H$,=3DPMh$^$;$s$G$7$?!#=1B(B<BR></FONT><=
/DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT size=3D3></FONT></FONT><FONT=20
size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT =
size=3D3>=1B$B0J2<$K8=3D>u$N@_Dj$G$9!#=1B(B</FONT></FONT><FONT=20
size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT size=3D3></FONT></FONT><FONT =
size=3D3><FONT=20
color=3D#000000 face=3D""></FONT></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT=20
size=3D3>=1B$B%N!<%H%Q%=3D%3%s!J=1B(Bdebian=1B$BB&!K=1B(B</FONT></FONT><F=
ONT size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT =
size=3D3>=1B$B!&=1B(B/dev/init.d/network<BR>#!=20
/bin/sh<BR>IPADDR=3D&quot;192.168.1.1&quot;&nbsp; # Your IP=20
address.<BR>NETMASK=3D&quot;255.255.255.0&quot;&nbsp; # Your=20
netmask.<BR>NETWORK=3D&quot;192.168.1.0&quot;&nbsp; # Your network=20
address.<BR>BROADCAST=3D&quot;192.168.1.255&quot; # Your broadcast =
address (blank=20
if none).<BR>GATEWAY=3D&quot;&quot;&nbsp;&nbsp; # Your gateway=20
address.<BR><BR>/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} =
broadcast=20
${BROADCAST}<BR>/sbin/route add -net ${NETWORK}<BR>[ ! -z =
&quot;$GATEWAY&quot; ]=20
&amp;&amp; /sbin/route add default gw =
${GATEWAY}<BR><BR>=1B$B!&=1B(B/dev/hosts<BR>127.0.0.1=20
localhost<BR>192.168.1.1 debian.foo.ne.jp=20
debian<BR>192.168.1.2&nbsp;&nbsp;&nbsp;&nbsp; kakinuma=20
<BR><BR>=1B$B!&=1B(B/etc/pcmcia/network.opts</FONT></FONT><FONT =
size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT size=3D3># Network adapter=20
configuration<BR>#<BR># The address format is=20
&quot;scheme,socket,instance,hwaddr&quot;.<BR>#<BR># Note: the =
&quot;network=20
address&quot; here is NOT the same as the IP address.<BR># See the =
Networking=20
HOWTO.&nbsp; In short, the network address is the IP<BR># address masked =
by the=20
netmask.<BR>#<BR>case &quot;$ADDRESS&quot; =
in<BR>*,*,*,*)<BR>&nbsp;&nbsp;&nbsp;=20
# Transceiver selection, for some cards -- see 'man=20
ifport'<BR>&nbsp;&nbsp;&nbsp; =
IF_PORT=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp; # Use=20
BOOTP? [y/n]<BR>&nbsp;&nbsp;&nbsp; =
BOOTP=3D&quot;n&quot;<BR>&nbsp;&nbsp;&nbsp; #=20
Use DHCP? [y/n]<BR>&nbsp;&nbsp;&nbsp; =
DHCP=3D&quot;n&quot;<BR>&nbsp;&nbsp;&nbsp; #=20
Use DHCLIENT? [y/n]<BR>&nbsp;&nbsp;&nbsp;=20
DHCLIENT=3D&quot;n&quot;<BR>&nbsp;&nbsp;&nbsp; # Host's IP address, =
netmask,=20
network address, broadcast address<BR>&nbsp;&nbsp;&nbsp;=20
IPADDR=3D&quot;192.168.1.1&quot;<BR>&nbsp;&nbsp;&nbsp;=20
NETMASK=3D&quot;255.255.255.0&quot;<BR>&nbsp;&nbsp;&nbsp;=20
NETWORK=3D&quot;192.168.1.0&quot;<BR>&nbsp;&nbsp;&nbsp;=20
BROADCAST=3D&quot;192.168.1.255&quot;<BR>&nbsp;&nbsp;&nbsp; # Gateway =
address for=20
static routing<BR>&nbsp;&nbsp;&nbsp; =
GATEWAY=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp;=20
# Things to add to /etc/resolv.conf for this =
interface<BR>&nbsp;&nbsp;&nbsp;=20
DOMAIN=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp;=20
SEARCH=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp; # The nameserver IP =
addresses=20
specified here complement the<BR>&nbsp;&nbsp;&nbsp; # nameservers =
already=20
defined in /etc/resolv.conf.&nbsp; These =
nameservers<BR>&nbsp;&nbsp;&nbsp; #=20
will be added to /etc/resolv.conf automatically when the=20
PCMCIA<BR>&nbsp;&nbsp;&nbsp; # network connection is established and =
removed=20
from this file when<BR>&nbsp;&nbsp;&nbsp; # the connection is=20
broken.<BR>&nbsp;&nbsp;&nbsp; DNS_1=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp; =

DNS_2=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp;=20
DNS_3=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp; # NFS mounts, should be =
listed in=20
/etc/fstab<BR>&nbsp;&nbsp;&nbsp; =
MOUNTS=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp; # For=20
IPX interfaces, the frame type and network number<BR>&nbsp;&nbsp;&nbsp;=20
IPX_FRAME=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp;=20
IPX_NETNUM=3D&quot;&quot;<BR>&nbsp;&nbsp;&nbsp; # Extra stuff to do =
after setting=20
up the interface<BR>&nbsp;&nbsp;&nbsp; start_fn () { return;=20
}<BR>&nbsp;&nbsp;&nbsp; # Extra stuff to do before shutting down the=20
interface<BR>&nbsp;&nbsp;&nbsp; stop_fn () { return; =
}<BR>&nbsp;&nbsp;&nbsp;=20
;;<BR>esac<BR><BR>=1B$B!&=1B(Bifconfig -a=20
=1B$B$N7k2L$G$9!#=1B(B<BR>lo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Link encap:Local=20
Loopback<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet=20
addr:127.0.0.1&nbsp; Bcast:127.255.255.255&nbsp;=20
Mask:255.0.0.0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
UP=20
BROADCAST LOOPBACK RUNNING&nbsp; MTU:3584&nbsp;=20
Metric:1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX =
packets:0=20
errors:0 dropped:0 overruns:0=20
frame:0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX =
packets:0=20
errors:0 dropped:0 overruns:0=20
carrier:0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Collisions:0<BR><BR>eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Link =
encap:Ethernet&nbsp;=20
HWaddr=20
00:80:C8:88:CC:C7<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; inet=20
addr:192.168.1.1&nbsp; Bcast:192.168.1.255&nbsp;=20
Mask:255.255.255.0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; UP=20
BROADCAST RUNNING MULTICAST&nbsp; MTU:1500&nbsp;=20
Metric:1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX =
packets:0=20
errors:0 dropped:0 overruns:0=20
frame:0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX =
packets:0=20
errors:0 dropped:0 overruns:0=20
carrier:0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Collisions:0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Interrupt:9 Base address:0x300<BR><BR><BR>=1B$B%G%9%/%H%C%W=1B(B&nbsp;=20
(win98=1B$BB&=1B(B)</FONT></FONT><FONT size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT size=3D3>TCP/IP -&gt; NE2000=20
Compatible<BR>=1B$B!&%3%s%T%e!<%?L>=1B(B<BR>kakinuma<BR>=1B$B!&%o!<%/%0%k=
!<%W=1B(B<BR>WORKGROUP<BR>=1B$B!&%3%s%T%e!<%?$N@bL@=1B(B<BR>windows<BR>=1B=
$B!&=1B(BIP=20
=1B$B%"%I%l%9=1B(B<BR>192.168.1.2<BR>=1B$B!&%5%V%M%C%H%^%9%/=1B(B<BR>255.=
255.255.0<BR>=1B$B!&=1B(Bwins=1B$B@_Dj!"%2!<%H%&%(%$!"=1B(BDNS=20
=1B$B@_Dj=1B(B<BR>=1B$B2?$b@_Dj$7$F$$$^$;$s=1B(B</FONT></FONT><FONT =
size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT size=3D3></FONT></FONT><FONT=20
size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3D""><FONT =
size=3D3>=1B$B9=3D@.5!4o=1B(B</FONT></FONT><FONT=20
size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"" size=3D2>
<DIV><FONT size=3D3>=1B$B%N!<%H%Q%=3D%3%s=1B(B</FONT></DIV>
<DIV><FONT size=3D3>Debian2.0 =1B$B!J=1B(BDebian GNU/LINUX =
=1B$BE0DlF~Lg=1B(B =1B$BIpF#7r;VCx!K=1B(B</FONT></DIV>
<DIV><FONT size=3D3>kernel2.0.36 </FONT></DIV>
<DIV><FONT size=3D3>pcmcia3.0.9</FONT></DIV>
<DIV><FONT size=3D3>LAN&nbsp; -&gt;&nbsp; D-Link DE-660</FONT></DIV>
<DIV><FONT size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT size=3D3>=1B$B%G%9%/%H%C%W=1B(B</FONT></DIV>
<DIV><FONT size=3D3>win98</FONT></DIV>
<DIV><FONT size=3D3>LAN&nbsp; -&gt; ENW-2401P-T&nbsp; (NE2000=20
Compatible)<BR></FONT></DIV>
<DIV><FONT size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT size=3D3>=1B$B$H$$$&>uBV$G$9!#=1B(B</FONT></DIV>
<DIV><FONT =
size=3D3>ping=1B$B$rDL$9$K$O$I$&$9$l$P$h$m$7$$$G$7$g$&$+!)=1B(B</FONT></D=
IV>
<DIV><FONT size=3D3>=1B$B$4;XF3$h$m$7$/$*4j$$$7$^$9!#=1B(B</FONT></DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_002F_01BEED87.B7F4E380--