Linuxѧϰ±Ê¼Ç——DHCP·þÎñ
£¡¢¸ÅÄî
1¡¢DHCP£º¶¯Ì¬Ö÷»úÅäÖÃÐÒé
×÷ÓãºÓÃÓÚ¼ò»¯IPÅä¹ÜÀíµÄTCP/IP±ê×¼¡£
2¡¢DHCP¹¤×÷Á÷³Ì£º
Èç¹û¿Í»§»úÎÞ·¨ÕÒµ½DHCP·þÎñÆ÷£¬½«´ÓTCP/IPµÄBÀàÍø¶Î169.254.0.0ÖÐÑ¡Ò»¸öIP×÷Ϊ×Ô¼ºµÄIP¡£
3¡¢ÅäÖÃDHCP·þÎñ×¢Ò⣺
1£©°²×°Ö®Ç°ÒªÉ農̬IP
2£©ÔÚÅäÖÃDHCPʱ¿´¹æ»®Ò»ÏÂÐÅÏ¢£º
A¡¢È·¶¨IP·¶Î§¼´×÷ÓÃÓò
B¡¢È·¶¨×ÓÍøÑÚÂë
C¡¢È·¶¨Òª±£ÁôµÄIP£¬Èç·þÎñÆ÷Óõľ²Ì¬IP
D¡¢×âÓÃÆÚÏÞ£¬Ä¬ÈÏΪ8Ìì¡£
E¡¢¿ÉÑ¡µÄÓУ¬Íø¹Ø DNS µÄIP DNSÓòÃû WINSµÄIPµÈ£¨°´¾ßÌåÀ´£¬Ã»ÓÐÒ²¿É£©¡£
¶þ¡¢×ÛºÏʵÑ飺
A¡¢ÊµÑéÄ¿±ê£º´ÓʵÑéÖÐÕÆÎÕ£º
1¡¢DHCP·þÎñÆ÷¶àÇøÓòµÄÅäÖÃ
2¡¢DHCPÖм̷þÎñÆ÷µÄÅäÖÃ
3¡¢Linux¿Í»§¶ËµÄÅäÖá£
B¡¢ÊµÑéÍØÆËͼ£º
C¡¢ÊµÑé˵Ã÷£º
ÒòΪûÓÐʵ¼ÊµÄ»·¾³£¬Ö»ÓÐÓÃÐéÄâ»úÀ´Ä£Ä⣬¶ÔÓÚÐéÄâ»·¾³µÄ´î½¨¹ý³Ì£¬¸öÈËÈÏΪÊÇûÓÐÒâÒåµÄ£¬Ö»ÒªÄã¶ÔÕâ¸öÈí¼þºÍÍøÂç¹»ÊìϤ£¬´î½¨ÆðÀ´ÊÇûÓÐÎÊÌâµÄ£¬ËùÒÔÔÚÕâÀï²»»áд¹ØÓÚÐéÄâ»·¾³µÄ´î½¨¹ý³Ì¡£×¢ÒâµÄÊÇÐéÄâÍø¿¨Óм¯ÏßÆ÷»òÕß˵Êǽ»»»»úµÄ×÷Ó㬼´Äã°ÑͼÖÐDHCP·þÎñÆ÷ºÍLinux¿Í»§»ú£¬Öм̷þÎñÆ÷192µÄÍø¿¨·Åµ½Í¬Ò»¸öVmnetÏ£¬ÄÇôËûÃǾÍÊÇÔÚͬÍø¶ÎµÄ¡£ÈçºÎÀ´Çø·ÖÕâÈý¸öÍø¿¨¶ÔÓ¦µÄIP¾ÍҪעÒâÁË¡£
×¢Ò⣺Èç¹û»ú×Ó¿ª²»ÁËÕâô¶ą̀£¬¿ÉÒÔÖ»ÓÃһ̨Windows¿Í»§¶Ë£¬µ½Ê±Ö»Òª»»Ò»ÏÂÐéÄâÍø¿¨¾Í¿ÉÒÔ½øÐмì²âÁË¡£
D¡¢ÅäÖùý³Ì
1¡¢DHCP·þÎñÆ÷ÅäÖÃ
1£©°ÑDHCPµÄÅäÖÃÎļþÑù°æ¿½µ½/etcÏÂ
#cp /usr/share/doc/dhcp-3.0.l/dhcp.conf.sample /etc/dhcpd.conf (×¢Ò⣺²»Í¬°æ±¾µÄÓеãÃû×ÖµÄÇø±ð£¬µ«¶¼²î²»¶à£¬¶àÓÃTable¼ü²¹Æë)
2£©½øÈëÅäÖÃÎļþ½øÐÐÅäÖÃ:
#vi /etc/dhcpd.conf
dd
Ïà¹ØÎĵµ£º
FreeBSDÊÇÒ»¸öÍêÕûµÄ²Ù×÷ϵͳ£¬°üº¬ÁË´Ó¿ª·¢¹¤¾ßµ½¸÷ÖÖ¸÷ÑùµÄÓ¦ÓóÌÐò¡£
Ä¿Ç°ÈËÃÇÈÏΪFreeBSDÔÚÎȶ¨ÐÔºÍÍøÂçÔË×÷ÉϵÄÐÔÄÜÒªÓÅÓÚLinux¡£
ËüÓÉÒ»¸öÈí¼þ¿ª·¢µÄºËÐÄÍŶÓÀ´Î¬»¤£¬Õû¸öÔʼ³ÌÐò´úÂë»áÓÐ×éÖ¯µØ½øÐиüУ¬ËùÒÔ³ÌÐò´úÂë±È½ÏÓÐÒ»ÖÂÐÔ¡£
ÓÉÓÚÈËÃǶÔFreeBSDµÄÈÏʶ±È½ÏÉÙ£¬Ê¹Ó÷¶Î§Ò²±È½ÏС£¬µ¼ÖÂÁËËüÔÚ¶ÔһЩвúÆ· ......
“Sudo”ÊÇUnix/Linuxƽ̨ÉϵÄÒ»¸ö·Ç³£ÓÐÓõŤ¾ß£¬ËüÔÊÐíϵͳ¹ÜÀíÔ±·ÖÅä¸øÆÕͨÓû§Ò»Ð©ºÏÀíµÄ“ȨÀû”£¬ÈÃËûÃÇÖ´ÐÐһЩֻÓг¬¼¶Óû§»òÆäËûÌØÐíÓû§²ÅÄÜÍê³ÉµÄÈÎÎñ£¬±ÈÈ磺ÔËÐÐһЩÏñmount£¬halt£¬suÖ®ÀàµÄÃüÁ»òÕß±à¼Ò»Ð©ÏµÍ³ÅäÖÃÎļþ£¬Ïñ/etc/mtab£¬/etc/samba/smb.confµÈ¡£ÕâÑùÒÔÀ´£¬¾Í²»½ö¼õÉÙÁ ......
6. Devices
A device driver hides the hardware device’s communication
protocols from the operating system and allows the system to interact with the
device through a standardized interface.
Processes can communicate with a device driver via
file-like objects.
6.1 Device Types
A c ......
2008-07-07 22:09
3£¬init_conntrack£º
init_conntrackÓÃÓÚ´´½¨Ò»¸öеÄip_conntrack£¬²¢¶ÔÆä½øÐгõʼ»¯¡£
/*1,ÿһ¸öÁ¬½Ó°üº¬Á½¸ötuple£¬originalºÍreply£¬ip_ct_invert_tuple ¸ù¾Ý´«ÈëµÄoriginal tuple»ñÈ¡Æäreply tuple£¬Æä×îÖÕ½«µ÷ÓÃËùÊôÐÒéµÄinvert_tuple Íê³É´¦Àí*/
if (!ip_ct_invert_tuple(& ......
´ò°ü: tar [-j] | [-z] [cv] [-f tar°üÎļþ] Òª´òÈë°üµÄÔ´Îļþ
½â°ü: tar [-j] | [-z] [xv] [-f tar°üÎļþ] [-C Ö¸¶¨½â°üµÄĿ¼]
²é¿´: tar [-j] | [-z] [tv] [-f tar°üÎļþ]
³£ÓõĴò°üÑ¡Ïî:
Ñ¡Ïî
ÃèÊö
-c
½¨Á¢tar°üÎļþ
-t
²é¿´tar°üÎļþÖеÄÎļþÁбí
-x
½â¿ªtar°üÎļþ
-C path
Óë½â°üÑ¡Ïî(-x)ÅäºÏʹÓÃ,Ö¸¶¨ ......