From owner-freebsd-net Wed Jun 12 7:22:31 2002 Delivered-To: freebsd-net@freebsd.org Received: from hotmail.com (f67.law11.hotmail.com [64.4.17.67]) by hub.freebsd.org (Postfix) with ESMTP id E398B37B401 for ; Wed, 12 Jun 2002 07:22:25 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 12 Jun 2002 07:22:25 -0700 Received: from 152.75.99.55 by lw11fd.law11.hotmail.msn.com with HTTP; Wed, 12 Jun 2002 14:22:24 GMT X-Originating-IP: [152.75.99.55] From: "Kim Okasawa" To: jasper@ivision.co.uk Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD+Win2K+Wireless LAN Date: Wed, 12 Jun 2002 23:22:24 +0900 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 12 Jun 2002 14:22:25.0814 (UTC) FILETIME=[93389B60:01C2121C] 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 Thanks for the info. I added the route to the FreeBSD box and it can now ping the notebook computer but NOT vice versa (i.e. notebook cannot ping the FBSD box.) Any idea what might be wrong? Thanks. BTW, I did set the Win2K's 2nd NIC's gateway to 172.16.0.1. Sorry for the typo. Kim ----Original Message Follows---- From: Jasper Wallace To: Kim Okasawa CC: Subject: Re: FreeBSD+Win2K+Wireless LAN Date: Tue, 11 Jun 2002 23:04:00 +0100 (BST) 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.1 > | > +---..))) > > > (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 _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message