Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2000 23:29:15 -0700
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        "JP (J. Patrick Russell)" <jr@paranoia.demon.nl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Dual homed host routing problem
Message-ID:  <20000911232915.J69158@149.211.6.64.reflexcom.com>
In-Reply-To: <200009112133.XAA01602@pig.bigmama.xx>; from jr@paranoia.demon.nl on Mon, Sep 11, 2000 at 11:33:49PM %2B0200
References:  <200009112133.XAA01602@pig.bigmama.xx>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 11, 2000 at 11:33:49PM +0200, JP (J. Patrick Russell) wrote:
> HELP!  I'm trying to setup a dual homed host with two ethernet devices.  Only 
> one device seems to be forwarding.  ed1 never seems to fully forward, I have 
> switched the card out with another type (rl0), but the behavior was identical 
> -- only interface ed0 worked.  ed1 is recognized and the cards do not seem to 
> conflict:
> 
> dmesg relevant output:
> 
> ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0x6000-0x601f irq 11 at device 
> 12.0 on pci0
> ed0: address 52:54:00:da:22:0c, type NE2000 (16 bit)
> ed1: <NE2000 PCI Ethernet (RealTek 8029)> port 0x6100-0x611f irq 10 at device 
> 14.0 on pci0
> ed1: address 52:54:00:da:21:6d, type NE2000 (16 bit) 

Your line breaks are messed up. Please cut your text at about 72
columns, but please do not put newlines and break lines when quoting
computer output (like your dmesg output above).

> and ed1 is automatically added to the routing table:
> 
> Internet:
> Destination        Gateway            Flags      Netif Expire
> default            172.16.1.2         UGSc        ed1
> 127.0.0.1          127.0.0.1          UH          lo0
> 172.16.1/24        link#2             UC          ed1 =>
> 172.16.1.2         link#2             UHLW        ed1 =>
> 172.16.1.3         52:54:0:da:21:6d   UHLW        lo0
> 192.168.118        link#1             UC          ed0 =>
> 192.168.118.1      52:54:0:da:22:c    UHLW        lo0
> 192.168.118.2      0:e0:4c:66:77:3d   UHLW        ed0    750
> 
> getting to the ed1 interface from the ed0 subnet works, but nothing gets 
> forwarded beyond the nic.
> gateway_enable="YES" is set in rc.conf, and sysctl is set so 
> net.inet.ip.forwarding=1

The gateway_enable="YES" and manually setting net.inet.ip.forwarding
is redundant, that's what the gateway_enable does.

How have you tested it? What are the symptoms of yur problem? Saying
ed1 does not "fully forward" is a little unclear? Are you trying to
connect from a host on ed0's LAN to one on ed1's? Or the other way
around? Can the gateway connect to machines on either LAN?
-- 
Crist J. Clark                           cjclark@alum.mit.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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