From owner-freebsd-questions@FreeBSD.ORG Fri May 8 14:41:05 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AD78106566C for ; Fri, 8 May 2009 14:41:05 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id 2AA8A8FC18 for ; Fri, 8 May 2009 14:41:04 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: by ewy3 with SMTP id 3so1861837ewy.43 for ; Fri, 08 May 2009 07:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=ok+fwFMW/UQ48P8eeyjOxROdZWS6n+kiSciDEBHdiJQ=; b=ExqKZtjRIB+SIqcj2IuiUzIRIZr3o+zyZo9kx+dl2hBPXtUjcAhMmFIh0W1E1+lZQC kSoVyaTT65Zsma5rbsJLe0Yp2NaBlsXt2TuIT9NmzZqO8ppYINilSoT3p6m4v9159y4s KTTl6P0i4yliKxtyIQrYfouBiy6VAgf0U+mwU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; b=uBuzFBT3VrZKW4SgdkV8wbWLtMZO97RZBlQzSsIXeV7plkjQv4iF4VA95pGXlMLo2t CYaXpqo7djRmxz59TBZTRFWXfdLz2zos9+pEpac1x9xGO6nblMRoyHwqrHUWsvcs5eV+ 6zGNXZAih4Pqc88btNYd29qfiikSzkGEYVH2E= MIME-Version: 1.0 Received: by 10.210.116.14 with SMTP id o14mr4570946ebc.32.1241793664114; Fri, 08 May 2009 07:41:04 -0700 (PDT) In-Reply-To: <57200BF94E69E54880C9BB1AF714BBCB5DE810@w2003s01.double-l.local> References: <4A0432A0.40901@webrz.net> <57200BF94E69E54880C9BB1AF714BBCB5DE810@w2003s01.double-l.local> From: Chris Rees Date: Fri, 8 May 2009 15:40:44 +0100 Message-ID: To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Changing NIC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2009 14:41:05 -0000 2009/5/8 Johan Hendriks : >>- FreeBSD 7.2-STABLE >> >>I am about the change the (working) nic of my FreeBSD server with a >>gigabit one. >>Logically I think it would be good to add the new nic first and test it >>and if it is working, just remove the old one (or leave it without cable). >>Is that the common way of doing such? Are there disadvantages with that? >> >>Jos Chrispijn > > The only thing need to change is the line ifconfig_(interface_name)="xxx.xxx ...... in the file /etc/rc.conf If the server can be offline for some time, install the new NIC and remove the old one. > Then look in dmesg what name the new nic has, like bge0 or em0 or something like that. > Edit your /etc/rc.conf file so the line ifconfig_ has your new nic module name, like ifconfig_em0= and restart the network with /etc/netstart If all is working a final reboot and all should be OK > > Regards, > Johan > > To be honest, it should be OK even without the final reboot. Johan, is there a reason you prefer /etc/netstart rather than /etc/rc.d/netif restart? Are they equivalent, or is netstart 'better' for any reason? Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?