Question about DHCP client with multi-interface.

Beech Rintoul beech at alaskaparadise.com
Tue May 23 13:54:30 PDT 2006


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 = 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="inet 10.20.16.59 netmask 255.255.255.0"
ifconfig_fxp0="DHCP"

remove any other ifconfig_ em0 or fxp0 lines and reboot.

Beech

-- 

---------------------------------------------------------------------------------------
Beech Rintoul - Sys. Administrator - beech at 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
---------------------------------------------------------------------------------------











-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060523/eadf4b42/attachment.pgp


More information about the freebsd-questions mailing list