¡¡¡¡ÓÉÓÚ£¬»úÆ÷Ö÷°åºÍµçÔ´³öÁËÎÊÌ⣬¸÷»»ÁËÒ»¸ö£¬ÓÈÆäÊǵçÔ´£¬¾ÓÈ»ÌṩµÄ½Ó¿Ú»¹²»¹»£¬²»µÃÒÑÓÖÂòÁËÈý¸ùÒ»·Ö¶þµÄת½ÓÏß¡£
¡¡¡¡»»ÉÏÖ÷°åÖ®ºó£¬Íø¿¨µÄʶ±ðÉϾͳöÁËÎÊÌ⣬ÔÀ´ÊÇeth0ºÍeth1£¬ÏÖÔÚ±ä³É ÁËeth0_rename,eth1,eth3£¬ÕâÀïûÓÐeth2,»¹Êǵ½Á˺óÃæ²ÅÖªµÀ£¬Ô±¾»¹Ó¦¸ÃÓÐÒ»¸öÍø¿¨µÄ£¬ºóÀ´±»ÎҰεôÄõ½±ðµÄ»úÆ÷ÉÏÈ¥ÁË£¬ÕâÀïÈ´Õ¼ÁËÒ»¸öλÖá£
¡¡¡¡ÔÚgoogleÉÏËÑË÷eth0_renameÕÒµ½Á˼¸¸öÌû×Ó£¬ÄÚÈÝÈçÏ¡£
¡¡¡¡Do you have ifrename installed? If yes, just get rid of it and run/lib/udev/write_net_rules instead; this will generate udev-based persistentnaming rules for your network devices; you can modify them by editing the file/etc/udev/rules.d/z25_persistent-net.rules. What to edit should be pretty clear;if not, have look at this[0] howto.
¡¡¡¡Ê×ÏÈ£¬È·±£Ã»Óа²×°£ºifrename¡£
¡¡¡¡µÚ¶þ£¬ÓÃ/lib/udev/rules.d/write_net_rulesÃüÁîÐÂÉú³ÉÒ»¸ö/etc/udev/rules.d/XX_persistent-net.rulesÎļþ¡£
¡¡¡¡µÚÈý£¬¸ù¾ÝÐèÒªÐ޸ĴËÎļþ£¬ÀïÃæÓжÔÓ¦ÓÚÉ豸µÄinterface name.
¡¡¡¡ÕÒµ½ÕâЩÄÚÈݺܲ»ÈÝÒ×£¬ÒòΪһ°ãËÑË÷µ½µÄ¶¼ÊÇЩifconfigʹÓ÷½ÃæµÄÐÅÏ¢¡£
¡¡¡¡ÁíÍ⣬Õë¶ÔRedHatϵͳ£¬ÆäʹÓõÄÊÇ/etc/sysconfig/XXXX/XXX.eth0ÎļþµÄ·½Ê½£¬²»¹ý¶ÔÓÚÎÒÕâÀïµÄgentoo»·¾³£¬ÏÔÈ»ÊDz»ºÏÊʵġ£