扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
假设RouterA连接到130.108.0.0和10.0.0.0这两个直连网段上.
RouterA#config terminal (在"#"提示符下)
RouterA(config)#router igrp 15 (进入配置模式)
RouterA(config-router)#network 130.108.0.0 (进入路由配置子模式)
RouterA(config-router)#network 10.0.0.0
IGRP and EIGRP Redistribution Example
在AS 200和AS 100两个自治系统内,分别跑EIGRP和IGRP协议,要想互相通信:
Configuration for RouterA
router eigrp 200
network 201.222.5.0
redistribute igrp 100
default-mertic 56 2000 255 1 1500
router igrp 100
network 131.108.0.0
redistribute eigrp 200
default-metric 56 2000 255 1 1500
RIP and EIGRP Redistribution Example
Configuration for RouterA
router rip
network 201.222.5.0
redistribute eigrp 100
default-mertic 3
router eigrp 100
network 131.108.0.0
redistribute rip
default-metric 56 2000 255 1 1500
Static Routing Redistribution Configure Example
Configuration for RouterA
ip route 131.108.1.0 255.255.255.0 131.108.2.1
router eigrp 1
network 192.31.7.0
default-metric 10000 100 255 1 1500
redistribute static
distribute-list 3 out static
access-list 3 permit 131.108.0.0 0.0.255.255
Route Filtering Example
在路由器B上,过滤掉由10.0.0.0发送过来的路由信息,那么在201.222.5.0这个网段上是不能与10.0.0.0这个网通信的.换句话说,在201.222.5.0一端隐藏了10.0.0.0这个网.
Configuration for Router
router eigrp 1
network 131.108.0.0
network 201.222.5.0
distribute-list 7 out s0
access-list 7 permit 131.108.0.0 0.0.255.255
access-list 7 deny 10.0.0.0 0.255.255.255
Redistribution Filtering
效果同上,但是在两个不同的路由协议下的.
Configuration for Router
router rip
network 201.222.5.0
redistribute eigrp 100
default-mertic 3
router eigrp 100
network 131.108.0.0
redistribute rip
default-metric 56 2000 255 1 1500
distribute-list 7 out rip
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。