Setup of Router machine with FreeBSD

Paul Shi shihang at hkusua.hku.hk
Mon Jan 11 15:11:01 UTC 2010


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


More information about the freebsd-questions mailing list