cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1497
Views
0
Helpful
2
Replies

Announce route with BGP

greenplague
Level 1
Level 1

Hi,

how can i announce in router C with BGP, the VLAN 2 to the router A, and VLAN 3 to router B?

The router B can't know the VLAN 2 and router A can't know the VLAN 3

thanks for the help

2 Accepted Solutions

Accepted Solutions

Richard Burts
Hall of Fame
Hall of Fame

This is not a complicated thing to do. Configure BGP on all three routers. On router C configure both router A and router B as neighbors. In configuring router A as a neighbor configure a route map for outbound advertisements and in the route map permit vlan 2 but not vlan 3. In configuring router B as a neighbor configure a route map for outbound advertisements and in the route map permit vlan 3 but not vlan 2.

 

HTH

 

Rick

HTH

Rick

View solution in original post

Hello

following on from richards post - below is an example of the config he is refering to -

 

conf t
access-list 2  permit 192.168.2.0 0.0.0.255
access-list 3  permit 192.168.3.0 0.0.0.255

ip as=path access-list 1 permit ^$

 

route-map Vlan2 permit 10
match ip address 2

route-map Vlan3 permit 10
match ip address 3


router bgp 11111
network 192.168.2.0
network 192.168.3.0
neighbour 10.10.1.x route-map Vlan2 out
neighbour 10.10.1.x filter-list 1 out ( prohibit transit routes Between isp A and B)
neighbour 10.10.2.x route-map Vlan3 out
neighbour 10.10.2.x filter-list 1 out ( prohibit transit routes between isp B and A)

 

res

Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

2 Replies 2

Richard Burts
Hall of Fame
Hall of Fame

This is not a complicated thing to do. Configure BGP on all three routers. On router C configure both router A and router B as neighbors. In configuring router A as a neighbor configure a route map for outbound advertisements and in the route map permit vlan 2 but not vlan 3. In configuring router B as a neighbor configure a route map for outbound advertisements and in the route map permit vlan 3 but not vlan 2.

 

HTH

 

Rick

HTH

Rick

Hello

following on from richards post - below is an example of the config he is refering to -

 

conf t
access-list 2  permit 192.168.2.0 0.0.0.255
access-list 3  permit 192.168.3.0 0.0.0.255

ip as=path access-list 1 permit ^$

 

route-map Vlan2 permit 10
match ip address 2

route-map Vlan3 permit 10
match ip address 3


router bgp 11111
network 192.168.2.0
network 192.168.3.0
neighbour 10.10.1.x route-map Vlan2 out
neighbour 10.10.1.x filter-list 1 out ( prohibit transit routes Between isp A and B)
neighbour 10.10.2.x route-map Vlan3 out
neighbour 10.10.2.x filter-list 1 out ( prohibit transit routes between isp B and A)

 

res

Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking products for a $25 gift card