From owner-freebsd-questions@FreeBSD.ORG Mon Jan 11 15:11:01 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8886106568B for ; Mon, 11 Jan 2010 15:11:01 +0000 (UTC) (envelope-from shihang0506@gmail.com) Received: from mail-pz0-f202.google.com (mail-pz0-f202.google.com [209.85.222.202]) by mx1.freebsd.org (Postfix) with ESMTP id 9EB8B8FC15 for ; Mon, 11 Jan 2010 15:11:01 +0000 (UTC) Received: by pzk40 with SMTP id 40so502708pzk.7 for ; Mon, 11 Jan 2010 07:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=V0qTmj+QzuhuoevPgt1Zn8iPcaKMDcbChcp9IO8n+JQ=; b=PMxZDDOzXDztFKVPqlzg+EF0ua/sR1F6Pqsj09k3OUI8jLBQT4tRdJffKpUdNQjaOW juiStUjk2qJAXsC6RgppR2MBDZlyhCY8dV4B21yGaZ0qt8CuiNXc8FznTvWPAwVE+FR4 0qgxFe2PcP9Y0Is7h4j1DoofKyF8pU4ftUaxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=eY6bs8/0cT3Z3vvSGOW4ZvCQWjUUZKaDesqq2UxwGZmgQx4eS+LlAMnqJc+zdiYuMG rDPs3hkzQWEtAeRZqajjl97syuEJOc9rVyj0jUBbEN/7giXQCcWIpW1Uu22ryhc0xAQY DBJ/hZB2jtYIlokUiwc2J/8OiGyrdEhnrf4OA= MIME-Version: 1.0 Sender: shihang0506@gmail.com Received: by 10.142.7.11 with SMTP id 11mr2728327wfg.140.1263222652367; Mon, 11 Jan 2010 07:10:52 -0800 (PST) Date: Mon, 11 Jan 2010 23:10:52 +0800 X-Google-Sender-Auth: d6e8ce7ee86c7505 Message-ID: From: Paul Shi To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Setup of Router machine with FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2010 15:11:01 -0000 Dear All, I have tried to setup a wireless network consist of a server, AP, a router machine and wireless client. Here is setup and configuration of my design. Please correct me if I am wrong about anything. Server IP: 192.168.2.1, Gateway: 192.168.2.2, Netmask: 255.255.255.0 --------------------------------------------------------------------------------------------- IP: 192.168.2.2, Netmask: 255.255.255.0 Router IP: 192.168.1.1, Netmask: 255.255.255.0 --------------------------------------------------------------------------------------------- IP:192.168.1.2, Gateway: 192.168.1.1, Netmask: 255.255.255.0 Access Point --------------------------------------------------------------------------------------------- IP: 192.168.1.3, Netmask: 255.255.255.0 Client I have add following to /etc/rc.conf of server machine static_routes="serverinternal" routes_serverinternal="'-net 192.168.2.1/24 192.168.2.2" and following to /etc/rc.conf of router machine static_routes="internal" routes_internal="'-net 192.168.2.2/24 192.168.1.1" Is there anything I have done wrong? Or anything else I need to do. My problem now is I cannot connect from server to router machine. Any suggestion would be greatly appreciated! Your sincerely, Paul Shi Electronic and Communication Engineering Senior Department of Electrical and Electronic Engineering University of Hong Kong