Help setup home network when gateways, ip asigned by DHCP

Rod Person rod.person at hotpop.com
Thu Aug 21 18:19:05 PDT 2003


I have been trying to setup a home network for some weeks now. Here is
the setup

 -----------     --------------      ----------------        -------
|Cable Modem|---|Gateway/Server|----|Cisco Poweredhub|------|FreeBSD|
 -----------     --------------      ----------------  |    |Laptop |
                                                       |     -------
                                                       |____|win XP |
                                                       |     ------- 
                                                       |  
                                                       |---- 2 other
                                                             win ws

My problem is that my gateway get its external ip address via DHCP.
I can't figure out how to setup ipfw rules to use DHCP addresses.

Here are the portions of rc.ipfw:

oif="fxp0"
onet=? this is assigned via DHCP
omask="255.255.255.240" <- Should I change this?
oip=????

#inside interface
iif=fxp1
inet="192.168.0.1/24"
mask="255.255.255.0"
iip="192.168.0.1"

If someone can point me in there right direction I be really grateful.
I can't find and discussion on this anywhere.



-- 
Rod

@ Home So No Cool Signature
http://opensourcebeef.bsd.st



More information about the freebsd-questions mailing list