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                                   [EMAIL PROTECTED]
London SW7 2BE                                   http://www.ivision.co.uk/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to