みやざき と申します。
NIC 2枚差しで、Linux box にて IP Masquerade を試みています。
Linux box プライベートアドレス側の NIC(192.168.0.1) には
PING が通るのですが、HUB 経由で接続している別のマシン(192.168.0.2)
への PING がタイムアウトになってしまいます。
*-HowTo や Linux-Users メイリングリストの過去ポストなどを頼りに
四苦八苦してみましたが、にっちもさっちもいかなくなってしまいました。
以下に状況を記述いたします。ダメ出し、ヒント、罵倒、などなど
ございましたらご教授いただけると幸いです。
Internet (CATV Internet via Cable Modem by DHCP)
|
----+----
|
| eth0(210.233.123.100)
+--------+
| | Linux box (RedHat5.2: kernel 2.0.36)
+--------+
| eth1(192.168.0.1)
|
+--------+
| | HUB (Pci EH805P)
+--------+
|
|
+--------+
| | Macintosh (192.168.0.2)
+--------+
以上の様なマシン構成です。
Linux box から、Internet(eth0) への通信は何ら問題がありません。
Linux box から、ping 192.168.0.1(eth1) すると反応があります。
Linux box から、ping 192.168.0.2 するとタイムアウトになってしまいます。
Linux box は、今までは FreeBSD2.2.5R にて運用しておりまして、
その頃は問題なく動作しておりました。
Linux(RedHat5.2)導入にあたり、各ハードウェアの変更はありません。
CPU: AMD K5 166MHz
Memory: 132MB
HDD: 1.6GB
NIC: eth0: RealTek RTL-8029(NE2000互換 PCI bus)
自動認識している模様です。
irq=3, io=0x7f80
eth1: Pci ENW-2401P-T(NE2000互換 ISA bus)
PnP を解除し、ジャンパで IRQ,I/O 設定しました。
irq=5 io=0x280
HUB: Pci EH805P
-- 現在までの流れ --
# cd /usr/src/linux; make config し、
CONFIG_{EXPERIMENTAL,MODULES,NET,FIREWALL,INET,IP_FORWARD,
IP_FIREWALL,IP_MASQUERADE,IP_ALWAYS_DEFRAG,DUMMY}および、
ne.o をモジュール追加し、カーネルを再構築。
コンソールにて...
# /sbin/modprobe ne.o irq=5 io=0x280
# /sbin/ifconfig eth1 192.168.0.1 netmask 255.255.255.0
# /sbin/route add -net 192.168.0.0 netmask 255.255.255.0
# hostname
# ttn-c100.cablenet.ne.jp
# ping www.linux.or.jp
PING riccia.linux.or.jp (202.218.249.195): 56 data bytes
64 bytes from 202.218.249.195: icmp_seq=0 ttl=52 time=645.2ms
...
# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.4ms
...
# ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2): 56 data bytes
ここで、止まります。eth1、HUB、192.168.0.2 いずれも、
アクセスランプは点滅しません(点灯しっぱなし)。
ここで、断念いたしました。
# /sbin/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:67 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
tunl0 Link encap:IPIP Tunnel HWaddr
inet addr:0.0.0.0 Mask:0.0.0.0
NOARP MTU:1480 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
tunl1 Link encap:IPIP Tunnel HWaddr
inet addr:0.0.0.0 Mask:0.0.0.0
NOARP MTU:1480 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
dummy Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:0.0.0.0 Bcast:0.0.0.0 Mask:0.0.0.0
BROADCAST NOARP 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
eth0 Link encap:Ethernet HWaddr 00:40:05:5F:4A:D0
inet addr:210.233.123.100 Bcast:210.233.123.255 Mask:255.255.254.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3720 errors:0 dropped:0 overruns:0 frame:0
TX packets:360 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
Interrupt:3 Base address:0x7f80
eth1 Link encap:Ethernet HWaddr 00:90:FE:10:01:B6
inet addr:192.168.0.1 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:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
Interrupt:5 Base address:0x280
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
210.233.122.0 0.0.0.0 255.255.255.0 U 1500 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 1500 0 0 eth1
210.233.122.0 0.0.0.0 255.255.254.0 U 1500 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 3584 0 0 lo
# cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-009f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : npu
0170-0177 : ide1
01f0-01f7 : ide0
0280-029f : NE2000
02f8-02ff : serial(auto)
0376-0376 : ide1
03c0-03df : vga+
03f0-03f5 : floppy
03f6-03f6 : ide0
03f7-03f7 : floppy DIR
03f8-03ff : serial(auto)
7f80-7f9f : eth0
# cat /proc/interrupts
0: 70726 timer
1: 1897 keyboard
2: 0 cascade
3: 5164 eth0
5: 10 NE2000
12: 3082 PS/2 Mouse
13: 1 math error
14: 29969 + ide0
15: 0 + ide1
# dmesg
Memory: sized by int13 0e801h
Console: 16 point font, 400 scans
Console: colour VGA+ 80x25, 1 virtual console (max 63)
pcibios_init : BIOS32 Service Directory structure at 0x000fdb60
pcibios_init : BIOS32 Service Directory entry at 0xfdb70
pcibios_init : PCI BIOS revision 2.10 entry at 0xfdb91
Probing PCI hardware.
Calibrating delay loop.. ok - 231.83 BogoMIPS
Memory: 127888k/131072k available (704k kernel code, 384k reserved, 2096k data)
Swansea University Computer Society NET3.035 for Linux 2.0
NET3: Unix domain sockets 0.13 for Linux NET3.035.
Swansea University Computer Society TCP/IP for NET3.034
IP Protocols: IGMP, ICMP, UDP, TCP, IPIP
Linux IP multicast router 0.07.
Swansea University Computer Society IPX 0.34 for NET3.035
IPX Portions Copyright (c) 1995 Caldera, Inc.
Appletalk 0.17 for Linux NET3.035
VFS: Diskquotas version dquot_5.6.0 initialized
Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
Checking 'hlt' instruction... Ok.
Linux version 2.0.36 (root _at_ ttn-c100.cablenet.ne.jp) (gcc version 2.7.2.3) #3 Wed Mar 31 01:26:47 JST 1999
Starting kswapd v 1.4.2.2
Serial driver version 4.13 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16550A
tty01 at 0x02f8 (irq = 3) is a 16550A
PS/2 auxiliary pointing device detected -- driver installed.
ide: i82371 PIIX (Triton) on PCI bus 0 function 57
ide: ports are not enabled (BIOS)
hda: WDC AC21600H, 1549MB w/128kB Cache, CHS=787/64/63
hdc: FX240S, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
tunnel: version v0.2b2
ne2k-pci.c:v0.99L 2/7/98 D. Becker/P. Gortmaker http://cesdis.gsfc.nasa.gov/linux/drivers/ne2k-pci.html
ne2k-pci.c: PCI NE2000 clone 'RealTek RTL-8029' at I/O 0x7f80, IRQ 3.
eth0: PCI NE2000 found at 0x7f80, IRQ 3, 00:40:05:5F:4A:D0.
Partition check:
hda: hda1 hda2 hda3
JAVA Binary support v1.01 for Linux 1.3.98 (C)1996 Brian A. Lantz
VFS: Mounted root (ext2 filesystem) readonly.
Adding Swap: 102812k swap-space (priority -1)
sysctl: ip forwarding off
ne.c:v1.10 9/23/94 Donald Becker (becker _at_ cesdis.gsfc.nasa.gov)
NE*000 ethercard probe at 0x280: 00 90 fe 10 01 b6
eth1: NE2000 found at 0x280, using IRQ 5.
Follow-Ups:
- [linux-users:50099] Re: NIC x 2: Ping timeoutAkira Hoshino
- [linux-users:50100] Re: NIC x 2: Ping timeoutKazumitsu Hanai
- Prev by Subject: [linux-users:50096] Re: XEmacsのカーソル移動
- Next by Subject: [linux-users:50098] Re: 雑談
- Previous by thread: [linux-users:50110] Re: [linux-users:50091] Please post w/o html (Re: インターネットサーバー構築術正誤表)
- Next by thread: [linux-users:50099] Re: NIC x 2: Ping timeout
- Indexes:[Main][Thread]