ºìÁªLinuxÃÅ»§
Linux°ïÖú

Windows 2003ÏÂDHCP·þÎñÆ÷ÅäÖÃÖ¸ÄÏ

·¢²¼Ê±¼ä:2006-08-20 20:15:30À´Ô´:ºìÁª×÷Õß:bear10214
[b][/b]
ÔÚÆóÒµÍøÂçÖУ¬Íø¹ÜÔ±µÄÖØÒª¹¤×÷Ö®Ò»¾ÍÊÇÈçºÎÓÐЧµÄ¹ÜÀí¾ÖÓòÍøÄÚ²¿µÄIPµØÖ·¡£¼ÆËã»ú¿ÉÒÔͨ¹ý¾²Ì¬ÊÖ¹¤·ÖÅäIPµØÖ·ºÍDHCP·þÎñÆ÷¶¯Ì¬·ÖÅäIPµØÖ·Á½ÖÖ·½Ê½¹ÜÀí¾ÖÓòÍøIPµØÖ·£¬ÔÚ¾ÖÓòÍøÄÚ»úÆ÷²»¶àºÍIPµØÖ·²»»áƵ·±¸Ä¶¯µÄÇé¿öÏ£¬ÎÒÃÇÍø¹ÜÔ±ÅóÓѶ¼»áʹÓþ²Ì¬·ÖÅäIPµØÖ·£¬ÕâÑù×öµÄºÃ´¦ÊÇ¿ÉÒÔ¶ÔÓû§µÄIPµØÖ·ÓÐͳһµÄ·ÖÅ䣬±ãÓڼǼÓû§µÄIPµØÖ·ÐÅÏ¢¡£½ñÌ죬ÎÒÃǾÍÒÔWindows 2003²Ù×÷ϵͳΪÀý½éÉÜDHCP·þÎñÆ÷µÄ¸ß¼¶ÅäÖü¼Êõ£¬ÎªÍø¹ÜÔ±ÅóÓѺÏÀíÓÐЧµÄ¹ÜÀíÍøÂçIPµØÖ·Ìṩ°ïÖú¡£
1¡¢ ±¸·Ý¡¢»¹Ô­DHCP·þÎñÆ÷ÅäÖÃÐÅÏ¢
ÔÚÍøÂç¹ÜÀí¹¤×÷ÖУ¬±¸·ÝһЩ±ØÒªµÄÅäÖÃÐÅÏ¢ÊÇÒ»ÏîÖØÒªµÄ¹¤×÷£¬ÒԱ㵱ÍøÂç³öÏÖ¹ÊÕÏʱ£¬Äܹ»¼°Ê±µÄ»Ö¸´ÕýÈ·µÄÅäÖÃÐÅÏ¢£¬±£ÕÏÍøÂçÕý³£µÄÔËת¡£ÔÚÅäÖÃDHCP·þÎñÆ÷ʱҲ²»ÀýÍ⣬Windows 2003·þÎñÆ÷²Ù×÷ϵͳÖУ¬Ò²ÎªÎÒÃÇÌṩÁ˱¸·ÝºÍ»¹Ô­DHCP·þÎñÆ÷ÅäÖõŦÄÜ¡£
µÚÒ»²½£º´ò¿ªDHCP¿ØÖÆ̨£¬ÔÚ¿ØÖÆ̨´°¿ÚÖУ¬Õ¹¿ª¡°DHCP¡±Ñ¡ÏѡÔñÒѾ­½¨Á¢ºÃµÄDHCP·þÎñÆ÷£¬ÓÒ¼üµ¥»÷·þÎñÆ÷Ãû£¬Ñ¡Ôñ¡°±¸·Ý¡±¡££¨Èçͼ1£©


ͼ1£ºÑ¡ÔñÒª±¸·ÝÅäÖÃÐÅÏ¢µÄ·þÎñÆ÷
µÚ¶þ²½£ºÕâʱ±ã»áµ¯³öÒ»¸öÒªÇóÓû§Ñ¡Ôñ±¸·Ý·¾¶µÄÑ¡ÏĬÈÏÇé¿öÏ£¬DHCP·þÎñÆ÷µÄÅäÖÃÐÅÏ¢ÊÇ·ÅÔÚϵͳ°²×°Å̵ġ°windows\system32\dhcp\backup¡±Ä¿Â¼Ï¡£ÈçÓбØÒª£¬ÎÒÃÇ¿ÉÒÔÊÖ¶¯¸ü¸Ä±¸·ÝµÄλÖᣵã»÷È·¶¨ºó¾ÍÍê³ÉÁ˶ÔDHCP·þÎñÆ÷ÅäÖÃÎļþµÄ±¸·Ý¹¤×÷¡££¨Èçͼ2£©

ͼ2£ºÑ¡ÔñÒª±¸·ÝÅäÖÃÎļþµÄλÖÃ
µÚÈý²½£ºµ±³öÏÖÅäÖùÊÕÏʱ£¬ÎÒÃÇÐèÒª»¹Ô­DHCP·þÎñÆ÷µÄÅäÖÃÐÅÏ¢£¬ÓÒ¼üµ¥»÷DHCP·þÎñÆ÷Ãû£¬Ñ¡Ôñ¡°»¹Ô­¡±Ñ¡Ïî¼´¿É£¬Í¬Ñù»áÓÐÒ»¸öÈ·¶¨»¹Ô­Î»ÖõÄÑ¡ÏѡÔñÎÒÃDZ¸·ÝʱʹÓõÄÎļþ¼Ðµ¥»÷¡°È·¶¨¡±°´Å¥£¬Õâʱ»áÓÐÒ»¸ö¡°¹Ø±ÕºÍÖØÐÂÆô¶¯·þÎñ¡±µÄ¶Ô»°¿ò£¬Ñ¡Ôñ¡°È·¶¨¡±ºó£¬DHCP·þÎñÆ÷¾Í»á×Ô¶¯»Ö¸´µ½×î³õµÄ±¸·ÝÅäÖᣣ¨Èçͼ3£©


ͼ3£ºÈ·¶¨Í£Ö¹ºÍÖØÐÂÆô¶¯DHCP·þÎñ
2¡¢ ÒÆÖ²DHCP·þÎñÆ÷Êý¾Ý¿â
ÔÚÓÐЩʹÓÃÏàͬDHCP·þÎñÆ÷ÅäÖÃÓÖ²»ÔÚͬһ̨·þÎñÆ÷µÄʱºò£¬ÕâʱÍø¹ÜÔ±ÅóÓѻῼÂÇʹÓÃÖØÐÂÅäÖ㬵«ÊÖ¹¤ÖØÐÂÅäÖûá±È½ÏÂé·³£¬ÕâÀïÎÒÃÇΪ´ó¼Ò½éÉÜÒ»ÖÖ×î¼òµ¥ÓÐЧµÄ·½Ê½£ºÒÆÖ²DHCP·þÎñÆ÷Êý¾Ý¿â¡£
Windows 2003¶Ôwindows 2003µÄDHCP·þÎñÆ÷Êý¾Ý¿âÒÆÖ²£º
µÚÒ»²½£ºÊ×ÏÈÔÚÒѾ­ÅäÖúÃDHCP·þÎñÆ÷µÄ»úÆ÷ÉÏ£¬µã»÷¡°¿ªÊ¼¡±²Ëµ¥£¬´ò¿ªÔËÐжԻ°¿ò£¬ÊäÈë¡°CMD¡±ÃüÁî¡££¨Èçͼ4£©

ͼ4£ºÔÚ¡°ÔËÐС±¶Ô»°¿òÖÐÊäÈë¡°CMD¡±
µÚ¶þ²½£ºÔÚµ¯³öµÄ¡°ÃüÁîÌáʾ·û¡±¶Ô»°¿òÖУ¬ÎÒÃÇÐèҪʹÓá°NETSH¡±ÃüÁîʵÏÖDHCP·þÎñÆ÷µÄÅäÖñ¸·ÝºÍÒÆÖ²¡£ÊäÈë¡°netsh dhcp server export e:\dhcp.txt all¡±ÃüÁ½«DHCP·þÎñÆ÷Êý¾Ý¿âÐÅÏ¢±¸·Ýµ½EÅÌ£¬Ö±µ½ÆÁÄ»ÏÔʾ¡°ÃüÁî³É¹¦Íê³É¡±µÄÌáʾ·µ»ØÌáʾ·ûÏ£¬¾Í±íʾÒѾ­½«DHCP·þÎñÆ÷Êý¾Ý¿âÐÅÏ¢³É¹¦µÄ±¸·Ýµ½EÅ̵±ÖУ¬Ôٴδò¿ªEÅÌ£¬¾Í»á¿´µ½Ò»¸öÃûΪDHCP·þÎñÆ÷µÄÎı¾Îļþ¡££¨Èçͼ5£©

ͼ5£º±¸·ÝDHCP·þÎñÆ÷Êý¾Ý¿âÐÅÏ¢
µÚÈý²½£º½«±¸·ÝµÄ¡°DHCP.TXT¡±Îļþͨ¹ýÍøÂç»òÕß¿ÉÒƶ¯½éÖÊ¿½±´µ½Áíһ̨·þÎñÆ÷cÅ̵±ÖУ¬Õą̂»úÆ÷֮ǰÒѾ­°²×°ÁËDHCP·þÎñ£¬µ«Î´½øÐÐÈκÎÅäÖ㬽øÈë¡°ÃüÁîÌáʾ·û¡±×´Ì¬Ï£¬ÊäÈë¡°netsh dhcp server import c:\dhcp.tex all¡±ÃüÁµã»÷»Ø³µºó£¬Ö±µ½³öÏÖ¡°ÃüÁî³É¹¦Íê³É¡±µÄÌáʾÐС££¨Èçͼ6£©

ͼ6£ºµ¼È뱸·ÝµÄDHCPÊý¾Ý¿âÎļþ
ÎÒÃÇÔٴδò¿ªDHCP¿ØÖÆ̨£¬Õâʱ¾Í»á¿´µ½¸Õ²Å±¸·ÝµÄÐÅÏ¢ÒѾ­Äܹ»Õý³£ÔÚÕą̂·þÎñÆ÷ÉÏʹÓÃÁË¡££¨Èçͼ7£©

ͼ7£º±»µ¼ÈëºóµÄDHCP·þÎñÆ÷
3¡¢ DHCP¹ÜÀíÓû§
»ùÓÚ°²È«ÐԵĿ¼ÂÇ£¬Windows·þÎñÆ÷²Ù×÷ϵͳ¶¼²ÉÓöàÓû§¹ÜÀí·½Ê½£¬±È½Ï°²È«µÄ×÷·¨ÊÇʹÓÃÒ»¸öAdministratorÕÊ»§£¬±ð½¨Ò»¸öȨÏ޽ϵ͵ÄÕÊ»§¡£ÔÚÒ»°ãµÄ²Ù×÷״̬ÏÂÓÃÓÃȨÏ޽ϵ͵ÄÓû§£¬±ÜÃâÒòAdministratorÕÊ»§È¨ÏÞ¹ý¸ßÒýÆðµÄÎó²Ù×÷£¬ÈçºÎʹÕâ¸öȨÏ޽ϵ͵ÄÓû§Äܹ»¹ÜÀíDHCP·þÎñÆ÷ÄØ£¿
µÚÒ»²½£ºÔÚ¿ØÖÆÃæ°åµÄ¹ÜÀí¹¤¾ßÖÐÑ¡Ôñ¡°¼ÆËã»ú¹ÜÀí¡±£¬ÔÚ´ò¿ªµÄ¶Ô»°¿òÖе¥»÷¡°±¾µØÓû§ºÍ×顱ѡÏî¡££¨Èçͼ8£©

ͼ8£ºÑ¡Ôñ±¾µØÓû§ºÍ×é
µÚ¶þ²½£ºÎÒÃÇÐèÒªÏȽ¨Á¢Ò»¸öȨÏ޽ϵ͵ÄÓû§£¬ÕâÀïÎÒÃǽ¨Á¢Ò»¸ö¡°adan¡±µÄÓû§£¬Á¥ÊôÓÚ¡°user¡±Óû§×é¡££¨Èçͼ9£©



ͼ9£º½¨Á¢Ò»¸öµÍȨÏÞÓû§
µÚÈý²½£º½ÓÏÂÀ´ÎÒÃǾÍÐèҪΪÕâ¸öadanµÄÓû§Ôö¼Ó¶ÔDHCP·þÎñÆ÷µÄ¿ØÖÆȨÏÞ£¬´ò¿ª×é¹ÜÀíÑ¡ÏÔÚÓÒ²àµÄÓû§×éÖÐË«»÷¡°DHCP Administrators¡±¼üÖµ¡££¨Èçͼ10£©


ͼ10£ºË«»÷DHCP Administrators¼üÖµ
ÔÚµ¯³öµÄDHCP Administrators¶Ô»°¿òÖУ¬µ¥»÷Ìí¼Ó¡£

ͼ11£ºDHCP Administrators¶Ô»°¿ò
×îºó½«¸Õ²Å½¨Á¢µÄadanÓû§Ìí¼Óµ½DHCP¹ÜÀíÔ±Óû§×飬ͨ¹ýÕâÑùµÄÉèÖã¬adanÕâ¸öUser×éÓû§£¬¾ÍÓÐÁ˹ÜÀíDHCP·þÎñÆ÷µÄȨÏÞ¡££¨Èçͼ12£©

ͼ12£ºÌí¼ÓDHCP¹ÜÀíÓû§
4¡¢ DHCP·þÎñÆ÷µÄIPµØÖ·ÓëMACµØÖ·°ó¶¨²ßÂÔ
ÔÚÍøÂç¹ÜÀíµÄ¹ý³Ìµ±ÖУ¬ÎÒÃǾ­³£»áÓöµ½Ò»Ð©Óû§Ë½×Ô¸ü¸ÄIPµØÖ·£¬¶øÔì³ÉIPµØÖ·³åÍ»£¬ÒýÆðÆäËûÓû§ÎÞ·¨ÉÏÍø£¬Í¨³£ÔÚÕâÖÖÇé¿öÏÂÎÒÃÇÍø¹ÜÅóÓÑ»á²ÉÓÃIPµØÖ·ÓëMACµØÖ·°ó¶¨µÄ²ßÂÔÀ´·ÀÖ¹IPµØÖ·±»µÁÓá£ÔÚDHCP·þÎñÆ÷ÖУ¬ÎÒÃÇͨ³£µÄ²ßÂÔÊǻᱣÁôһЩIPµØÖ·¸øһЩÌØÊâÓÃ;µÄÍøÂçÉ豸£¬Èç·ÓÉÆ÷¡¢´òÓ¡·þÎñÆ÷µÈµÈ£¬Èç¹û¿Í»§»ú˽×Ô½«×Ô¼ºµÄIPµØÖ·¸ü¸ÄΪÕâЩµØÖ·£¬¾Í»áÔì³ÉÕâЩÉ豸ÎÞ·¨Õý³£¹¤×÷¡£Õâʱ£¬ÎÒÃǾÍÐèÒªºÏÀíµÄÅäÖÃÕâЩIPµØÖ·ÓëMACµØÖ·½øÐа󶨣¬À´·ÀÖ¹±£ÁôµÄIPµØÖ·±»µÁÓá£
µÚÒ»²½£ºÁ˽â¿Í»§»úµÄMACµØÖ·
ÔÚÏëҪʵÏְ󶨵Ŀͻ§»úµÄ¡°¿ªÊ¼¡±-¡°ÔËÐС±ÖÐÊäÈë¡°CMD¡±ÃüÁ´ò¿ªWindows 2003µÄÃüÁîÌáʾ·û´°¿Ú¡£È»ºóÊäÈë¡°IPCONFIG /ALL¡±²é¿´ÍøÂçµÄÅäÖÃÐÅÏ¢£¬ÆäÖÐÓÐÒ»ÏîNICºóÃæµÄÊ®Áù½øÖÆÊý±ãÊÇÕą̂»úÆ÷µÄMACµØÖ·ÐÅÏ¢¡££¨ÈçÏÂͼÃèºì²¿·Ö£©


ͼ13£º²é¿´¿Í»§»úµÄMACµØÖ·
µÚ¶þ²½£ºÊµÏÖIPµØÖ·ÓëMACµØÖ·°ó¶¨²ßÂÔ
´ò¿ªDHCP·þÎñÆ÷¿ØÖÆ̨£¬Õ¹À´ÒѾ­½¨Á¢ºÃµÄDHCP·þÎñÆ÷£¬ÓÒ¼üµ¥»÷¡°±£Áô¡±Ñ¡ÏÕâʱÎÒÃÇÑ¡Ôñ¡°Ð½¨±£Áô¡±Ñ¡Ïî¡££¨ÈçÏÂͼ£©

ͼ14£ºÑ¡Ôñн¨±£ÁôÑ¡Ïµã»÷¿´´óͼ£©
³öµÄ¶Ô»°¿òÖУ¬ÔÚ¡°Ãû³Æ¡±ÀïÊäÈë±£ÁôµÄ¼ÆËã»úÃû£¬ÔÚ¡°IPµØÖ·¡±µÄÑ¡ÏîÖУ¬ÊÇÐèÒª°ó¶¨MACµØÖ·µÄIPµØÖ·£¬ÕâÀïÎÒÃÇÊäÈëÍø¹ØµÄµØÖ·192.168.0.1£¬ÔÚ¡°MACµØÖ·¡±µÄÑ¡Ïîµ±ÖУ¬½«Ö®Ç°ÔÚ¿Í»§»úÖп´µ½µÄMACµØÖ·Ìí¼Óµ½ÆäÖС£ÕâÑù£¬ÎÒÃǾÍΪÍøÂçÉϵÄÍø¹ØÉ豸·ÓÉÆ÷Ìí¼ÓÁËÒ»¸öMACµØÖ·°ó¶¨£¬¾ÍÔÙÒ²²»»á³öÏÖÕâ¸öµØÖ·±»µÁÓõÄÇé¿öÁË¡£


ͼ15£ºÊµÏÖ±£ÁôIPµØÖ·ÓëÆäMACµØÖ·°ó¶¨
5¡¢ ¿ç×ÓÍø¼äµÄDHCP·þÎñÆ÷Öм̴úÀí
Ëæ×ÅÍøÂç¹æÄ£µÄ²»Í¬À©´ó£¬ÎÒÃÇ»áʹÓÃWindows ·þÎñÆ÷²Ù×÷ϵͳµÄ¡°Â·ÓɺÍÔ¶³Ì·ÃÎÊ¡±¹¦Äܽ«ÍøÂç»®·ÖΪ²»Í¬µÄ×ÓÍø¡£ÈçºÎͨ¹ýһ̨DHCP·þÎñÆ÷£¬ÔÚÁ½Ì¨×ÓÍø¼äͬʱÌṩ·þÎñÄØ£¿ÔÚÕâʱ£¬¾ÍÐèҪʹÓõ½DHCP·þÎñÆ÷µÄÖм̴úÀí¹¦ÄÜÀ´ÊµÏÖÔÚÁ½¸ö×ÓÍøÖ®¼äͬʱÌṩDHCP·þÎñ¡£
µÚÒ»²½£º°²×°DHCPÖм̴úÀí
ÔÚÒѾ­°²×°ºÃ¡°Â·ÓɺÍÔ¶³Ì·ÃÎÊ¡±·þÎñµÄ¼ÆËã»úµ±ÖУ¬´ò¿ª¡°Â·ÓɺÍÔ¶³Ì·ÃÎÊ¡±¿ØÖÆ̨£¬È»ºóÑ¡Ôñ¡°IP·ÓÉЭÒ顱Öеġ°³£¹æ¡±Ñ¡ÏÓÒ¼üµ¥»÷£¬ÔÚµ¯³öµÄ²Ëµ¥ÖÐÑ¡ÔñÐÂÔö·ÓÉЭÒé¡££¨ÈçÏÂͼ£©


ͼ16£ºÐÂÔö·ÓÉЭÒé
ÔÚµ¯³öµÄ¶Ô»°¿òµ±ÖУ¬Ñ¡Ôñ¡°DHCPÖм̴úÀí³ÌÐò¡±È»ºóµ¥»÷¡°È·¶¨¡±°´¼ü£¬°²×°DHCPÖм̴úÀí¡££¨ÈçÏÂͼ£©

ͼ17£º°²×°DHCPÖм̴úÀí³ÌÐò
µÚ¶þ²½£ºÖ¸ÏòµÄDHCP·þÎñÆ÷µÄIPµØÖ·
Õâʱ£¬ÔÚ¡°IP·ÓÉÑ¡Ôñ¡±Ñ¡Ïîµ±Öоͻá¶àÁËÒ»Ïî¡°DHCPÖм̴úÀí³ÌÐò¡±£¬ÓÒ¼üµ¥»÷Õâ¸öÑ¡Ï´ò¿ª¡°ÊôÐÔ¡°¶Ô»°¿ò¡££¨ÈçÏÂͼ£©

ͼ18£ºÑ¡ÔñDHCPÖм̴úÀí³ÌÐòÊôÐÔÑ¡Ïî
ÔÚDHCPÖм̴úÀíµÄÊôÐÔ¶Ô»°¿òÖУ¬ÎÒÃÇÐèÒªÖ¸¶¨DHCPÖм̴úÀí³ÌÐòÖ¸ÏòµÄDHCP·þÎñÆ÷µÄIPµØÖ·£¬ÕâÀïÎÒÃÇÊäÈëDHCP·þÎñÆ÷µÄµØÖ·192.168.0.2¡££¨ÈçÏÂͼ£©

ͼ19£ºÖ¸ÏòµÄDHCP·þÎñÆ÷µÄIPµØÖ·
µÚÈý²½£ºÉèÖÃDHCP·þÎñµÄÖм̽ӿÚ
×îºó£¬ÎÒÃÇÔÙ´ÎÓÒ¼üµ¥»÷¡°DHCP·þÎñÖм̴úÀí³ÌÐò¡±Ñ¡ÏѡÔñ¡°ÐÂÔö½Ó¿Ú¡±À´½«DHCP·þÎñÖм̼ÓÔص½Ò»¸ö½Ó¿Úµ±ÖУ¬ÔÚÀý×ÓÖÐÎÒÃÇÑ¡Ôñ¡°ÄÚ²¿¡±µÄÕâ¸ö½Ó¿Ú£¬ÕâÑùÎÒÃǾͽ«¡°DHCPÖм̴úÀí³ÌÐò¡±Ó¦Óõ½ÍøÂçÖÐÁ¬½ÓÁíÒ»¸ö×ÓÍøµÄÍø¿¨µ±ÖС£Í¨¹ýÒÔÉÏÕâЩÉèÖ㬲»Í¬×ÓÍø¼äµÄ¼ÆËã»ú¶¼¿ÉÄÜͨ¹ýDHCPÖм̴úÀí³ÌÐò¶ø×Ô¶¯»ñÈ¡IPµØÖ·ÐÅÏ¢ÁË¡£

ͼ20£º½«DHCPÖм̴úÀí³ÌÐòÓ¦Óõ½½Ó¿Ú
×ܽ᣺
±¾ÎÄÖ÷ҪΪ´ó¼Ò½éÉÜÁËDHCP·þÎñÆ÷µÄһЩ¸ß¼¶ÅäÖÃÑ¡ÏÏàÐŶÔÓÚÎÒÃÇÍø¹ÜÔ±ÅóÓÑÔÚ¹ÜÀí¼°ÅäÖÃDHCP·þÎñÆ÷ʱ»áÓÐËù°ïÖú¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. bear10214 ÓÚ 2006-08-20 20:47:12·¢±í:

    ÆäʵÎҺʹó¼ÒÒ»Ñù,ÓÐͼµÄ¾ÍÃ÷°×¶àÁË

  2. ¶¡¶¡ ÓÚ 2006-08-20 20:18:23·¢±í:

    ²»¹ýºÜÏêϸ!!ллÀ²!!Â¥×âÐÁ¿àÁË

  3. ¶¡¶¡ ÓÚ 2006-08-20 20:17:43·¢±í:

    :0D1