Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linuxϵͳ¹ÜÀíʵ¼ù(9)£ºDHCP·þÎñÆ÷ÅäÖÃ

    Ò»°ãÀ´½²£¬Èç¹ûÄãÓÐÒ»¸öÓÐÏßµ÷Öƽâµ÷Æ÷»òÕßÊý×ÖÓû§Ïß·£¬Äã¾Í¿ÉÒÔʹÓüÒÀïµÄµçÄÔ»ñÈ¡ÓÉÄãµÄ·þÎñÌṩÉ̶¯Ì¬·ÖÅäµÄIPµØÖ·¡£Èç¹ûÔÚµ÷Öƽâµ÷Æ÷ºÍ±¾µØÍøÂçÖ®¼ä°²×°ÁËÓÐÏß/Êý×ÖÓû§Ïß·µÄ·ÓÉÆ÷£¬ÄãµÄµçÄÔºÜÓпÉÄÜÊÇÔÚÆô¶¯¹ý³ÌÖдÓ·ÓÉÆ÷»ñÈ¡ÁËIPµØÖ·¡£ÄãÒ²¿ÉÒÔÑ¡Ôñ½ûÓñ¾µØ·ÓÉÆ÷ÖÐDHCP·þÎñÆ÷µÄ¹¦ÄÜ£¬¶øÉèÖÃÒ»¸öLinux»úÆ÷×÷ΪDHCP·þÎñÆ÷¡£
    Ê×ÏÈÒª°²×°dhcp·þÎñÆ÷¡£ÔÚRedHat/FedoraÖУ¬DHCP·þÎñÆ÷µÄRPM°üµÄÃüÃûÍùÍùÒÔdhcp¿ªÊ¼£¬ºó¸úÒ»¸ö°æ±¾ºÅ£¬±ÈÈçÕâÑùdhcp-3.0.1rc14-1.i386.rpm¡£¶Ô Debian/UbuntuÀ´ËµÈí¼þ°üÃû³Æ¿ÉÄÜÒ²°üº¬°æ±¾ºÅ. Óà dpkg --list | grep dhcp À´²éѯµ½Ò»¸öËùÓÐdhcpÈí¼þ°üµÄÁÐ±í£¬´Ó¶øÕÒµ½dhcp·þÎñÆ÷µÄÈí¼þ°üÃû³Æ£¨±ÈÈçdhcp3-server£©¡£ÎªÁË·½±ã£¬ÎÒÃÇ¿ÉÒÔ½«dhcpµÄ·þÎñÆ÷ºÍ¿Í»§¶Ëͬʱ°²×°¡£
    1¡¢DHCPµÄÅäÖÃÎļþ£º
RedHat/FedoraÏÂΪ/etc/dhcpd.conf£¬ÔÚDebian/UbuntuÏÂΪ/etc/dhcp3/dhcpd.conf¡£ÄÚÈÝÈçÏ£º
# ISC dhcpd for DebianµÄ¼òµ¥ÅäÖÃÎļþ
# ×¢Ò⣺Èç¹û/etc/ltsp/dhcpd.conf´æÔÚ£¬Ôò½«´úÌæ±¾Îļþ×÷ΪdhcpdµÄÅäÖÃÎļþ
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
# ddns-updates-style²ÎÊý£º¹ý¶ÈÐÔDHCP£­DNS»¥¶¯¸üС£¿ØÖÆ·þÎñÆ÷µ±Ò»¸ö×âÆÚ±»È·ÈÏʱ£¬
# ÊÇ·ñ³¢ÊÔ×öÒ»¸öDNS¸üС£ÔÚ°æ±¾2µÄ°üÖÐÎÒÃÇʹÓÃĬÈÏÖµ'none'£¬ÒòΪ´ÓDHCP v2¿ªÊ¼
# ÒѾ­²»Ö§³ÖDDNSÁË
ddns-update-style none;
# ¶ÔËùÓб»Ö§³ÖµÄÍøÂçµÄͨÓÃÑ¡ÏÒå...
# ΪDHCP¿Í»§¶ËÉèÖÃDNSÓòÃû
option domain-name "example.org";
# ΪDHCP¿Í»§¶ËÉèÖÃDNS·þÎñÆ÷Ãû£¨Ò²¿ÉÓÃIPµØÖ·£©
option domain-name-servers ns1.example.org, ns2.example.org;
# ĬÈϵĵØÖ·×âÆÚ£¨Ã룩
default-lease-time 600;
# ×µÄµØÖ·×âÆÚ
max-lease-time 7200;
# Èç¹û±¾DHCP·þÎñÆ÷ÊÇÊDZ¾µØÍøÂçÕýʽµÄDHCP·þÎñÆ÷£¬Ôòauthoritativeָʾ·ûÓ¦¸Ã¼¤»î
#authoritative;
# ʹÓñ¾Ñ¡ÏîÀ´·¢ËÍdhcpÈÕÖ¾ÏûÏ¢¸øÒ»¸ö²»Í¬µÄÈÕÖ¾Îļþ£¨Ä㻹ÐèÒªÐÞ¸Äsyslog.confÒÔÍê³ÉÖض¨Ïò£©
log-facility local7;
# ÔÚ±¾×ÓÍøÉÏûÓÐÈκεķþÎñ£¬µ«ÉùÃ÷Ëü¿ÉÒÔ°ïÖúDHCP·þÎñÆ÷Àí½âÍøÂçµÄÍØÆ˽ṹ
subnet 10.152.187.0 netmask 255.255.255.0 {
}
# ÕâÊÇÒ»¸ö·Ç³£»ù±¾µÄ×ÓÍøÉùÃ÷
subnet 10.254.239.0 netmask 255.255.255.224 {
range 10.254.239.10 10.254.239.20; # Äܹ»·ÖÅäµÄIPµØÖ··¶Î§
# ¿Í»§¶ËµÄĬÈÏÍø


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

Linux VI±à¼­ÃüÁî

Linux VI±à¼­ÃüÁîʹÓÃÆÊÎö
2010Äê01ÔÂ15ÈÕ ÐÇÆÚÎå 00:35
1¡¢viµÄ»ù±¾¸ÅÄî
¡¡¡¡»ù±¾ÉÏvi¿ÉÒÔ·ÖΪÈýÖÖ״̬£¬·Ö±ðÊÇÃüÁîģʽ£¨command mode£©¡¢²åÈëģʽ£¨Insert mode£©ºÍµ×ÐÐģʽ£¨last line mode£©£¬¸÷ģʽµÄ¹¦ÄÜÇø·ÖÈçÏ£º
1) ÃüÁîÐÐģʽcommand mode£©
¡¡¡¡¿ØÖÆÆÁÄ»¹â±êµÄÒƶ¯£¬×Ö·û¡¢×Ö»òÐеÄɾ³ý£¬Òƶ¯¸´ÖÆijÇø¶Î¼° ......

linuxÄÚ´æ¹ÜÀí

    Ò³ÉêÇëµÄºËÐĵ÷ÓÃÊÇ: __alloc_pages(). Ò³ÉêÇë˳ÐòÈçÏ£º
    Ê×ÏÈÕÒ×î´óÄÜ·ûºÏµÄ¿é, Èç¹ûÒ»¸ö¿ÕÏп鲻ÄÜÂú×ã, ¸ü¸ßÒ»¼¶µÄ¿é½«·Ö¸î³É2¸öbuddy, Ò»¸ö±»Õ¼ÓÃ, Ò»¸ö·ÅÈëµÍÒ»¼¶µÄfreelist.
    µ±¿é±»ÊÍ·Åʱ, ¼ì²éÿ¶Ôbuddy, Èç¹ûÁ½Õ߶¼¿ÕÏÐ, °ÑËûÃǺϲ¢µ½¸ü¸ßÒ»¼¶µÄ¿éÊý×é ......

linuxÏ°²×°jdk²¢ÅäÖ÷¾¶

linuxÏ°²×°ÅäÖ÷½·¨£º
µ½java.sun.comÏÂÔØ£ºj2sdk-1_4_2_04-linux-i586.bin.
±£´æµ½/mnt/Ï£¬È»ºósuÇл»µ½rootÓû§£¬
cd /usr/local/
chmod +x j2sdk-1_4_2_04-linux-i586.bin
È»ºó°´ÕÕÌáʾ£¬Ò»Â·¿Õ¸ñ»òÊÇÊäÈëaccept»òÕ߻سµÖ®ºó£¬°²×°Íê³É¡£
È»ºó
cd /usr/local/
ln -s j2sdk1.4.2_04 java
»·¾³±äÁ¿ÅäÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ