Need help on configuring a static internal IP address.

David Kelly dkelly at hiwaay.net
Wed Mar 26 22:44:09 PST 2003


On Wed, Mar 26, 2003 at 05:18:40PM -0500, Edinho wrote:
[...]
> I'm using FBSD4.8 stable, my belkin router uses 192.168.2.1, subnet mask 
> is 255.255.255.0 and the gateway is also 192.168.2.1.
> 
> Here's how my rc.conf looks like now:
> 
> hostname="ecerejo.Belkin"
> ifconfig_fxp0="inet 192.168.2.72"

Change ifconfig_fxp0 and add defaultrouter:

ifconfig_fxp0="inet 192.168.2.72/24"
defaultrouter="192.168.2.1"

Quickie without reboot, type this as root:

ifconfig fxp0 netmask 255.255.255.0
route add default 192.168.2.1

FYI: /etc/resolv.conf was written by dhclient for you. Otherwise you
would have to create it and list your upstream DNS serivce.

-- 
David Kelly N4HHE, dkelly at hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.


More information about the freebsd-questions mailing list