使用分發列表過濾路由及路由匯總、防環

來源:互聯網
上載者:User

拓撲圖

說明:IP及介面配置如上所示,左邊運行OSPF,右邊運行EIGRP

實驗目的:掌握用分發列表來過濾路由

在重分布路由時使用路由匯總來降低路由器的負擔,以及帶來的問題

具體要求:R2過濾掉1.1.1.0的路由,R5在向R4通告的時候過濾掉172.16.55.0的路由。

Ospf向eigrp通告路由時將路由匯總10.0.0.0/8的

Eigrp向Ospf通告路由時將路由匯總成172.16.0.0/16的

環回口路由可以不用匯總

實驗步驟:

1. 配置IP地址以及路由協議

2. 在R3上配置重分布

配置命令:

router eigrp 90

redistribute ospf 110 metric 1544 100 255 1 1500

network 33.33.33.0 0.0.0.255

network 172.16.34.0 0.0.0.255

no auto-summary

!

router ospf 110

router-id 3.3.3.3

log-adjacency-changes

redistribute eigrp 90 subnets tag 8888

network 3.3.3.0 0.0.0.255 area 0

network 10.2.2.0 0.0.0.255 area 0

R1#show ip route

1.0.0.0/24 is subnetted, 1 subnets

C 1.1.1.0 is directly connected, Loopback0

2.0.0.0/24 is subnetted, 1 subnets

O 2.2.2.0 [110/65] via 10.1.1.2, 00:21:34, Serial0/0

33.0.0.0/24 is subnetted, 1 subnets

O E2 33.33.33.0 [110/20] via 10.1.1.2, 00:21:34, Serial0/0

3.0.0.0/32 is subnetted, 1 subnets

O 3.3.3.3 [110/129] via 10.1.1.2, 00:21:34, Serial0/0

4.0.0.0/24 is subnetted, 1 subnets

O E2 4.4.4.0 [110/20] via 10.1.1.2, 00:21:34, Serial0/0

5.0.0.0/24 is subnetted, 1 subnets

O E2 5.5.5.0 [110/20] via 10.1.1.2, 00:21:34, Serial0/0

172.16.0.0/24 is subnetted, 3 subnets

O E2 172.16.55.0 [110/20] via 10.1.1.2, 00:21:37, Serial0/0

O E2 172.16.45.0 [110/20] via 10.1.1.2, 00:21:37, Serial0/0

O E2 172.16.34.0 [110/20] via 10.1.1.2, 00:21:37, Serial0/0

10.0.0.0/24 is subnetted, 2 subnets

O 10.2.2.0 [110/128] via 10.1.1.2, 00:21:37, Serial0/0

C 10.1.1.0 is directly connected, Serial0/0

此時,所有路由器都有所有的路由。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.