RE: Changing NIC

2009-05-08 Thread 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
  

No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 8.5.325 / Virus Database: 270.12.21/2102 - Release Date: 05/08/09 
06:34:00
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Changing NIC

2009-05-08 Thread Chris Rees
2009/5/8 Johan Hendriks jo...@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?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Changing NIC

2009-05-08 Thread Michael Powell
Jos Chrispijn wrote:

 - 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?
 

One caveat comes to mind is don't make the mistake of putting the new NIC
in the same subnet as the old one. If it tests out OK you can flip them
with an rc.conf edit and a reboot, and/or a netif restart if you don't want
to reboot.

-Mike




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org