Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IPVPN cloud / vpls 1

Status
Not open for further replies.

xdxml12

Technical User
Oct 26, 2012
24
AE
Hello there,

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.

Any help would be appreciated.
 
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.

 
there are other sites that are also connected to the vpls. i just control the main site and one branch
 
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

 
Appretiate it very much. I will go with the prefix list first and see how it works out. Will let you know how it goes.

Thanks again : )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top