[cisco] Re: route-map ????

Camelia Nastase <[email protected]>
Newsgroups gmane.org.user-groups.rlug.general,gmane.org.user-groups.rlug.cisco
Message-ID <[email protected]>
s-ar putea sa zic o tampenie mai mare ca mine, dar cum dorm inca o sa
mi-o iert. pe R1 ai un default-information originate, si dupa cum s-a
discutat, chestia asta in ospf redistribuie default'ul. care default
e din .11. incearca sa-l lasi pe R1 fara default si vezi daca ti se mai
distribuie 11./0 pe R2. m-ai facut curioasa:) 


> 
> se da R1 si R2, care fac ospf intre ele (tot alea vechi :))), iar R2 face
> bgp cu alt ruter ..., R1 este CE, R2 este PE
> 
> intrebarea este: de ce nu se filtreaza si reteaua 11.0????
> 
> R1:
> router ospf 1
>  log-adjacency-changes
>  redistribute rip subnets route-map export_to_local
>  passive-interface FastEthernet0/0
>  network 157.159.0.0 0.0.255.255 area 0
>  default-information originate
> !
> access-list 20 deny   157.159.249.0 0.0.0.255
> access-list 20 deny   157.159.250.0 0.0.0.255
> access-list 20 deny   157.159.11.0 0.0.0.255
> !
> route-map export_to_local permit 10
>  match ip address 20
> !
> 
> bubu#sh ip ro
> Gateway of last resort is 157.159.11.1 to network 0.0.0.0
> 
>      157.159.0.0/16 is variably subnetted, 5 subnets, 2 masks
> C       157.159.11.0/24 is directly connected, FastEthernet0/0
> C       157.159.225.0/24 is directly connected, FastEthernet0/1
> O E2    157.159.230.0/24 [110/1] via 157.159.225.2, 1d16h,
> FastEthernet0/1
> O E2    157.159.224.8/30 [110/1] via 157.159.225.2, 1d16h,
> FastEthernet0/1
> R       157.159.250.0/24 [120/1] via 157.159.11.9, 00:00:15,
> FastEthernet0/0
> S*   0.0.0.0/0 [1/0] via 157.159.11.1
> 
> 
> R2:
> router ospf 1 vrf vpn_int
>  log-adjacency-changes
>  redistribute bgp 1000 subnets
>  network 157.159.0.0 0.0.255.255 area 0
> !
> router bgp 1000
>  address-family ipv4 vrf vpn_int
>  redistribute ospf 1 match internal external 1 external 2
>  default-information originate
>  no auto-summary
>  no synchronization
>  exit-address-family
>  !
> 
> RTRPE3#sh ip ro vrf vpn_int
> 
> Gateway of last resort is 157.159.225.1 to network 0.0.0.0
> 
>      157.159.0.0/16 is variably subnetted, 4 subnets, 2 masks
> O       157.159.11.0/24 [110/2] via 157.159.225.1, 1d17h,
> FastEthernet0/1.300
> C       157.159.225.0/24 is directly connected, FastEthernet0/1.300
> B       157.159.230.0/24
>            [20/1] via 157.159.224.9 (vpn_voip), 1d17h, FastEthernet0/1.2
> B       157.159.224.8/30 is directly connected, 1d17h, FastEthernet0/1.2
> O*E2 0.0.0.0/0 [110/1] via 157.159.225.1, 1d17h, FastEthernet0/1.300
--
Camelia Nastase
Network Administrator			Motto: "All you have to do
Departamentul Internet                   is want it bad enough"
ASTRAL TELECOM SA, Sucursala Cluj
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.