migracija mac/ip sa jedne mašine na drugu

Kabliranje: obe mashine su na istom switchu.

Podešavanje IP adrese, na bilo kojoj od dve mašine:


/sbin/ifconfig eth1 down
/sbin/ifconfig eth1 hw ether 00:05:5d:01:01:01 # ODABRANI MAC za migraciju (neki izmišljeni :)
/sbin/ifconfig eth1 10.10.9.21 netmask 255.255.255.0 # IP ADRESA
/sbin/ifconfig eth1 up

Dekonfigurisanje na prvoj mašini:


/sbin/ifconfig eth1 down
/sbin/ifconfig eth1 hw ether XX:XX:XX:XX:XX:XX # ORIGINALNI MAC kartice u mashini
/sbin/ifconfig eth1 0.0.0.0

Dekonfigurisanje na drugoj mašini:


/sbin/ifconfig eth1 down
/sbin/ifconfig eth1 hw ether YY:YY:YY:YY:YY:YY # ORIGINALNI MAC kartice u mashini
/sbin/ifconfig eth1 0.0.0.0

Potrebno je vratiti originalne MAC adrese i skinuti IP sa interfejsa. Za monitoring i pokretanje konfigurisanja može da se upotrebi heartbeat ili pacemaker (ili možda ima još neko rešenje, možda custom scripte za monitoring).

This entry was posted in linux and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>