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

linux network commands

1,ifconfigÃüÁî
ifconfig¿ÉÉèÖÃÍøÂçÉ豸µÄ״̬£¬»òÊÇÏÔʾĿǰµÄÉèÖá£
#ifconfig [ÍøÂçÉ豸] [down|up|-allmulti|-arp|-promisc] [add<µØÖ·>] [del<µØÖ·>] [<ÍøÂçÉ豸ÀàÐÍ> <Ó²¼þµØÖ·>] [io_addr] [irq ] [media<ÍøÂçý½éÀàÐÍ>] [mem_start<ÄÚ´æµØÖ·>]
[metric<ÊýÄ¿>] [mtu<×Ö½Ú>] [netmask<×ÓÍøÑÚÂë>] [tunnel<µØÖ·>] [-broadcast<µØÖ·>] [- pointopoint<µØÖ·>] [IPµØÖ·]
add<µØÖ·> ÉèÖÃÍøÂçÉ豸IPv6µÄIPµØÖ·¡£
del<µØÖ·> ɾ³ýÍøÂçÉ豸IPv6µÄIPµØÖ·¡£
down ¹Ø±ÕÖ¸¶¨µÄÍøÂçÉ豸¡£
<ÍøÂçÉ豸ÀàÐÍ><Ó²¼þµØÖ·> ÉèÖÃÍøÂçÉ豸µÄÀàÐÍÓëÓ²¼þµØÖ·
#ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX(¸ü¸Äeth0µÄmacµØÖ·)
io_addr ÉèÖÃÍøÂçÉ豸µÄI/OµØÖ·¡£
irq ÉèÖÃÍøÂçÉ豸µÄIRQ¡£
media<ÍøÂçý½éÀàÐÍ> ÉèÖÃÍøÂçÉ豸µÄý½éÀàÐÍ¡£
mem_start<ÄÚ´æµØÖ·> ÉèÖÃÍøÂçÉ豸ÔÚÖ÷ÄÚ´æËùÕ¼ÓÃµÄÆðʼµØÖ·¡£
metric<ÊýÄ¿> Ö¸¶¨ÔÚ¼ÆËãÊý¾Ý°üµÄתËÍ´ÎÊýʱ£¬ËùÒª¼ÓÉϵÄÊýÄ¿¡£
mtu<×Ö½Ú> ÉèÖÃÍøÂçÉ豸µÄMTU¡£
netmask<×ÓÍøÑÚÂë> ÉèÖÃÍøÂçÉ豸µÄ×ÓÍøÑÚÂë¡£
tunnel<µØÖ·> ½¨Á¢IPv4ÓëIPv6Ö®¼äµÄËíµÀͨÐŵØÖ·¡£
up Æô¶¯Ö¸¶¨µÄÍøÂçÉ豸¡£
-broadcast<µØÖ·> ½«ÒªËÍÍùÖ¸¶¨µØÖ·µÄÊý¾Ý°üµ±³É¹ã²¥Êý¾Ý°üÀ´´¦Àí¡£
-pointopoint<µØÖ·> ÓëÖ¸¶¨µØÖ·µÄÍøÂçÉ豸½¨Á¢Ö±½ÓÁ¬Ïߣ¬´Ëģʽ¾ßÓб£Ãܹ¦ÄÜ¡£
-promisc ¹Ø±Õ»òÆô¶¯Ö¸¶¨ÍøÂçÉ豸µÄ»ìÔÓ(promiscuous)ģʽ¡£
[IPµØÖ·] Ö¸¶¨ÍøÂçÉ豸µÄIPµØÖ·¡£
[ÍøÂçÉ豸] Ö¸¶¨ÍøÂçÉ豸µÄÃû³Æ¡£
ʹÓÃifconfigºÍrouteÃüÁî¸ü¸ÄIPÉèÖÃ:
#ifconfig eth0 down (¹Ø±Õeth0)
#ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX(ÁÙʱ¸ü¸Äeth0µÄmacµØÖ·£¬¼´Ê±ÉúЧ)
#ifconfig eth0 192.168.161.9 netmask 255.255.252.0 up (ÁÙʱÉèÖÃIPµØÖ·£¬×ÓÍøÑÚÂ룬¼´Ê±ÉúЧ)
#route add default gw 192.168.162.1 (ÁÙʱÉèÖÃÍø¹Ø£¬¼´Ê±ÉúЧ)
#vi /etc/sysconfig/network-scripts/ifcfg-eth0 (±à¼­ÅäÖÃÎļþ£¬ÓÀ¾Ã¸ü¸ÄIPÉèÖã¬ÖØÆôÉúЧ)
#vi /etc/resolv.conf £¨±à¼­ÅäÖÃÎļþ£¬ÉèÖÃDNS£©
#ifconfig eth0 promisc (½«eth0ÉèÖÃΪ»ìÔÓģʽ)
#ifconfig eth0 -promisc (È¡Ïû»ìÔÓģʽ)
#ifconfig eth0 arp (´ò¿ªeth0µÄarp½âÎö)
#ifconfig eth0 -arp (¹Ø±Õarp½âÎö)
#ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0


Ïà¹ØÎĵµ£º

Gentoo Linux ALSAÖ¸ÄÏ

Gentoo Linux ALSAÖ¸ÄÏ
1. 

¼ò½é
ʲôÊÇALSA?
ALSAÊÇAdvanced Linux Sound Architecture£¬¸ß¼¶LinuxÉùÒô¼Ü¹¹
µÄ¼ò³Æ,ËüÔÚLinux²Ù×÷ϵͳÉÏÌṩÁËÒôƵºÍMIDI£¨Musical Instrument Digital Interface
£¬ÒôÀÖÉ豸Êý×Ö»¯½Ó¿Ú£©µÄÖ§³Ö¡£ÔÚ2.6ϵÁÐÄÚºËÖУ¬ALSAÒѾ­³ÉΪĬÈϵÄÉùÒô×Óϵͳ£¬ÓÃÀ´Ìæ»»2.4ϵÁÐ ......

ARM Linux Boot Sequence

contact me go -> xuqiang.docs@hotmail.com
ARM Linux Boot Sequence
The following traces the Linux boot sequence for ARM-based systems in the 2.6.18 kernel. It looks at just the earliest stages of the boot process, until the generic non-processor-specific start_kernel function is called. The line ......

Linux³£ÓùÒÔØµãºÍĿ¼

/bin                      ´æ·Å×î³£ÓõÄÃüÁî,ËùÓÐÓû§¶¼ÓÐÖ´ÐÐȨÏÞ
/boot                    ϵͳÒýµ¼Ä¿ ......

Linux NFS ½éÉÜ

ÒÔÏÂÊǾ­¹ý´ÓÍøÉϻ㼯¶ø³É£¬ÏÂÃæµÄÁ¬½ÓµÄ½éÉÜÒ²ÊDZȽÏÏêϸ£º
http://linux.chinaunix.net/techdoc/net/2008/07/26/1020404.shtml
linux NFS ÅäÖò½Öè
 
 
linux NFS ÅäÖò½Öè
 
NFS server¿ÉÒÔ¿´×÷ÊÇÒ»¸öFILE SERVER,Ëü¿ÉÒÔÈÃÄãµÄPCͨ¹ýÍøÂ罫Զ¶ËµÃNFS SERVER¹²Ïí³öÀ´µÄµµ°¸MOUNTµ½×Ô¼ºµÄϵͳÖУ¬Ô ......

linux makefile±àд

Ò»¡¢MakefileµÄ¹æÔò
ÔÚ½²ÊöÕâ¸öMakefile֮ǰ£¬»¹ÊÇÈÃÎÒÃÇÏÈÀ´´ÖÂԵؿ´Ò»¿´MakefileµÄ¹æÔò¡£
target ... : prerequisites ...
command
...
...
targetÒ²¾ÍÊÇÒ»¸öÄ¿±êÎļþ£¬¿ÉÒÔÊÇObject File£¬Ò²¿ÉÒÔÊÇÖ´ÐÐÎļþ¡£
prerequisites¾ÍÊÇ£¬ÒªÉú³ÉÄǸötargetËùÐèÒªµÄÎļþ»òÊÇÄ¿±ê¡£
commandÒ²¾ÍÊÇmakeÐèÒªÖ´ÐеÄÃüÁî¡££¨ÈÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ