Tuesday, March 17, 2009

Swapping order of network card with the same driver

If a Linux box has 2 network card, an easy way to swap the order, swapping eth0 and eth1, is to change the alias setting in /etc/modprobe.conf.

But how about the machine which has 2 cards using the same driver? The trick is to change MACADDRESS correspond to each card to your desire order. For CentOS, this can be set in /etc/sysconfig/network-scripts/ifcfg-eth*. Swap it, stop network (service network stop), remove driver, then start network again (service network start)

0 ความคิดเห็น: