Subject: Re: setting up a network router
To: john simon <simon@monami.kaist.ac.kr>
From: David Brownlee <david@mono.org>
List: netbsd-help
Date: 02/28/1997 01:49:27
You need to ensure that options GATEWAY is enabled in your kernel
build.
David/abs david@{mono.org,southern.com,mhm-internet.com}
Microsoft: Asks you where you want to go. NetBSD gets you there.
System Manager: Southern Studios Ltd, PO Box 59, London N22 1AR.
System Admin: MHM Internet, 14 Barley Mow Passage, Chiswick, London W4 4PH.
SysOP: Monochrome, Largest UK Internet BBS - 'telnet mono.org'.
On Thu, 27 Feb 1997, john simon wrote:
>
> I suppose this is a VERY FAQ, but since our news server
> is down and I couldn't find appropriate answer in
> 386bsd-faq.
>
> I'm running a SS1+ with NetBSD-1.2. It has a secondary
> ethernet card, and I want to set it up as a network router.
> result of "ifconfig -a" is like this.
>
>
> le0: flags=a863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,LINK1,MULTICAST>
> inet 143.248.173.51 netmask 0xffffff00 broadcast 143.248.173.255
> le1: flags=a863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,LINK1,MULTICAST>
> inet 143.248.187.1 netmask 0xffffff00 broadcast 143.248.187.255
> lo0: flags=8009<UP,LOOPBACK,MULTICAST>
> inet 127.0.0.1 netmask 0xff000000
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST>
> ...
>
> AND, as in 386bsd-faq, I tried "sysctl -w net.inet.ip.forwarding = 1"
> and even tried to recompile the kernel, but still it doesn't work.
> Some lines from "netstat -rn" are like this.
>
> default 143.248.173.1 UGS 2 835 - le0
> 127.0.0.1 127.0.0.1 UH 1 5 - lo0
> 143.248.173 link#1 UC 0 0 - le0
> 143.248.173.51 127.0.0.1 UGHS 1 25 - lo0
> 143.248.173.255 link#1 UHL 1 278 - le0
> 143.248.187 link#2 UC 0 0 - le1
> 143.248.187.1 8:0:20:a:57:b1 UHL 0 1 - lo0
> 143.248.187.100 0:0:e8:2b:35:fb UHL 0 0 - le1
> 143.248.187.101 link#2 UHL 1 1801 - le1
> 143.248.187.103 2:60:8c:6d:3:1f UHL 1 13710 - le1
> 143.248.187.255 link#2 UHL 1 35 - le1
>
> 173.* is the primary net, and 187.* is secondary(internal) net.
> there seems to be nothing wrong, but still it doesn't work.
> routed is NOT having "-q" option. I even tried "-s -g" option.
> nothing works. please help me. I'm in very urgent need.
>
> --
> john simon
> simon@monami.kaist.ac.kr
>