Re: Question about DHCP client with multi-interface.

2006-05-23 Thread Beech Rintoul
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 - [EMAIL PROTECTED]
/"\   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
---













pgpSpY4lVa2cG.pgp
Description: PGP signature


Re: Question about DHCP client with multi-interface.

2006-05-23 Thread Atom Powers

On 5/23/06, Yaning <[EMAIL PROTECTED]> 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


I hope these three interfaces are not on the same physical network.


then I enable one interface with DHCP, such as,
running command:

dhlient fxp0



In /etc/rc.conf

ifconfig_em0="10.20.16.59/24" (or whatever your netmask is)
ifconfig_fxp0="DHCP"


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?


It shouldn't be gone, but it may be unused if both interfaces are on
the same network. (Use "ifconfig" to check the status of your
interfaces.)



Thanks,

Yaning




--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"