Yuan Jue wrote:

one more question
since I use a fixed IP address in my dormitory and a dynamic IP address
in the classroom or library, i need to change my local NIC configure from
time to time. In fact, I use the fixed IP address as my default setting, which
is as follows:

what is the right way to do it? or is there any better solution for my situation?

Try to take a look at dhclient.conf(5) and dhclient(8) and set all interfaces to be configured with dhcp. I think it should be posible to configure default values so there is something to fall back on if a lease is not obtained.

Note that dhclient is new in FBSD 6, this is also why you had to take down the other interface. The old dhclient would reset all dhcp configured interfaces, the new doesn't, which is quite neat because usually you would have the two interfaces connected to /different/ networks.

Cheers, Erik
--
Ph: +34.666334818                           web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to