Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Aug 1998 22:51:04 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        charlespeters@chickenbean.com
Cc:        questions@FreeBSD.ORG
Subject:   Re: Cable modem gateway via freebsd 2.2.6 release for win95 client boxes
Message-ID:  <Pine.BSF.4.00.9808162245310.21985-100000@resnet.uoregon.edu>
In-Reply-To: <000301bdc80e$887c8080$20710418@ci1000971-c.sptnbrg1.sc.home.c om>

next in thread | previous in thread | raw e-mail | index | archive | help

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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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



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