Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2006 12:50:51 -0800
From:      Beech Rintoul <beech@alaskaparadise.com>
To:        freebsd-questions@freebsd.org
Cc:        Yaning <yaning98@yahoo.com>
Subject:   Re: Question about DHCP client with multi-interface.
Message-ID:  <200605231251.05928.beech@alaskaparadise.com>
In-Reply-To: <20060523203605.4273.qmail@web54302.mail.yahoo.com>
References:  <20060523203605.4273.qmail@web54302.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1320285.e8YvF72uPd
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Tuesday 23 May 2006 12:36, Yaning wrote:
> All,
> My system have three network cards, interface are
> fxp0, fxp1, em0. If I set one interface with static IP
> address at install time, such as:
> em0 IP =3D 10.20.16.59
>
> then I enable one interface with DHCP, such as,
> running command:
>
> dhlient fxp0
>
> Then I reboot system. After system boot up, fxp0
> assign an IP address by DHCP server.
> But the static ip address on em0 is gone.
> How can I correct this problem?
>
> Thanks,
>
> Yaning

Put the following in /etc/rc.conf

ifconfig_em0=3D"inet 10.20.16.59 netmask 255.255.255.0"
ifconfig_fxp0=3D"DHCP"

remove any other ifconfig_ em0 or fxp0 lines and reboot.

Beech

=2D-=20

=2D------------------------------------------------------------------------=
=2D-------------
Beech Rintoul - Sys. Administrator - beech@alaskaparadise.com
/"\   ASCII Ribbon Campaign  | Alaska Paradise
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
=2D------------------------------------------------------------------------=
=2D-------------












--nextPart1320285.e8YvF72uPd
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQBEc3W5p5D0B1NlT4URAogDAJ0bV2QKs+NwktNtWOT6M/iDEEWsgQCcD8BP
4IRZfcJ0QHb8t+pmGVIQCys=
=aGmZ
-----END PGP SIGNATURE-----

--nextPart1320285.e8YvF72uPd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605231251.05928.beech>