34、重分布配置实验之分发列表distribute-list

简介:

1、分发列表distribute-list解析

wKioL1ZhL_rAlZEhAAH9FgHVC5s708.png

wKioL1ZhL__DUDF0AAIMXal1KiI405.png


2、实验拓扑

wKioL1ZhMEfRZOOAAABKhJ9TWLA136.png

3、实验配置

R1配置

interface Serial0/0

 ip address 12.1.1.1 255.255.255.0

interface Serial0/1

 ip address 13.1.1.1 255.255.255.0

interface Serial0/2

 ip address 14.1.1.1 255.255.255.0

router eigrp 90

 redistribute ospf 110 metric 1500 100 255 1 1500

 network 14.1.1.0 0.0.0.255

 no auto-summary

router ospf 110

 router-id 1.1.1.1

 log-adjacency-changes

 redistribute rip subnets

 network 13.1.1.0 0.0.0.255 area 0

router rip

 version 2

 network 12.0.0.0

 no auto-summary


R2配置

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

interface Serial0/0

 ip address 12.1.1.2 255.255.255.0

router rip

 version 2

 network 2.0.0.0

 network 12.0.0.0

 no auto-summary


R3配置

interface Loopback0

 ip address 3.3.3.3 255.255.255.0

interface Serial0/0

 ip address 13.1.1.3 255.255.255.0

router ospf 110

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.0 0.0.0.255 area 0

 network 13.1.1.0 0.0.0.255 area 0


R4配置

interface Loopback0

 ip address 4.4.4.4 255.255.255.0

interface Serial0/0

 ip address 14.1.1.4 255.255.255.0

router eigrp 90

 network 4.4.4.0 0.0.0.255

 network 14.1.1.0 0.0.0.255

 no auto-summary


4、分发列表应用

wKioL1ZhMRywaE-wAABFm7Ku_0s541.png此时我们可以看到R4可以学到3.3.3.3/32和13.1.1.0/24这两条路由,这里我们希望通过分发列表让R4只学到13.1.1.0/24这条路由。

R1配置

access-list 3 permit 3.3.3.3

router eigrp 90

 distribute-list 3 out ospf 110

wKiom1ZhMhDxhbjbAAA-9QeGMLc522.png此时R4只学到13.1.1.0/24这条路由。






      本文转自开源殿堂 51CTO博客,原文链接:http://blog.51cto.com/kaiyuandiantang/1719545,如需转载请自行联系原作者



相关文章
|
7天前
使用Vant框架的组件van-pull-refresh搭配van-list和van-card完成上滑加载更多列表数据,下拉刷新当前列表数据(等同于翻页功能)
使用Vant框架的组件van-pull-refresh搭配van-list和van-card完成上滑加载更多列表数据,下拉刷新当前列表数据(等同于翻页功能)
|
1月前
|
存储 安全 Java
Python教程第3章 | 集合(List列表、Tuple元组、Dict字典、Set)
Python 列表、无序列表、字典、元组增删改查基本用法和注意事项
50 1
|
1月前
|
存储 数据可视化 索引
Python中List列表的妙用
Python中List列表的妙用
16 0
|
1月前
|
存储 索引 Python
Python中的基础数据结构:列表(List)详解
本文将深入探讨Python中的基础数据结构——列表(List),包括其创建、访问、修改、常用操作以及背后的原理。通过示例代码,帮助读者更好地理解和应用列表。
22 0
|
1月前
|
存储 Python
Python中的列表(list)和元组(tuple)区别
Python中的列表(list)和元组(tuple)区别
22 0
|
1月前
|
存储 Python
python列表推导式(List Comprehension)
python列表推导式(List Comprehension)
21 0
|
2月前
|
Python
Python列表推导式——List
Python列表推导式——List
29 0
|
3月前
|
数据可视化 索引 Python
Python容器专题 - 列表(list)
Python容器专题 - 列表(list)
37 0
|
3月前
|
存储 索引 Python
python中的list列表
python中的list列表
27 1
|
3月前
|
存储 索引 Python
Python中,无序列表(Unordered List)
Python中,无序列表(Unordered List)
52 1