[2831] in linux-net channel archive
Re: Network card - Help
daemon@ATHENA.MIT.EDU (Luca Lizzeri)
Wed May 8 16:33:46 1996
Date: Tue, 7 May 1996 14:42:02 +0100 (GMT+0100)
From: Luca Lizzeri <lizzeri@mbox.vol.it>
Reply-To: Luca Lizzeri <lizzeri@mbox.vol.it>
To: Stephen Martin Kitchener <stephen@g6dzj.demon.co.uk>
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <AfduOAAaHPjxEw1t@g6dzj.demon.co.uk>
On Sun, 5 May 1996, Stephen Martin Kitchener wrote:
> Hi I hope somebody can help me.
>
> I have asked this before - and dispite helpfull suggestion I STILL cannot get
> my network configures.
>
> My System WILL look like this - assuming I can get the machines to talk to each
> other.
>
> .---------. .-------.
> | TNC | | TNC |
> ._________. ._______.
> | |
> 44.131.161.17 - sl0 44.131.161.16 - sl0
> .----------------------. .---------------------.
> | | | |
> | | | |
> | pc_1 | | pc_2 |
> | | | |
> | | | |
> '----------------------' '---------------------'
> 192.168.2.2 - eth0 192.168.1.1 - eth0
> | |
> '------------------------------------------------'
!!!! Class C network address, you have to have 192.168.1.2 not 192.168.2.2
>
> What I want to do is make the ether-net connection.
>
> I have in /etc/networks :-
>
> loopback 127.0.0.0
> radio-net 44.131.0.0
> ether-net 192.168.1.0
>
> on both machines
>
> I configure the ethernet devices with
>
See above, you are configuring the machine to be on different networks.
You have the broadcast address on a different class C net from the address
of the interface. I don't know what will happen, but I bet it's something
you don't want.
> /sbin/ifconfig eth0 192.168.2.2 \
> netmask 255.255.255.0 \
> broadcast 192.168.1.255 \
> up
> on pc_1 and
>
> /sbin/ifconfig eth0 192.168.1.1 \
> netmask 255.255.255.0 \
> broadcast 192.168.1.255 \
> up
>
> on pc-2
>
> I do,
>
> rout add ether-net eth0
>
> on both machines and then I get the following on pc-1
>
> Kernel Interface table
> Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flags
> lo 2000 0 64 0 0 0 64 0 0 0 BLRU
> eth0 1500 0 0 0 0 0 0 0 0 0 BRU
> sl0 236 0 11438 0 0 0 391 0 0 0 BRU
>
> 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:2000 Metric:1
> RX packets:64 errors:0 dropped:0 overruns:0
> TX packets:64 errors:0 dropped:0 overruns:0
>
> eth0 Link encap:10Mbps Ethernet HWaddr 00:00:C0:83:4D:65
> inet addr:192.168.2.2 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
> TX packets:0 errors:0 dropped:0 overruns:0
> Interrupt:5 Base address:0x290 Memory:b8000-bc000
>
> sl0 Link encap:AMPR AX.25 HWaddr G6DZJ-10
> inet addr:44.131.161.17 Bcast:44.131.161.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MTU:236 Metric:1
> RX packets:11431 errors:0 dropped:0 overruns:0
> TX packets:383 errors:0 dropped:0 overruns:0
>
> ------------------------------------------------------------------------------
> Kernel routing table
> Destination Gateway Genmask Flags MSS Wnd Met Use
> Iface
> naphill-router- * 255.255.255.255 UH 236 432 0 1 sl0
> loopback * 255.255.255.255 UH 1872 0 0 24 lo
> radio-net naphill-router- 255.255.255.0 UG 236 432 0 0 sl0
> ether-net * 255.255.255.0 U 1372 0 0 0 eth0
> loopback * 255.0.0.0 U 1872 0 0 48 lo
> default naphill-router- * UG 236 432 0 369 sl0
>
> ------------------------------------------------------------------------------
>
> Can anyone explain and hopefully give and answer as to how to correct this,
> I am referring to the 1372 under the MSS col.
Beats me. Something strange with route output. MSS for tcp on an ethernet
should be 1460 ( MTU - ip header - tcp header, right ? ). If I type route
I get MSS of 1500, but I never get ip fragments, so I guess it's all
right.
>
> I cannot get to the other side of the ether-net and if I do a ping -f
> 192.168.2.2 (local to pc-1) I get nearly 100% packet loss, if I do ping
> 192.168.2.2 all the packets return without error.
>
Try correcting with "ifconfig eth0 192.168.1.2 ...", all should work.
> I should say the pc-1 is running 1.3.23 with the WD 80*3 driver complied in -
> not a module and this device is at base address 280 IRQ 10 and successfully
> works under MSDOG, both ways to pc-2.
>
> The other machine is running 1.3.73 and all appears ok even the kernel routing
> table which reports the correct MSS size 1500 (if that is correct :-) ).
It is.
>
> Each machine has the same type of card installed a WD8013EPF made in 1992 and
> they both have no boot rom.
>
> I would appreciate any help as this now getting the better of me and should
> have been quite simple to setup.!!!
Yes, with the right IP addresses :-)
>
> --
> Stephen Martin Kitchener STEPHEN@G6DZJ.DEMON.CO.UK
> / ____/
> (_) - (_) > >> >> >> >>> > G6DZJ@LINUX.G6DZJ.AMPR.ORG
>
>
Luca Lizzeri Home: +39.+2.8053884
ll@niche.telnetwork.it Office: +39.+2.4815525
lizzeri@mbox.vol.it Fax: +39.+2.4982660