From owner-freebsd-net Tue Jun 11 15: 4: 9 2002 Delivered-To: freebsd-net@freebsd.org Received: from avengers.ivision.co.uk (avengers.ivision.co.uk [212.25.225.7]) by hub.freebsd.org (Postfix) with ESMTP id 650C037B40B for ; Tue, 11 Jun 2002 15:04:03 -0700 (PDT) Received: from [212.25.225.7] (helo=avengers) by avengers.ivision.co.uk with esmtp (Exim 3.33 #1) id 17Htk8-0002KE-00; Tue, 11 Jun 2002 23:04:00 +0100 Date: Tue, 11 Jun 2002 23:04:00 +0100 (BST) From: Jasper Wallace To: Kim Okasawa Cc: Subject: Re: FreeBSD+Win2K+Wireless LAN In-Reply-To: Message-ID: X-NCC-RegID: uk.instant-web MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 12 Jun 2002, Kim Okasawa wrote: > Dear all, > > I want to set up my home network to take advantage of the D-Link DWL-120 USB > wireless adapter. I have set up the network as follow (see graph below), > and the FreeBSD and Win2K boxes can access to the Internet but the WinXP > notebook computer CAN NOT. I know somewhere along the line I did something > wrong. Can someone help me to fix the problem? Thank you. The freebsd machine dosn't know where to send packets for 192.168.0.2 to - add a static route like: route add -net 192.168.0.0/24 172.16.0.2 (i'm guessing the netmask there, it may be /16). Also the win2k box will need ip forwarding enabled (routing). (i have no idea how to do that - i've only used win2k breifly). I'm confused by the win2k machine having two default gateways - 172.16.0.2 and 172.16.0.1 - it should only need 172.16.0.1. I wrote a very basic guide to tcpip routing for consume.net - it describes almost exactly the problem you are having, you can find it here: http://pointless.net/~jasper/consume/docs/my-docs/routeing-intro.html > .-------------. > ( Internet ) > .------+------. > | > | > +------+------+ > | Cable Modem | > +------+------+ > | > | > +-------+--------+ <-- NIC (rl0): (DHCP) get ip from comcast > | FreeBSD 4.5 | > | Running natd. | > +-------+--------+ <-- NIC (fxp0): Private IP: 172.16.0.1 > | > | > | > +-------+--------+ <-- NIC: Private IP: 172.16.0.2 > | | Default Gateway: 172.16.0.1 > | Windows 2000 | > | | > +-------+--------+ <-- Wireless Adapter (D-Link DWL-120 USB) > | IP: 192.168.0.1 > | Default Gateway: 172.16.0.2 > | > +---..))) > > > (Wireless LAN, Ad-Hoc mode) > > > +---..))) > | > | > +------------------+ <-- Wireless Adapter (D-Link DWL-120 USB) > | Notebook - WinXP | IP: 192.168.0.2 > +------------------+ Default Gateway: 192.168.0.1 -- Internet Vision Internet Consultancy Tel: 020 7589 4500 60 Albert Court & Web development Fax: 020 7589 4522 Prince Consort Road vision@ivision.co.uk London SW7 2BE http://www.ivision.co.uk/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message