From owner-freebsd-questions Fri Feb 28 12:22:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA16376 for questions-outgoing; Fri, 28 Feb 1997 12:22:09 -0800 (PST) Received: from cold.org (cold.org [206.81.134.103]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA16369 for ; Fri, 28 Feb 1997 12:22:05 -0800 (PST) Received: from localhost (brandon@localhost) by cold.org (8.8.5/8.8.3) with SMTP id NAA08220; Fri, 28 Feb 1997 13:21:50 -0700 (MST) Date: Fri, 28 Feb 1997 13:21:50 -0700 (MST) From: Brandon Gillespie To: John Brann cc: freebsd-questions@freebsd.org Subject: Re: setting up two ethernet devices--seperate networks In-Reply-To: <199702281852.NAA17258@freebie.brann.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hmm, I am doing this, completely painlessly. I re-configged my ethernet > cards and modified sysconfig for them - and it worked. I also am not > firewalling, I'm using 10.0.0.0 as my local net. I've done this on 2.1.5 > and 2.2-BETA. > > No static routing is required, unless you're trying to forward packets > (which I can't because of the bogus network...) > > Please send me dmesg output of the configuration info for the two cards, > and the results of 'netstat -nr', before you add the static route. Hrm, well: # netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 206.81.134.1 UGSc 0 0 ed0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.1 link#2 UC 0 0 206.81.134 link#1 UC 0 0 206.81.134.1 link#1 UHLW 1 0 206.81.134.2 0:c0:f0:a:25:de UHLW 0 10 ed0 1181 206.81.134.54 0:40:95:a6:10:46 UHLW 1 61 ed0 1181 dmesg on the cards: ed0 at 0x340-0x35f irq 5 on isa ed0: address 00:80:c8:3e:de:38, type NE2000 (16 bit) ed1 at 0x300-0x31f irq 10 maddr 0xd8000 msize 16384 on isa ed1: address 00:00:c0:fa:87:2b, type WD8013EP (16 bit) And ifconfig is ran as/with the following results: ifconfig ed0 inet 206.81.134.97 netmask 255.255.255.0 ed0: flags=8843 mtu 1500 inet 206.81.134.97 netmask 0xffffff00 broadcast 206.81.134.255 ether 00:80:c8:3e:de:38 ifconfig ed1 inet 192.168.1.1 netmask 255.255.255.0 ed1: flags=8843 mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:00:c0:fa:87:2b Now, I can get networking to work through the 206.81.134.0 network (doesn't matter the interface--I've switched it to either ed0 or ed1 and both work). I tried adding a static rout for ed1 like: route add -net 192.168.1.0 -interface ed1 But this didn't work, and reported the error: writing to routing socket: File exists add net 192.168.1.0: gateway ed1: File exists *sigh* -Brandon Gillespie