udev
- ¸®´ª½º Ä¿³Î¿ë ÀåÄ¡°ü¸®ÀÚ
- µð¹ÙÀ̽º µå¶óÀ̹ö¿Í ¿¬°èÇØ µ¿ÀÛÇÏ¸ç ³ëµå¸¦ ¸¸µé¶ó´Â ¿äûÀÌ ÀÖÀ»°æ¿ì ÆÄÀÏÀ» »ý¼º
- Áï, ÀåÄ¡°¡ ¿¬°áµÉ¶§¸¸ ³ëµå ÆÄÀÏÀ» »ý¼ºÇÏ¿© »ç¿ëµÇ±â¿¡ ºÒÇÊ¿äÇÑ ÆÄÀÏÀ» °¡Áö°í ÀÖÁö ¾Ê¾Æµµ µÈ´Ù.
"µð½ºÅ© Ä«ÇÇ , ·£Ä«µå±³Ã¼, ¸ÞÀκ¸µå(¿Âº¸µå·£) ±³Ã¼, °¡»óÈ È¯°æ³» ½º³À¼¦ ÀÌÈÄ ´Ù¸¥Àåºñ·Î Restore µî"
Áï MAC Address °¡ ¹Ù²î°ÔµÇ¸é......
³×Æ®¿öÅ© Áö¼Ó¼º ±ÔÄ¢À» ´ã´çÇÏ´Â ÆÄÀÏ
:: ½Ã½ºÅÛ ÀåÄ¡¸¦ ´ã´çÇÏ´Â ÆÄÀϵéÀº xxxxxx.rules ÇüÅ·ΠÁ¸Àç
/etc/udev/rules.d/70-persistent-net.rules ==>> Àç½ÃÀ۽à ¼¹ö¿¡ ÇÒ´çµÈ MAC Á¤º¸¸¦ Àоîµé¿© »õ·Î¿î ÆÄÀÏÀ» »ý¼º
/etc/udev/rules.d/75-persistent-net-generator.rules ==>> 70-persistent-net.rules ÆÄÀÏÀ» »ý¼º
³×Æ®¿öÅ© ´ã´çÆÄÀÏ ¸í·É¾î·Î »ý¼º
¹æ¹ý1)
export INTERFACE=eth0
export MATCHADDR=`ip addr show $INTERFACE | grep ether | awk '{print $2}'`
/lib/udev/write_net_rules
¹æ¹ý2)
udevadm : Send Control commands or test the device manager
# udevadm trigger --subsystem-match=net --action=add
±×·¸´Ù¸é ¾È »ý±â°ÔÇÏ´Â ¹æ¹ýÀº???
http://server.etutsplus.com/centos-disable-persistent-net-rules/
¹æ¹ý1)
cd /etc/udev/rules.d
rm -f 70-persistent-net.rules
touch 75-persistent-net-generator.rules
¹æ¹ý2) µ¿ÀÏÇÑ µð·ºÅ丮¸¦ ¸¸µé¾îµÎ°Å³ª.... /dev/null ·Î ¸µÅ©
:: Áߺ¹µÈ À̸§ÀÌ ÀÖÀ»°æ¿ì PASS
# mkdir /etc/udev/rules.d/70-persistent-net.rules
:: µ¿ÀÏÇÑ ÆÄÀϸíÀ» ¸¸µé¾îµÑ°æ¿ì¿¡´Â µ¤¾î¾º¿ì±â ¶§¹®¿¡..../dev/null ÆÄÀÏ·Î ¸µÅ©
# ln -sf /dev/null /etc/udev/rules.d/70-persistent-net.rules
¹æ¹ý3) rc.local ÀÚµ¿À¸·Î »èÁ¦ÇÏ°Ô
# echo "rm -f /etc/udev/rules.d/70-persistent-net.rules" >> /etc/rc.d/rc.local
¹æ¹ý4) /lib/udev/write_net_rules ¼öÁ¤
#RULES_FILE='/etc/udev/rules.d/70-persistent-net.rules'
RULES_FILE='/dev/null'
¡ØÁÖÀÇ : yum update µî ÆÐÅ°Áö¸¦ ¾÷µ¥ÀÌÆ®Çϸé ÇØ´ç ½ºÅ©¸³Æ®°¡ Àç»ý¼ºµÈ´Ù.
Áï, write_net_rules ÆÄÀÏÀÌ »õ·Î ¸¸µé¾îÁü