06-07-2014 12:21 PM - edited 03-04-2019 11:07 PM
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
Solved! Go to Solution.
06-07-2014 01:34 PM
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
06-07-2014 03:47 PM
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
06-07-2014 01:34 PM
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
06-07-2014 03:47 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide