بالاضافة الى ما قاله استاذ أحمد نفترض ان لدينا روترين متصلين ب fa0/0 و R3 لديه Loopback=3.3.3.3
R1(fa0/0)----------(fa0/0)R3
عند كتابة الامر :
R1(config)#ip route 3.3.3.3 255.255.255.255 192.168.13.2
فبالنسبة لل Layer2 address فان R1 فى هذة الحالة يقوم بوضع mac-address الخاص ب next hop address
اما بالنسبة للأمر :
R1(config)#ip route 3.3.3.3 255.255.255.255 f0/0
فان الروتر يقوم بوضع mac-address الخاص ب destination وليس next hop كما فى الحالة السابقة ، ولذلك فان R3 الذى يملك route فى routing table الخاص به فانه سوف يعطيه mac-address الخاص به اثناء عملية ARP ومن هنا تأتى فائدة proxy-arp المفعلة by default ب R3 interface
كود PHP:
R3(config-if)#do sh ip int fa0/0 | inc Proxy ARP
Proxy ARP is enabled
اما مع static route السابق اذا قمنا بعمل no ip proxy-arp تحت fa0/0 الخاص ب R3 فسوف نلاحظ عدم نجاح ping
encapsulation failed
كود PHP:
R1#debug ip packet det
R1#ping 3.3.3.3 re 1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
*Mar 1 00:19:11.455: IP: tableid=0, s=192.168.13.1 (local), d=3.3.3.3 (FastEthernet0/0), routed via RIB
*Mar 1 00:19:11.455: IP: s=192.168.13.1 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sending
*Mar 1 00:19:11.455: ICMP type=8, code=0
*Mar 1 00:19:11.455: IP: s=192.168.13.1 (local), d=3.3.3.3 (FastEthernet0/0), len 100, encapsulation failed
*Mar 1 00:19:11.455: ICMP type=8, code=0.
Success rate is 0 percent (0/1)
أرجو ان تكون وضحت الفكرة
وبالتوفيق ،،
المفضلات