سلام دوستان
فرق بین فزمان ip route 0.0.0.0 0.0.0.0 10.0.0.1
با فرمان ip default-network در چیه؟؟؟
مگه هردوشون مسیر پیش فرض رو مشخص نمیکنن؟؟؟؟؟
Printable View
سلام دوستان
فرق بین فزمان ip route 0.0.0.0 0.0.0.0 10.0.0.1
با فرمان ip default-network در چیه؟؟؟
مگه هردوشون مسیر پیش فرض رو مشخص نمیکنن؟؟؟؟؟
کامند ip route 0.0.0.0 0.0.0.0 10.0.0.1 مسیریه که شما مشخص کردی ولی کامند ip default-network تنظیمات پیشفرض روتره شاید جفتش به یک شیوه مسیر یابی کنه ولی در حالتی که شما خودت مسیر رو مشخص میکنی در اصل داری Routing Table رو modify میکنی و از حالت پیش فرض خارجش میکنی !!!!
بازم بزار بقیه بیان نظر بدن تا به یک جمع بندی برسی !!
احتمالا این سوال به مقداری مطالعات آکادمیک سیسکو نیاز داره،
سه نوع دستور داریم:
ip default-gateway
ip default-network
ip route 0.0.0.0 0.0.0.0
که:
The ip default-gateway command differs from the other two commands. It should only be used when ip routing is disabled on the Cisco router.
و
Unlike the ip default-gateway command, you can use ip default-network when ip routing is enabled on the Cisco router. When you configure ip default-network the router considers routes to that network for installation as the gateway of last resort on the router.
و
Creating a static route to network 0.0.0.0 0.0.0.0 is another way to set the gateway of last resort on a router. As with the ip default-network command, using the static route to 0.0.0.0 is not dependent on any routing protocols. However, ip routing must be enabled on the router.
تفاوت این دستورات را نشان میدهد.
[URL="http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094374.shtml"]منبع[/URL]
ip route وابسته به هیچ routing protocol ای نیست مثلا اگر شما OSPF یا EIGRP و routing protocol های دیگری را بر روتر تنظیم کرده باشید نمی توانید مثلا ip route 0.0.0.0 10.0.0.1 را به روترهای دیگر ارسال نمایید و باید از 10.0.0.1 ip default-network استفاده کنید