Subject: Routing with NetBSD 1.3.3
To: Dave Burgess <>
From: Lukas Ruf <>
List: tech-net
Date: 04/06/1999 11:34:48
Hi Dave,

Sorry to disturb you, but I found your address in 
[comp.unix.bsd] NetBSD, FreeBSD, and OpenBSD FAQ (Part 6 of 10).

The reason I am sending you this email lays in the fact that I have
spend about 40 hours trying to get one machine running NetBSD 1.3.3 to
route all incoming requests from a Linux station A to another Linux
station B -- at the end I gave up.... :-(

I will call the NetBSD station C.

My hardware layout:

	C: 1 3c590 (ep2) card used for the 10baseT/UTP connection to a
		hub and so the station B. 
	   1 3c900 (ep1) card used for the 10base2/BNC connection to
		station A.
	A: 1 NE2000 card (eth0, as Linux)
	B: 1 Etherlink card (eth0 as Linux)

commands sent on C:
ifconfig ep1 inet netmask 0xffffff00 media 10base2/BNC up
ifconfig ep2 inet netmask 0xffffff00 media 10baseT/UTP up

route add -host
route add -host

route add -net -netmask 0xffffff00 -gateway
route add -net -netmask 0xffffff00 -gateway

command sent on A:
route -net -netmask eth0
route add default gw

command sent on B:
route -net -netmask eth0
route add default gw

	A <-> C : ping & rlogin
	B <-> C : ping & rlogin
	A <-> B : ping & rlogin, i.e. both failed.

My Questions:
Can you give me the solution to:
	- why can I do A <-> C and B <-> C but not A <-> B (via C) ??
	- what's the reason that C doest not forward all packets with 
	  destination other destination than C itself ?
	- what's the solution to this problem, do you give it to me if
	  possible ?

Kind Regards,