Add company2
R7
- RD: 1:200
- RT export 201
- RT import 202
- RD: 1:201
- RT export 202
- RT import 201
First: Configure MPLS VPN for company2
R2#
router bgp 1
address-family ipv4 vrf company1
neighbor 1.1.25.5 remote-as 65000
neighbor 1.1.25.5 activate
neighbor 1.1.25.5 as-override
!
R3#
router bgp 1
address-family ipv4 vrf company1
neighbor 1.1.36.6 remote-as 65000
neighbor 1.1.36.6 activate
neighbor 1.1.36.6 as-override
!
------------------------
R1#
ip vrf company2
rd 1:200
route-target export 1:201
route-target import 1:202
exit
int f0/0.17
ip vrf forwarding company2
ip address 1.1.17.1 255.255.255.0
exit
router bgp 1
address-family ipv4 vrf company2
neighbor 1.1.17.7 remote-as 65002
neighbor 1.1.17.7 as-override
exit
!
R3#
ip vrf company2
rd 1:200
route-target export 1:202
route-target import 1:201
exit
int f0/0.38
ip vrf forwarding company2
ip address 1.1.38.3 255.255.255.0
exit
router bgp 1
address-family ipv4 vrf company2
neighbor 1.1.38.8 remote-as 65002
neighbor 1.1.38.8 as-override
exit
!
R7#
router bgp 65002
bgp router-id 1.1.7.7
network 1.1.7.7 mask 255.255.255.255
neighbor 1.1.17.1 remote-as 1
!
R8#
router bgp 65002
bgp router-id 1.1.8.8
network 1.1.8.8 mask 255.255.255.255
neighbor 1.1.38.3 remote-as 1
!
Verify the connection between R7 and R8
Adjust RT information to exchange routing information between different VPN clients.
Couple of way you can adjust RT infor to exchange routing infor.
Add 'route-target export 1:202' on VRF company1 in R4, and 'route-target export 1:100 on VRF company2 in R7.
Add the other RT on both company1 and company2 like 'route-target both 1:300'.
I'll go to the second way.
R1#
ip vrf company1
route-target both 1:300
exit
ip vrf company2
route-target both 1:300
exit
Verify
Ping from R7 to R4
No comments:
Post a Comment