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

linuxÏÂÅäÖþ²Ì¬Â·ÓÉ

Internet------(eth1)router1(eth2)------(eth1)router2(eth0)------(eth0)router3(eth1)------(eth0)pc
ÉÏÃæ¾ÍÊÇÎÒµÄÍøÂçÍØÆË½á¹¹£¬ÆäÖзÓÉÆ÷1ÊÇÓÃÀ´Á¬½ÓÍâ²¿ÍøÂçµÄһ̨linux»úÆ÷£¬Í¼ÖÐËùÓзÓÉÆ÷¶¼ÊÇÆÕͨµÄpc»ú£¬ÕâЩpc¶¼°²×°ÁËubuntu×ÀÃæÏµÍ³£¬³ýÁË×îÓұߵÄpc£¬ÆäÓàµÄpc¶¼×°ÁË3ÕÅÍø¿¨£¨ÆäÖÐÒ»Õű¸Óã©¡£
ÓÉÓÚDebianϵµÄÍø¿¨ÅäÖøúRedhatϵºÜ²»Ò»Ñù£¬RedhatÊÇ·ÅÔÚ/etc/sysconfig/network-scriptsĿ¼ÏÂÃæµÄÒ»´ó¶ÑÎļþÀïÃæ¡£¶øDebianϵµÄÍø¿¨ÅäÖÃÔòÊÇ´æÔÚ/etc/network/interfacesÕâ¸öÎļþÀïÃæ£¬¶øÇÒ²»¹ÜÄãÓжàÉÙ¿éÍø¿¨£¬ÏµÍ³¶¼°ÑÅäÖÃͳͳ·ÅÔÚÕâ¸öÎļþÀï¡£ÏÂÃæ¾ÍÀ´¿´Ò»ÏÂÕâ¸öÎļþµÄÄÚÈÝ¡£
Ê×ÏÈ£¬ÎÒÃÇÀ´¿´router1µÄÅäÖãº
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto eth0
iface eth0 inet static
      address 192.168.2.1
      network 192.168.2.0
      netmask 255.255.255.0
      broadcast 192.168.2.255
      up route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.2.2
      down route del -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.2.2
      up route add -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.2.2
      down route del -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.2.2
iface eth0 inet6 static
      address 2000:2::1
      netmask 64
      up route -A inet6 add 2000:3::/64 gw 2000:2::2
      up route -A inet6 add 2000:4::/64 gw 2000:2::2
      down route -A inet6 del 2000:3::/64 gw 2000:2::2
      down route -A inet6 del 2000:4::/64 gw 2000:2::2
auto eth1
iface eth1 inet dhcp
ÉÏÃæµÄÅäÖÃÖУ¬
auto˵Ã÷lo½Ó¿Ú¸úeth0½Ó¿Ú»áÔÚϵͳÆô¶¯Ê±±»×Ô¶¯ÅäÖã»loΪһ¸ö±¾µØ»Ø»·£¨loopback£©µØÖ·£¬ÕâÀï·Ö±ðÉèÖÃÁËv4ºÍv6Á½¸öloopback£»static˵Ã÷ÕâÊÇÒ»¸ö¾²Ì¬µÄIPÅäÖ㻺óÃæÅäÖõÄ×÷ÓÃÔÚÓÚÔÚ½Ó¿ÚÆôÓõÄʱºò£¬Ìí¼ÓÁ½Ìõ¾²Ì¬Â·ÓÉ£¬


Ïà¹ØÎĵµ£º

linux 0.11 ÄÚºËѧϰ head.s


#
# Õâ¶Î´úÂë±»Á¬½Óµ½systemÄ£¿éµÄ×îÇ°Ãæ£¬ÕâÒ²ÊÇËüΪʲô³ÆÖ®Îªhead.sµÄÔ­Òò¡£
# ´ÓÕâÀ↑ʼÄÚºËÍêÈ«ÔËÐÐÔÚ±£»¤Ä£Ê½Ï¡£head.s²ÉÓõÄÊÇat&t¸ñʽµÄ
# »ã±à¡£×¢ÒâµÄÊÇ´úÂëÖеĸ³Öµ·½ÏòÊÇ´Ó×óµ½ÓÒ¡£

# Õâ¶Î³ÌÐòʵ¼ÊÉÏÊdzöÓÚÄÚ´æµÄ¾ø¶ÔµØÖ·0¿ªÊ¼´¦¡£Ê×ÏÈÊǼÓÔØ¸÷¸öÊý¾Ý¶Î¼Ä´æÆ÷¡£
# ÖØÐÂÉèÖÃÈ«¾ÖÃèÊö·û±íg ......

linux 0.11 ÄÚºËѧϰ inode.c


/*
 *  linux/fs/inode.c
 *
 *  (C) 1991  Linus Torvalds
 */
#include <string.h>
#include <sys/stat.h> // Îļþ״̬ͷÎļþ
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <asm/system.h> ......

ÔöÇ¿Linux/Unix·þÎñÆ÷ϵͳ°²È«ÐÔ½éÉÜ


¡¡ÖÚËùÖÜÖª£¬ÍøÂ簲ȫÊÇÒ»¸ö·Ç³£ÖØÒªµÄ¿ÎÌ⣬¶ø·þÎñÆ÷ÊÇÍøÂ簲ȫÖÐ×î¹Ø¼üµÄ»·½Ú¡£Linux±»ÈÏΪÊÇÒ»¸ö±È½Ï°²È«µÄInternet·þÎñÆ÷£¬×÷ΪһÖÖ¿ª·ÅÔ´´úÂë²Ù×÷ϵͳ£¬Ò»µ©LinuxϵͳÖз¢ÏÖÓа²È«Â©¶´£¬InternetÉÏÀ´×ÔÊÀ½ç¸÷µØµÄÖ¾Ô¸Õß»áÓ»Ô¾ÐÞ²¹Ëü¡£È»¶ø£¬ÏµÍ³¹ÜÀíÔ±ÍùÍù²»Äܼ°Ê±µØµÃµ½ÐÅÏ¢²¢½øÐиüÕý£¬Õâ¾Í¸øºÚ¿ÍÒԿɳËÖ®»ú¡£È»¶ø ......

linux ssh ÎÞÃÜÂëµÇ½

ʹÓÃÒ»ÖÖ±»³ÆÎª"¹«Ë½Ô¿"ÈÏÖ¤µÄ·½Ê½À´½øÐÐsshµÇ¼. "¹«Ë½Ô¿"ÈÏÖ¤·½Ê½¼òµ¥µÄ½âÊÍ:Ê×ÏÈÔÚ¿Í»§¶ËÉÏ´´½¨Ò»¶Ô¹«Ë½Ô¿ £¨¹«Ô¿Îļþ£º~/.ssh/id_rsa.pub£» ˽ԿÎļþ£º~/.ssh/id_rsa£©
È»ºó°Ñ¹«Ô¿·Åµ½·þÎñÆ÷ÉÏ£¨~/.ssh/authorized_keys£©, ×Ô¼º±£ÁôºÃ˽Կ.ÔÚʹÓÃsshµÇ¼ʱ,ssh³ÌÐò»á·¢ËÍ˽ԿȥºÍ·þÎñÆ÷ÉϵĹ«Ô¿×öÆ¥Åä.Èç¹ûÆ¥Åä³É¹¦¾Í¿ ......

ǶÈëʽlinux»ù´¡ÖªÊ¶´ó¸Ù

ǶÈëʽlinux»ù´¡ÖªÊ¶´ó¸Ù
      ÆäʵÕâ¶Îʱ¼ä·Ç³£µÄ棬æµ½Á¬×ö·¹³ÔµÄʱ¼ä¶¼Ã»ÓÐÁË¡£µ«ÊǽñÌìÎÒÌØÒâ³é¿Õ£¬À´¸ø¹Ø×¢ÎÒµÄÅóÓÑÃÇÒ»µãµã½»´ú¡££¨ÒòΪ½ñÌì·¢ÏÖ¹Ø×¢µÄÈË»¹Âù¶àµÄ£¬ÓеãÊܳèÈô¾ª°¡£¡¹þ¹þ....£©ÈçÌâÎÒÔÝʱֻÄܸø´ó¼ÒһЩ´ó¸Ù£¬ºÜÏêϸµÄѧϰ¹ý³ÌÒªµÈ´ó¸Å°ë¸öÔµÄʱ¼ä£¬ÎÒÓÐÁË¿ÕÏÐʱ¼ä²ÅÄÜ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ