Date: Fri, 28 Feb 1997 13:21:50 -0700 (MST) From: Brandon Gillespie <brandon@cold.org> To: John Brann <jbrann@brann.org> Cc: freebsd-questions@freebsd.org Subject: Re: setting up two ethernet devices--seperate networks Message-ID: <Pine.NEB.3.95.970228131353.8207A-100000@cold.org> In-Reply-To: <199702281852.NAA17258@freebie.brann.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.970228131353.8207A-100000>