Trying to solve an issues regarding vpls. How can I stop advertising only certain subnets to a specific branch on the other side of a vpls/ipvpn cloud? Im using bgp routing with static routes as well.
is this just a point-to-point connection or do you have multiple sites involved?? do you control the other sites CE device?? there are a few different ways to tackle this depending on your structure.
ok, so since you are using L2 VPN I am making the assumption that you have a full-mesh of BGP peers between all of your locations. if so, you can take care of this on your CE in the location that is originating this prefix.
L1 is the location where you are sourcing 10.10.10.0/24, 10.10.20.0/24, and 10.10.30.0/24. L2 should not receive 10.10.10.0/24, but it should receive the other prefixes. Your VPLS subnet is 192.168.10/24 with L2 residing at 192.168.10.2:
Use a prefix-list
Code:
ip prefix-list prune deny 10.10.10.0/24
ip prefix-list prune permit 0.0.0.0/0 le 32
router bgp 65000
neigh 192.168.10.2 prefix-list prune out
neigh 192.168.10.2 description L2
clear ip bgp 192.168.10.2 soft out
or use a distribute-list
Code:
ip access-list extended prune
deny ip 10.10.10.0 0.0.0.255 any
permit ip any any
router bgp 65000
neigh 192.168.10.2 distribute-list prune out
clear ip bgp 192.168.10.2 soft out
or, use a route-map
Code:
ip prefix-list prune deny 10.10.10.0/24
ip prefix-list prune permit 0.0.0.0/0 le 32
route-map rmap-prune
match ip address prefix-list prune
router bgp 65000
neigh 192.168.10.2 route-map rmap-prune out
clear ip bgp 192.168.10.2 soft out
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.