Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1424664
  • 博文数量: 269
  • 博客积分: 3602
  • 博客等级: 中校
  • 技术积分: 4536
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:13
文章分类

全部博文(269)

文章存档

2014年(8)

2013年(139)

2012年(122)

分类:

2012-11-21 15:44:44

R1配置

interface Loopback0

address 1.1.1.1 255.255.255.0

interface Serial1/1

ip address 12.1.1.1 255.255.255.0

serial restart-delay 0

router rip

version 2

network 1.0.0.0

network 12.0.0.0

no auto-summary

R2配置(利用标记tag做过滤)

interface Loopback0

ip address 2.2.2.2 255.255.255.0

interface Serial1/0

ip address 12.1.1.2 255.255.255.0

serial restart-delay 0

interface Serial1/1

ip address 23.1.1.1 255.255.255.0

serial restart-delay 0

router ospf 100

log-adjacency-changes

redistribute rip subnets

network 2.2.2.2 0.0.0.0 area 0

network 23.1.1.1 0.0.0.0 area 0

router rip

version 2

redistribute ospf 100 metric 3 route-map ccnp

network 12.0.0.0

no auto-summary

route-map ccnp deny 10

match tag 2

route-map ccnp permit 20

(重发布中过滤掉tag2的路由条目 其他的都保留下来)

R3配置(给路由条目打上标记tag

interface Loopback0

ip address 3.3.3.3 255.255.255.0

interface Serial1/0

ip address 23.1.1.2 255.255.255.0

serial restart-delay 0

interface Serial1/1

ip address 34.1.1.1 255.255.255.0

serial restart-delay 0

router eigrp 100

redistribute ospf 100 metric 1000 100 255 1 1500

network 34.0.0.0

no auto-summary

router ospf 100

log-adjacency-changes

redistribute eigrp 100 subnets route-map ccna

network 3.3.3.3 0.0.0.0 area 0

network 23.1.1.2 0.0.0.0 area 0

access-list 1 permit 5.5.5.0

access-list 1 permit 7.7.7.0

route-map ccna permit 10

match ip address 1

set tag 1

route-map ccna permit 20

set tag 2

(设置重发布进来控制列表1tag1 其余的为2

R4配置

interface Loopback0

ip address 4.4.4.4 255.255.255.0

interface Loopback1

ip address 5.5.5.5 255.255.255.0

interface Loopback2

ip address 6.6.6.6 255.255.255.0

interface Loopback3

ip address 7.7.7.7 255.255.255.0

interface Loopback4

ip address 8.8.8.8 255.255.255.0

interface Serial1/0

ip address 34.1.1.2 255.255.255.0

serial restart-delay 0

router eigrp 100

network 4.4.4.0 0.0.0.255

network 5.0.0.0

network 6.0.0.0

network 7.0.0.0

network 8.0.0.0

network 34.1.1.0 0.0.0.255

no auto-summary

R1路由表

     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

R       2.2.2.0 [120/3] via 12.1.1.2, 00:00:04, Serial1/1

     3.0.0.0/32 is subnetted, 1 subnets

R       3.3.3.3 [120/3] via 12.1.1.2, 00:00:04, Serial1/1

     5.0.0.0/24 is subnetted, 1 subnets

R       5.5.5.0 [120/3] via 12.1.1.2, 00:00:04, Serial1/1

     23.0.0.0/24 is subnetted, 1 subnets

R       23.1.1.0 [120/3] via 12.1.1.2, 00:00:04, Serial1/1

   7.0.0.0/24 is subnetted, 1 subnets

R       7.7.7.0 [120/3] via 12.1.1.2, 00:00:04, Serial1/1

     12.0.0.0/24 is subnetted, 1 subnets

C       12.1.1.0 is directly connected, Serial1/1

TAG1 包括:5.0.0.0 7.0.0.0

TAG2 包括:4.0.0.0 6.0.0.08.0.0.034.1.1.0

阅读(4293) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~