ÈçºÎÒþ²ØarpµØÖ·£¿
ÈçºÎµ±±ðÈËARPÎҵĵØÖ·Ê±ºò£¬²»ÀíËü£¿²»¸æËßËüÎҵĵØÖ·ÐÅÏ¢£¿ ÏëͨÁË£¬²»ÐУ¬:D £¬¾ÍÉϲ»ÁËÍøÂçÁË ÎÒ¾õµÃ¿ÉÒÔÓÐÑ¡ÔñµÄ»Ø¸´£¬±ÈÈçÊÇÎÒµÄDHCP£¬ÎҾͻشð£¬ÊÇÒ»¸öÍø¶ÎµÄÆäËû¶«Î÷¾Í²»´îÀíËü£¬ÕâÑùÊDz»ÊǾͿÉÒÔ±ÜÃâarpÐá̽ÁË£¿blackspace£¬ÓÐÐËȤ¼ÌÐøÃ´£¿ 2¸ö½á¹ûÏ×ÉÏ£º
ÓÐʱºî¸ü¸ÄMACÊǸüºÃµÄÑ¡Ôñ£¬
¿ÉÒÔ½ûÖ¹arp£¬(Õâ¸ö²»Èç¼ô¶ÏÒ»¸ùÍøÏß)
ÕâÁ½¸ö¶¼¿ÉÒÔÓÃifconfigÀ´¸ã¡£
ÓÐÑ¡ÔñµÄ»Ø¸´£¬¼ÌÐøÑо¿£¡ ¹Ø¼üiptablesºÃÏó²»¹ÜarpµÄÊÂÇé¡£
-p, --protocol [!] protocol
The protocol of the rule or of the packet to check. The speci-
fied protocol can be one of tcp, udp, icmp, or all, or it can be
a numeric value, representing one of these protocols or a dif-
ferent one. A protocol name from /etc/protocols is also
allowed. A "!" argument before the protocol inverts the test.
The number zero is equivalent to all. Protocol all will match
with all protocols and is taken as default when this option is
omitted. apple linux # iptables -A INPUT -p arp -j LOG
iptables v1.2.9: unknown protocol `arp' specified
Try `iptables -h' or 'iptables --help' for more information. ¿´À´ÄãÐèÒª¶ÔÍøÂçÐÒéÉîÈëÁ˽âÒ»ÏÂϹþ£¬
arpºÍ tcp/ip ²»ÊÇÒ»¸ö²ãµÄ£¬arp±Ètcp¸üµ×²ã¡£
ËùÒÔ£¬iptables²»¹Ü£¬
Èç¹ûÊÇudp £¬Ëû¾Í¹Ü£¬ÒòΪÊÇÒ»¸ö²ãµÄ¡£
ÎÒ˵µÄÊÇ£¬×Ô¼º±àÒ»¸ö³ÌÐò£¬²»ÖªµÀ flag ´ó´óÄܲ»ÄܸãÒ»¸ö£¿£¿ <img src=http://imagine.51.net/down/files/2004224_arp> [COLOR=darkblue]
Why does arptables have 2 chains on a 2.4 kernel and 3 chains on a 2.6 kernel?
[/COLOR]
The 2.4 kernel doesn't have the arptables FORWARD chain as 2.4 kernels can't filter bridged ARP traffic.
[COLOR=darkblue]
When is the bridged ARP traffic seen by arptables?
[/COLOR]
The artables FORWARD chain sees all ARP packets that are being bridged, it sees no other traffic.
[COLOR=darkblue]
What about ARP packets that arrive through a bridge port and are delivered to the bridge's local ARP stack?
[/COLOR]
They are seen in the arptables INPUT chain and have as input device the logical bridge device, unless you broute them using ebtables. Brouted packets will have the physical bridge port as input device.
[COLOR=darkblue]
What about locally generated ARP packets that leave the bridge through a logical bridge device?
[/COLOR]
They are seen in the arptables OUTPUT chain and have as output device the logical bridge device. apple net # cat /proc/net/arp_tables_names
filter
¾ÍÊÇÕÒ²»µ½arptables¹¤¾ß¡£ lost33ÀÏ´ó:
¿´Ñù×Ó£¬ÈÎÎñÍê³ÉÁË¡£
apple sbin # ./arptables -L
Chain INPUT (policy ACCEPT)
Chain OUTPUT (policy ACCEPT)
Chain FORWARD (policy ACCEPT) ³ý·Çͬ¹ý½»»»»ú£¬ÔÚÉϳɸôÀ룬·ñÔòÄÑ×÷ [color=blue]
¡¡¡¡arptablesÕâ¸ö¹¤¾ßÄÄÀïÓУ¿
[/color] google
Çó¾È!!
¸÷·´óÏÀ,ÎÒÏëÇó¾È!!ÔÚÎÒÆô¶¯LINUXʱ,³öÏÖÁËÒ»¶Ô»°¿ò:I could not start the X server(your graphical environment)due to some internal error. ÔÚswitch ÉÏ»® vlan Ò²¿ÉÒÔ°É! arp µÄÒþ²Ø»òÕßÊÇÆÛÆÔÚ linux cluster ÖÐÊÇÒ»¸ö¹Ø¼üµÄ¼¼Êõ£¬ÔÚlinux µÄ¸÷¸ö°æ±¾µÄÄںˣ¨2.0.*-2.6.*£©Öж¼Óд˹¦ÄܵÄʵÏÖ,
[url]http://www.linuxvirtualserver.org/docs/arp.html[/url]
Ò³:
[1]