Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 May 2009 15:40:44 +0100
From:      Chris Rees <utisoft@googlemail.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Changing NIC
Message-ID:  <b79ecaef0905080740r5688d9f8n9f7281cc29397fb3@mail.gmail.com>
In-Reply-To: <57200BF94E69E54880C9BB1AF714BBCB5DE810@w2003s01.double-l.local>
References:  <4A0432A0.40901@webrz.net> <57200BF94E69E54880C9BB1AF714BBCB5DE810@w2003s01.double-l.local>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/5/8 Johan Hendriks <Johan@double-l.nl>:
>>- 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?



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