R1的S1/0连R2的S1/0,R2的S1/1连R3的S1/1。<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

☆     验证EIGRP通告默认路由的几种方法

R1:

interface loopback0

ip add <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />1.1.1.1 255.0.0.0

interface s1/0

ip add 10.0.0.1 255.0.0.0

router eigrp 10

net 1.0.0.0

net 10.0.0.0

     R2:

         interface s1/0

         ip add 10.0.0.2 255.0.0.0

         interface s1/1

         ip add 20.0.0.2 255.0.0.0

         router eigrp 10

         net 10.0.0.0

     R3:假设是ISPR2是企业网的边缘。

   经过上面的配置后不能达到效果,还需要作进一步的配置。

方法一

R2ip default-network 20.0.0.0

    router eigrp 10

    net 20.0.0.0(此命令不宣告20.0.0.0,而是用于宣告默认路由)

     方法二

     R2ip route 0.0.0.0 0.0.0.0 null 0

         router eigrp 10

         network 0.0.0.0

     方法三

     R2ip route 0.0.0.0 0.0.0.0 null 0

         router eigrp 10

         redistribute static

     方法四

     R2ip route 0.0.0.0 0.0.0.0 null 0

         int s1/0

         ip summary-address rip 0.0.0.0 0.0.0.0

     这五种方法中的任何一种都可以向R1通告一条默认路由