Help setup home network when gateways, ip asigned by DHCP

Bob Hall rjhjr at cox.net
Thu Aug 21 19:14:17 PDT 2003


On Thu, Aug 21, 2003 at 09:17:55PM -0400, Rod Person wrote:
> 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=????

I believe your current omask will work; try it and see.

I use
        omask="255.255.255.0"
        onet=`ifconfig fxp0 | grep "inet " | awk '{print $2}'`/24
        oip=`ifconfig fxp0 | grep "inet " | awk '{print $2}'`
You could probably simplify that with
        oip=`ifconfig fxp0 | grep "inet " | awk '{print $2}'`
        onet=${oip}/24
but I haven't tried it. 

Bob Hall


More information about the freebsd-questions mailing list