Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Announce route with BGP

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
Hall of Fame Super Gold

This is not a complicated

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

Hellofollowing on from

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 don't forget to rate any posts that have been helpful. Thanks.
2 REPLIES
Hall of Fame Super Gold

This is not a complicated

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

Hellofollowing on from

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 don't forget to rate any posts that have been helpful. Thanks.
197
Views
0
Helpful
2
Replies
CreatePlease to create content