小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

Eigrp 缺省路由 ip default network - 【墨Ю】的日志 - 網易博客

 tcwl123 2010-12-27

Eigrp 缺省路由 ip default network

EIGRP 2010-05-24 08:59:23 閱讀83 評論0   字號: 訂閱

Eigrp 缺省路由 ip default network - 【墨Ю】 -                    墨

 

R4模擬一個外網網絡,在內網做一個默認路由!

 

配置好各個端口的IP后,通告路由

R1

Router eigrp 100

Net 172.16.0.0

R2

Router eigrp 100

Net 172.16.0.0

R3

Router eigrp 100

Net 172.16.0.0

 

 

 

而后在R3上配置一條通向R4的缺省路由

R3(config)#ip route 0.0.0.0 0.0.0.0 11.1.1.2

這樣在R3就能通向外網了

 

R3#ping 192.168.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

 

但在R1R2是不通的

     路由器R3作為邊境路由器配置了靜態(tài)路由,可以直接訪問外部,但是內部的R1R2路由器由于缺少路由,因此無法訪問外網。

我們在R1R2上配置靜態(tài)路由 

  

     當然并也要在R4上配置一個靜態(tài)路由

R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.2

 

R2(config)#ip route 0.0.0.0 0.0.0.0 172.16.2.2

 

R4(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.1

 

R1#ping 192.168.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/60/112 ms

 

R2#ping 192.168.1.1

Type escape sequence to abort. 

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 16/51/96 ms

這樣R1R2就可以通向外網了 Eigrp 缺省路由 ip default network - 【墨Ю】 -                    墨 

 

   如果內網中路由器很多的話,配置逐個靜態(tài)路由就太過繁瑣

則可以用“ip default network” 命令

R3(config)#router eigrp 100

R3(config-router)#net 11.0.0.0       //在這個AS中通告這個默認出口的網絡

R3(config)#ip default-network 11.0.0.0

 

R1 R2上查看路由表

R1

Gateway of last resort is 172.16.1.2 to network 11.0.0.0

     172.16.0.0/24 is subnetted, 2 subnets

C       172.16.1.0 is directly connected, Serial1/0

D       172.16.2.0 [90/2681856] via 172.16.1.2, 00:56:58, Serial1/0

D*   11.0.0.0/8 [90/2681856] via 172.16.1.2, 00:00:05, Serial1/0

 

R2

Gateway of last resort is 172.16.2.2 to network 11.0.0.0

     172.16.0.0/24 is subnetted, 2 subnets

D       172.16.1.0 [90/2681856] via 172.16.2.2, 00:57:40, Serial1/0

C       172.16.2.0 is directly connected, Serial1/0

D*   11.0.0.0/8 [90/2681856] via 172.16.2.2, 00:01:08, Serial1/0

R1R2的路由表出現(xiàn)了一條11.0.0.0 的默認路由通向R3 

 

ping外部網段就可以ping的通了

ip default network  命令可以向全網絡通告缺省網絡

 

注意在工大瑞工的論壇上 ,使用ip default-network其指出默認網絡,建議采用主類網絡。如果使用無類網絡,則可能會出現(xiàn)無法解釋的問題。

     確實如此

    本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
    轉藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多