From owner-freebsd-questions Sun Aug 16 22:51:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA21319 for freebsd-questions-outgoing; Sun, 16 Aug 1998 22:51:42 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA21314 for ; Sun, 16 Aug 1998 22:51:40 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.5/8.8.8) with ESMTP id WAA12139; Sun, 16 Aug 1998 22:51:05 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Sun, 16 Aug 1998 22:51:04 -0700 (PDT) From: Doug White To: charlespeters@chickenbean.com cc: questions@FreeBSD.ORG Subject: Re: Cable modem gateway via freebsd 2.2.6 release for win95 client boxes In-Reply-To: <000301bdc80e$887c8080$20710418@ci1000971-c.sptnbrg1.sc.home.c om> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 15 Aug 1998 charlespeters@chickenbean.com wrote: > I have been trying for at least 20 hours to get a gateway configured so that > my win95 boxes can access the internet through my freebsd 2.2.6 release box. > The freebsd box has 2 network interface cards, vx0 is configured to access > the internet, and de0 (ip=192.168.0.1)is configued to hopefully be a gateway > device for the win95 boxes on my local network. I am able to ping the win95 > boxes from the bsd box, and ping the bsd box (both ip addresses) from the > win95 boxes. First of all, what brand/model of ethernet cards do you have? Are you sure they work individually? > The win95 boxes have ip addresses in the form, 192.168.0.2, 192.168.0.3, > 192.168.0.4, etc..... The default gateway setup in the win95 tcpip > configuration is 192.168.0.1, which points to the nic in the bsd box. ok. > I am including the output from the netstat -rn, and the ifconfig -a commands > below. ok. > I have read, re-read, configured, and tested netd, routed, and of coarse my > rc.conf file. The examples in the handbook obviously are of no assistance > to me, or I would have had this up and running two weeks ago. Did you check the mail archives? > I think that I need help with the following: > > natd > routed > ipfw > rc.conf > any other stuff that needs to be setup. In rc.conf, you must have gateway=yes set in /etc/rc.conf. Also double check your ipfw setup. > ci1000971-a# netstat -rn Internet: > Destination Gateway Flags Refs Use Netif > Expire > default 24.4.113.1 UGSc 3 11 vx0 > 24.4.113/24 link#1 UC 0 0 > 24.4.113.1 8:0:3e:0:ab:a2 UHLW 2 0 vx0 > 224 > 24.4.113.32 0:c0:f0:30:c6:38 UHLW 1 134 vx0 > 1164 > 127.0.0.1 127.0.0.1 UH 0 2 lo0 > 192.168 link#2 UC 0 0 > 192.168.0.1 0:c0:f0:30:c6:49 UHLW 0 4 lo0 Hm, there is no net route for your de card, so the system doesn't know how to return packets to that address. Try re-ifconfiging the de card and make sure a route shows up for it. If not, then add one. > de0: flagsˆ43 mtu 1500 > inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 > ether 00:c0:f0:30:c6:49 > media: autoselect (10baseT/UTP) status: active Checks out. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message