Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 1997 19:25:08 +0930
From:      Greg Lehey <grog@lemis.com>
To:        "Michael W. Lucas" <mwlucas@bigbrother.rust.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: problems with freebsd router
Message-ID:  <19970822192508.35765@lemis.com>
In-Reply-To: <199708211341.JAA01219@bigbrother.rust.net>; from Michael W. Lucas on Thu, Aug 21, 1997 at 09:41:48AM -0400
References:  <199708211341.JAA01219@bigbrother.rust.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 21, 1997 at 09:41:48AM -0400, Michael W. Lucas wrote:
> Hello,
>
> I'm trying to use a FreeBSD box (2.2.1) as a router between two different
> Ethernet segments.  The second Ethernet card doesn't work properly.
>
> The Ethernet cards are 3C590s.  I've rebuilt the kernel to allow vx1, and
> set gateway=yes in /etc/sysconfig, as per the mailing list archives.  Both
> cards have IP addresses set in sysconfig, and routerflog is set to -s, per
> the man page.
>
> Upon boot, the machine recognizes both cards, i.e.:
>
> pedicular 9% ifconfig -a
> vx0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 209.69.72.162 netmask 0xffffff00 broadcast 209.69.72.255
>         ether 00:a0:24:ca:12:c8
> vx1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
>         ether 00:20:af:f5:c4:0e
> lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet 127.0.0.1 netmask 0xff000000
> pedicular 10%

It would be nice to see the dmesg output for this, though I'm not sure
that's the problem.

> Oddly, if I do "ifconfig vx1 up", the card comes up.  I can manually
> assign it an IP address, but I get errors like:
>
> Aug 21 05:42:41 pedicular routed[67]: punt RTM_ADD without gateway
> Aug 21 05:42:41 pedicular routed[67]: write(rt_sock) RTM_ADD 209.69.36.128/29 --
>> 209.69.36.129: File exists

Do both nets go to the Internet?  Otherwise it's unlikely that you
need routed.  Most people don't.  Anyway, it would be interesting to
see the output of netstat -rn before and after the attempted ifconfig
up.  And are you really setting your netmask to 0xfffffff8?a

Greg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970822192508.35765>