to redistribute or not to redistribute…

Posted: April 30, 2009 in technical
Tags: , ,

Am un routerash 7200 (R5) cu OSPF pe el, in aria 1 si un alt routerash(R4) pe post de ABR. Routerashul initial publica spre ABR 5 retele: 192.168.16.0/24, 192.168.17.0/24, 192.168.18.0/24 (direct conectate), 200.1.5.0/24 (lo 0) si 192.168.3.0/24 (ethernet-ul catre R4).

 

Eu vreau sa nu public 192.168.18.0/24 si am facut un route-map pe R5, asa:

router ospf 10

 log-adjacency-changes

 summary-address 192.168.16.0 255.255.254.0

 redistribute connected metric 7 metric-type 1 route-map redistibuire

 network 192.168.3.0 0.0.0.255 area 2

 network 200.1.5.0 0.0.0.255 area 2

!

ip classless

no ip http server

!

!

access-list 10 permit 192.168.16.0 0.0.1.255

!

route-map redistibuire permit 10

 match ip address 10

!

Din pacate, pe ABR nu mai am deloc routele la 192.168.x.y, desi pana sa pun route-map-ul le aveam:

R4#sh ip route

Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP

       D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

       N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

       E1 – OSPF external type 1, E2 – OSPF external type 2

       i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2

       ia – IS-IS inter area, * – candidate default, U – per-user static route

       o – ODR, P – periodic downloaded static route


Gateway of last resort is 192.168.2.2 to network 0.0.0.0


C    200.1.4.0/24 is directly connected, Loopback0

     200.1.5.0/32 is subnetted, 1 subnets

O       200.1.5.1 [110/2] via 192.168.3.5, 00:02:22, FastEthernet2/0

O    200.1.2.0/24 [110/65] via 192.168.2.2, 00:00:07, Serial1/0

O    200.1.3.0/24 [110/65] via 192.168.2.3, 00:00:07, Serial1/0

O IA 192.168.1.0/24 [110/128] via 192.168.2.2, 00:00:07, Serial1/0

C    192.168.2.0/24 is directly connected, Serial1/0

C    192.168.3.0/24 is directly connected, FastEthernet2/0

O*E2 0.0.0.0/0 [110/5] via 192.168.2.2, 00:00:07, Serial1/0

O IA 200.1.0.0/23 [110/129] via 192.168.2.2, 00:00:07, Serial1/0

IOS ™ 7200 Software (C7200-IS-M), Version 12.3(10d), RELEASE SOFTWARE (fc2)

Advertisements
Comments
  1. sin says:

    pai tu faci match pe un /23, nu pe un /24. vezi icisa cum arata wildcard masks pentru toate subneturile: http://www.imacandi.net/sin/wiki/IPv4_subnet_and_wildacard_bit_masks

    de asemenea, pune si un route-map foo permi 100, ca by default, din cate stiu eu, route-map face deny 😛

  2. @sin: pai pe /23 vreau sa fac match 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s