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

4.1. Introduction to Linux Routing


4.1. Introduction to Linux Routing
The design of IP routing allows for very simple route definitions for small networks, while not hindering the flexibility of routing in complex environments. A key concept in IP routing is the ability to define what addresses are locally reachable as opposed to not directly known destinations. Every IP capable host knows about at least three classes of destination: itself, locally connected computers and everywhere else.
Most fully-featured IP-aware networked operating systems (all unix-like operating systems with IP stacks, modern Macintoshes, and modern Windows) include support for the loopback device and IP. This is an IP and range configured on the host machine itself which allows the machine to talk to itself. Linux systems can communicate over IP on any locally configured IP address, whether on the loopback device or not. This is the first class of destinations: locally hosted addresses.
The second class of IP addresses are addresses in the locally connected network segment. Each machine with a connection to an IP network can reach a subset of the entire IP address space on its directly connected network interface.
All other hosts or destination IPs fall into a third range. Any IP which is not on the machine itself or locally reachable (i.e. connected to the same media segment) is only reachable through an IP routing device. This routing device must have an IP address in a locally reachable IP address range.
All IP networking is a permutation of these three fundamental concepts of reachability. This list summarizes the three possible classifications for reachability of destination IP addresses from any single source machine.
The IP address is reachable on the machine itself. Under linux this is considered scope host and is used for IPs bound to any network device including loopback devices, and the network range for the loopback device. Addresses of this nature are called local IPs or locally hosted IPs.
T


Ïà¹ØÎĵµ£º

ʵս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 ϲ鿴һ¸ö½ø³ÌÔËÐз¾¶µÄ·½·¨

ÔÚlinuxϲ鿴½ø³Ì´ó¼Ò¶¼»áÏëµ½Óà ps -ef|grep XXX
¿ÉÊÇ¿´µ½µÄ²»ÊÇȫ·¾¶£¬Ôõô¿´È«Â·¾¶ÄØ£¿
ÿ¸ö½ø³ÌÆô¶¯Ö®ºóÔÚ /procÏÂÃæÓÐÒ»¸öÓÚpid¶ÔÓ¦µÄ·¾¶
ÀýÈ磺ps -ef|grep python
ÏÔʾ£ºoracle    4431  4366  0 18:56 pts/2    00:00:00 python Server.py
4431¾ÍÊǽø³ÌºÅ
µ½/pro ......

LinuxÓëWindowsϵͳµÄ²îÒì


1)  ÎļþÃüÃûµÄ¹æÔò²»Í¬
WindowsϵͳÏÂÎļþÃû²»Çø·Ö´óСд£¬ÎļþÃûÖв»ÄÜ°üº¬[/£¬\£¬<£¬>£¬|£¬”£¬:£¬*£¬?]µÈ×Ö·û¡£UnixϵͳÏÂÎļþÃûÇø·Ö´óСд£¬ÎļþÃûÖпÉÒÔʹÓÃתÒå·û[\]À´´¦ÀíÌØÊâ×Ö·û[\£¬<£¬>£¬|£¬”£¬:£¬*£¬?]£¬Î¨Ò»²»ÔÊÐíµÄÊDZíʾ·¾¶µÄ×Ö·û[/]¡£
2)  Îı¾ÎļþµÄ»»ÐÐ ......

²é¿´ºÍÆô¶¯linuxµÄ·þÎñ£¬È磺nfs

Æô¶¯94,95µÄnfs·þÎñ
·½·¨Ò»:µ½/etc/init.d/ÖÐÔËÐÐ ./nfs start
       µ½/etc/rc.d/rc3.d²ì¿´¿ØÖÆ̨·þÎñ(K×Öĸ¿ªÍ·µÄ»°ÎªÎ´Æô¶¯,SΪÆô¶¯,Ö±½Ó¸ÄÃû×ÖÒ²¿ÉÒÔ½«·þÎñÆô¶¯)
·½·¨¶þ:´òÃüÁîsetup,½«System serviceÖеÄnfs´ò¹´,È»ºóÍ˳ö ......

Linuxϵͳ¸÷°æ±¾±¾µØrootÃÜÂëÆƽⷽ·¨ÕûÀí


¡¡¡¡Õâ¶Îʱ¼äÀÏÅöµ½ÓÐÈËÎʼ°¸÷¸öLinux°æ±¾µÄ±¾µØrootÃÜÂëÆƽⷽ·¨£¬ÎÒÕâÀï×Ô¼ºÒÔ¼°ÔÚÍøÂçÉÏËѼ¯ÁËЩ×ÊÁÏ£¬Ï£Íû¶Ô¿´µ½ÁËÕâÎÄÕ¶øÓÖÇ¡ºÃÓõõ½µÄ¼¼ÊõÈËÔ±Óеã°ïÖú£º
(Ò»)RedHat/CentOS/Fedora ϵͳÃÜÂëÆƽâ
¡¡¡¡1.ÔÚgrubÑ¡Ïî²Ëµ¥°´E½øÈë±à¼­Ä£Ê½
¡¡¡¡2.±à¼­kernel ÄÇÐÐ×îºó¼ÓÉÏ¿Õ¸ñS (»òÕß¿Õ¸ñSingle)
¡¡¡¡3.°´B£¬Æô¶¯µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ