Hi There,
Trying do do the exporting into other VRFs here, but it is not
working. All of the routes are appearing in R5's routing table when
they should not be.
R5:
!
ip vrf GREEN
rd 100:1
route-target export 100:2
route-target import 100:2
route-target import 100:1
route-target import 100:100 <------ want to see these
!
!
!
!
!
!
interface FastEthernet0/0
ip vrf forwarding GREEN
ip address 150.50.55.5 255.255.255.0
speed 100
full-duplex
!
!
router bgp 100
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 200.0.0.2 remote-as 100
neighbor 200.0.0.2 update-source Loopback0
!
address-family ipv4
neighbor 200.0.0.2 activate
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor 200.0.0.2 activate
neighbor 200.0.0.2 send-community extended
exit-address-family
!
address-family ipv4 vrf GREEN
redistribute connected
no synchronization
exit-address-family
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
R5#show ip route vrf GREEN
Routing Table: GREEN
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 not set
100.0.0.0/24 is subnetted, 2 subnets
B 100.100.100.0 [200/0] via 200.0.0.2, 00:09:34
B 100.100.200.0 [200/0] via 200.0.0.2, 00:09:34 <---- dont
want to see this one
200.0.0.0/32 is subnetted, 1 subnets
B 200.0.0.1 [200/0] via 200.0.0.2, 00:09:34
150.50.0.0/24 is subnetted, 2 subnets
C 150.50.55.0 is directly connected, FastEthernet0/0
B 150.50.12.0 [200/0] via 200.0.0.2, 00:09:34
R5#
Now for R2
!
ip vrf RED
rd 100:1
export map 100
route-target export 100:1
route-target import 100:1
route-target import 100:2
!
interface FastEthernet1/0
no switchport
ip vrf forwarding RED
ip address 150.50.12.2 255.255.255.0
duplex full
speed 100
!
router bgp 100
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS100 peer-group
neighbor AS100 remote-as 100
neighbor AS100 update-source Loopback0
neighbor 150.50.12.1 remote-as 10000
neighbor 200.0.0.4 peer-group AS100
neighbor 200.0.0.5 peer-group AS100
neighbor 200.0.0.6 peer-group AS100
!
address-family ipv4
neighbor 200.0.0.5 activate
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 multicast
neighbor AS100 route-reflector-client
neighbor 200.0.0.4 activate
neighbor 200.0.0.6 activate
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor AS100 send-community extended
neighbor 200.0.0.5 activate
exit-address-family
!
address-family ipv4 vrf RED
neighbor 150.50.12.1 remote-as 10000
neighbor 150.50.12.1 activate
no synchronization
exit-address-family
!
ip prefix-list 100 seq 5 permit 100.100.100.0/24
!
ip prefix-list 200 seq 5 permit 100.100.200.0/24 <---match this
!
route-map 100 permit 10
match ip address prefix-list 100
set extcommunity rt 100:100
!
route-map 100 permit 20
match ip address prefix-list 200 <------ match this
set extcommunity rt 100:200 <---- I am not importing this on R5
!
route-map 100 permit 30
set extcommunity rt 100:1
!
it appears that my export map is not tagging the extcommunity 100:100
& 100:200 for some reason...
R5#show ip bgp vpnv4 vrf GREEN 100.100.200.0
BGP routing table entry for 100:1:100.100.200.0/24, version 7
Paths: (1 available, best #1, table GREEN)
Not advertised to any peer
10000
200.0.0.2 (metric 65) from 200.0.0.2 (200.0.0.2)
Origin IGP, metric 0, localpref 100, valid, internal, best
Extended Community: RT:100:1
mpls labels in/out nolabel/22
R5#show ip bgp vpnv4 vrf GREEN 100.100.100.0
BGP routing table entry for 100:1:100.100.100.0/24, version 6
Paths: (1 available, best #1, table GREEN)
Not advertised to any peer
10000
200.0.0.2 (metric 65) from 200.0.0.2 (200.0.0.2)
Origin IGP, metric 0, localpref 100, valid, internal, best
Extended Community: RT:100:1
mpls labels in/out nolabel/21
Anyone know why?
Cheers,
Matt
CCIE #22386
CCSI #31207
_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit
www.ipexpert.com