ā05-13-2024 10:04 AM
i can't ping the l1:10.1.1.1 from source 20.1.1.1 router R4 router and mbgp is configure between R1 and R2 router without mpls enable. rip of vrf is redistribute in mbgp and mbgp is redistribute in rip
R1 router configuration
ip vrf A
rd 1:1
route-target export 100:100
route-target import 100:100
interface Ethernet1/1
ip vrf forwarding A
ip address 13.1.1.1 255.255.255.0
duplex half
end
router rip
version 2
!
address-family ipv4 vrf A
redistribute bgp 100 metric 1
network 13.0.0.0
no auto-summary
version 2
exit-address-family
redistribute bgp 100 metric 1
router bgp 100
bgp log-neighbor-changes
redistribute rip
neighbor 12.1.1.2 remote-as 100
neighbor 12.1.1.2 next-hop-self
!
address-family vpnv4
neighbor 12.1.1.2 activate
neighbor 12.1.1.2 send-community extended
exit-address-family
!
address-family ipv4 vrf A
redistribute rip metric 1
exit-address-family
R2 router configuration details
ip vrf A
rd 1:1
route-target export 100:100
route-target import 100:100
interface Ethernet1/1
ip vrf forwarding A
ip address 14.1.1.1 255.255.255.0
duplex half
end
router rip
version 2
!
address-family ipv4 vrf A
redistribute bgp 100 metric 1
network 14.0.0.0
no auto-summary
version 2
exit-address-family
redistribute rip
redistribute rip metric 1
redistribute bgp 100 metric 1
router bgp 100
bgp log-neighbor-changes
redistribute rip
neighbor 12.1.1.1 remote-as 100
neighbor 12.1.1.1 next-hop-self
!
address-family vpnv4
neighbor 12.1.1.1 activate
neighbor 12.1.1.1 send-community extended
exit-address-family
!
address-family ipv4 vrf A
redistribute rip metric 1
exit-address-family
R3 configuration details
interface Ethernet1/1
ip address 13.1.1.2 255.255.255.0
duplex half
end
interface Loopback1
ip address 10.1.1.1 255.255.255.0
end
router rip
version 2
network 10.0.0.0
network 13.0.0.0
no auto-summary
R4 configuration details
interface Ethernet1/1
ip address 14.1.1.2 255.255.255.0
duplex half
end
interface Loopback1
ip address 20.1.1.1 255.255.255.0
end
router rip
version 2
network 20.0.0.0
network 14.0.0.0
no auto-summary
ā05-13-2024 10:08 AM
Indeed you need mpls' with label of mpls how the routers know this traffic for which VRF.
Routers use mpls label to forward traffic to correct vrf.
MHM
ā05-13-2024 09:53 PM
did not we use the rt import and export value for vrf identification within multiple vrf configuration
ā05-13-2024 10:56 PM - edited ā05-13-2024 10:59 PM
There are two planes
Control plane of mpls this use rt import/export to inject prefix from vpnv4 into specific vrf
There are data plane which use label in packet to correct forward packet to specific vrf.
Rt is not include data packet but mpls label include.
With mpls
Prefix appear in show ip route vrf
Can forward traffic
Without mpls
Prefix appear in show ip route vrf
You can not forward traffic
MHM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide