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

[plamo:01469] Re: LANに関する初歩的な質問



>嶋崎です。さきほど投稿に失敗しました。
>
>無意味な全文引用はやめましょう。
>
>ハブを用意する以前にやるべきことはたくさんあります。
>
>dmesg と打って,ちゃんと NE*000 が認識されてると表示されますか?
>/sbin/ifconfig -a と打って,ちゃんとネットワークが動いていますか?
>lo だけ表示され,eth0 が出ない場合は netconfig をやり直してください。
>-- 
>しまざき@クロスケーブルと相性の悪いカードも存在するようですが。

demsg 及びifconfigを確認してみたところLANボードは認識
しているようですが...
次はifconfigの出力結果です。(長くなって申し訳ありません。)

一台目:
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:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 coll:0

eth0      Link encap:Ethernet  HWaddr 00:C0:26:11:B6:CF  
          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 coll:0
          Interrupt:9 Base address:0xfca0 

二台目:

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:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0 

eth0      Link encap:Ethernet  HWaddr 00:90:CC:A0:BD:92  
          inet addr:192.168.0.2  Bcast:192.168.0.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:3 Base address:0x300 

しかし、pingもtelnetもできません。どこが問題なのかすら分かりません。
念のためにrc.inet1の内容も添付しておきます。
心当たりの方はよろしくお願いします。

一台目:
#! /bin/sh
#
# rc.inet1	This shell script boots up the base INET system.
#
# Version:	@(#)/etc/rc.d/rc.inet1	1.01	05/27/93
#

HOSTNAME=`cat /etc/HOSTNAME`

# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to 
configure the 
# eth0 interface. If you're only using loopback or SLIP, don't include 
the
# rest of the lines in this file.

# Edit for your setup.
IPADDR="192.168.1.1"	# REPLACE with YOUR IP address!
NETMASK="255.255.255.0"	# REPLACE with YOUR netmask!
NETWORK="192.168.1.0"	# REPLACE with YOUR network address!
BROADCAST="192.168.1.255"	# REPLACE with YOUR broadcast address, 
if you
			# have one. If not, leave blank and edit 
below.
GATEWAY="192.168.1.1"	# REPLACE with YOUR gateway address!

# Uncomment the line below to configure your ethernet card.
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask 
${NETMASK}

# If the line above is uncommented, the code below can also be 
uncommented.
# It sees if the ethernet was properly initialized, and gives the 
admin some
# hints about what to do if it wasn't.
if [ ! $? = 0 ]; then
  cat << END
Your ethernet card was not initialized properly.  Here are some 
reasons why this
may have happened, and the solutions:
1. Your kernel does not contain support for your card.  Including all 
the 
   network drivers in a Linux kernel can make it too large to even 
boot, and
   sometimes including extra drivers can cause system hangs.  To 
support your
   ethernet, either edit /etc/rc.d/rc.modules to load the support at 
boottime,
   or compile and install a kernel that contains support.
2. You don't have an ethernet card, in which case you should comment 
out this
   section of /etc/rc.d/rc.inet1.  (Unless you don't mind seeing this 
error...)
END
fi

# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
if [ ! "$GATEWAY" = "" ]; then
 /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
fi

# End of rc.inet1


二台目:

#! /bin/sh
#
# rc.inet1	This shell script boots up the base INET system.
#
# Version:	@(#)/etc/rc.d/rc.inet1	1.01	05/27/93
#

HOSTNAME=`cat /etc/HOSTNAME`

# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to 
configure the 
# eth0 interface. If you're only using loopback or SLIP, don't include 
the
# rest of the lines in this file.

# Edit for your setup.
IPADDR="192.168.1.2"	# REPLACE with YOUR IP address!
NETMASK="255.255.255.0"	# REPLACE with YOUR netmask!
NETWORK="192.168.1.0"	# REPLACE with YOUR network address!
BROADCAST="192.168.1.255"	# REPLACE with YOUR broadcast address, 
if you
			# have one. If not, leave blank and edit 
below.
GATEWAY="192.168.1.1"	# REPLACE with YOUR gateway address!

# Uncomment the line below to configure your ethernet card.
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask 
${NETMASK}

# If the line above is uncommented, the code below can also be 
uncommented.
# It sees if the ethernet was properly initialized, and gives the 
admin some
# hints about what to do if it wasn't.
if [ ! $? = 0 ]; then
  cat << END
Your ethernet card was not initialized properly.  Here are some 
reasons why this
may have happened, and the solutions:
1. Your kernel does not contain support for your card.  Including all 
the 
   network drivers in a Linux kernel can make it too large to even 
boot, and
   sometimes including extra drivers can cause system hangs.  To 
support your
   ethernet, either edit /etc/rc.d/rc.modules to load the support at 
boottime,
   or compile and install a kernel that contains support.
2. You don't have an ethernet card, in which case you should comment 
out this
   section of /etc/rc.d/rc.inet1.  (Unless you don't mind seeing this 
error...)
END
fi

# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
if [ ! "$GATEWAY" = "" ]; then
 /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
fi

# End of rc.inet1

***************
*   Jo Kou    *
***************

Follow-Ups
[plamo:01470] Re: LANに関する初歩的な質問, Yasutada SHIMAZAKI
[plamo:01471] Re: LANに関する初歩的な質問, Shigenori Shimokawara
References
[plamo:01432] Re: LANに関する初歩的な質問, Yasutada SHIMAZAKI

[検索ページ] [メール一覧]
Plamo ML 公開システム