BGP Implementation
Posted: Fri Jan 16, 2015 8:57 pm
Hello Guys!
After dealing with this problem, no the BGP have come back to me. My manager now wants to end with the EoIP tunnels, so we can make the things a little easier, and want me to implement BGP.
I am new at BGP and just have made some tests when I've started with the OSPF implementation. Now i'm making some new tests on a test lab. Attached to this post is my test topology, and below I put some background information and the results of my tests untill now, with problems.
Background
1) QEMU devices are my RB's;
2) The path through R2 and R2 supposes to ilustrate my ISP's MPLS topology, which I have no access. Just made an OSPF instance to get the routes between them working;
3) The QEMU1-QEMU3 path supposes to ilustrate an PPTP session through internet as a redundant link;
4) The SW2 and SW3 ilustrates my lan on HQ and branch office;
5) Today, I use all 3 RB's to get this topology working. QEMU2 is my EoIP tunnels and QEMU1 is my PPTP and core router.
QEMU1
QEMU2
QEMU3
My results:
1) I get the routes learned on all routers;
2) I feel some delay on BGP to see the link down;
3) When I shut the PPTP link down and the QEMU1 needs to go through MPLS, the ISP router says me that do not know the address that I am looking for. I though that BGP would delivery the package to the remote peer(which it knows how to reach by static route) and then would go to the destination network.
4) Testing using just one router, I so have problems with metrics, because os iBGP and eBGP.
After dealing with this problem, no the BGP have come back to me. My manager now wants to end with the EoIP tunnels, so we can make the things a little easier, and want me to implement BGP.
I am new at BGP and just have made some tests when I've started with the OSPF implementation. Now i'm making some new tests on a test lab. Attached to this post is my test topology, and below I put some background information and the results of my tests untill now, with problems.
Background
1) QEMU devices are my RB's;
2) The path through R2 and R2 supposes to ilustrate my ISP's MPLS topology, which I have no access. Just made an OSPF instance to get the routes between them working;
3) The QEMU1-QEMU3 path supposes to ilustrate an PPTP session through internet as a redundant link;
4) The SW2 and SW3 ilustrates my lan on HQ and branch office;
5) Today, I use all 3 RB's to get this topology working. QEMU2 is my EoIP tunnels and QEMU1 is my PPTP and core router.
QEMU1
Code: Select all
[admin@MikroTik] > routing bgp export
# jan/16/2015 18:48:15 by RouterOS 5.20
# software id = W5EY-LHT9
#
/routing bgp instance
set default as=65530 client-to-client-reflection=yes disabled=no ignore-as-path-len=no name=default out-filter="" redistribute-connected=no \
redistribute-ospf=no redistribute-other-bgp=no redistribute-rip=no redistribute-static=no router-id=0.0.0.0 routing-table=""
/routing bgp network
add disabled=no network=10.25.0.0/23 synchronize=yes
/routing bgp peer
add address-families=ip as-override=no default-originate=never disabled=no hold-time=3m in-filter="" instance=default multihop=no name=BKP \
nexthop-choice=default out-filter="" passive=no remote-address=10.254.254.5 remote-as=65530 remove-private-as=no route-reflect=no tcp-md5-key=\
"" ttl=255 use-bfd=no
add address-families=ip as-override=no default-originate=never disabled=no hold-time=3m in-filter="" instance=default multihop=no name=PPTP \
nexthop-choice=default out-filter="" passive=no remote-address=172.20.1.2 remote-as=65535 remove-private-as=no route-reflect=no tcp-md5-key="" \
ttl=255 use-bfd=no
[admin@MikroTik] > ip route export
# jan/16/2015 18:48:25 by RouterOS 5.20
# software id = W5EY-LHT9
#
/ip route
add disabled=no distance=1 dst-address=10.254.35.253/32 gateway=10.254.254.1 scope=30 target-scope=10
[admin@MikroTik] >
[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 10.25.0.0/23 10.25.1.254 ether2-lan 0
1 ADb 10.25.35.0/24 172.20.1.2 20
2 Db 10.25.35.0/24 10.254.35.253 200
3 A S 10.254.35.253/32 10.254.254.1 1
4 ADC 10.254.254.0/29 10.254.254.4 ether1-wan 0
5 ADC 172.20.1.0/30 172.20.1.1 ether3-pptp 0
[admin@MikroTik] > routing bgp peer print
Flags: X - disabled, E - established
# INSTANCE REMOTE-ADDRESS REMOTE-AS
0 E default 10.254.254.5 65530
1 E default 172.20.1.2 65535
Code: Select all
[admin@MikroTik] > routing bgp export
# jan/16/2015 18:51:11 by RouterOS 5.20
# software id = W5EY-LHT9
#
/routing bgp instance
set default as=65530 client-to-client-reflection=yes disabled=no ignore-as-path-len=no name=default out-filter="" redistribute-connected=no \
redistribute-ospf=no redistribute-other-bgp=no redistribute-rip=no redistribute-static=no router-id=0.0.0.0 routing-table=""
/routing bgp peer
add address-families=ip as-override=no default-originate=never disabled=no hold-time=3m in-filter="" instance=default multihop=no name=peer1 \
nexthop-choice=default out-filter="" passive=no remote-address=10.254.254.4 remote-as=65530 remove-private-as=no route-reflect=no tcp-md5-key=\
"" ttl=255 use-bfd=no
add address-families=ip as-override=no default-originate=never disabled=no hold-time=3m in-filter="" instance=default multihop=yes name=peer2 \
nexthop-choice=default out-filter="" passive=no remote-address=10.254.35.253 remote-as=65535 remove-private-as=no route-reflect=no \
tcp-md5-key="" ttl=255 use-bfd=no
[admin@MikroTik] > ip route export
# jan/16/2015 18:51:22 by RouterOS 5.20
# software id = W5EY-LHT9
#
/ip route
add disabled=no distance=1 dst-address=10.254.35.253/32 gateway=10.254.254.1 scope=30 target-scope=10
[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADb 10.25.0.0/23 10.254.254.4 200
1 ADb 10.25.35.0/24 10.254.35.253 20
2 Db 10.25.35.0/24 172.20.1.2 200
3 A S 10.254.35.253/32 10.254.254.1 1
4 ADC 10.254.254.0/29 10.254.254.5 ether1 0
[admin@MikroTik] > routing bgp peer print
Flags: X - disabled, E - established
# INSTANCE REMOTE-ADDRESS REMOTE-AS
0 E default 10.254.254.4 65530
1 E default 10.254.35.253 65535
Code: Select all
[admin@MikroTik] > routing bgp export
# jan/16/2015 18:52:03 by RouterOS 5.20
# software id = W5EY-LHT9
#
/routing bgp instance
set default as=65535 client-to-client-reflection=yes disabled=no ignore-as-path-len=no name=default out-filter="" redistribute-connected=no \
redistribute-ospf=no redistribute-other-bgp=no redistribute-rip=no redistribute-static=no router-id=0.0.0.0 routing-table=""
/routing bgp network
add disabled=no network=10.25.35.0/24 synchronize=yes
/routing bgp peer
add address-families=ip as-override=no default-originate=never disabled=no hold-time=3m in-filter=entrada-mpls instance=default multihop=yes name=\
MPLS nexthop-choice=default out-filter="" passive=no remote-address=10.254.254.5 remote-as=65530 remove-private-as=no route-reflect=no \
tcp-md5-key="" ttl=255 use-bfd=no
add address-families=ip as-override=no default-originate=never disabled=no hold-time=3m in-filter=entrada-pptp instance=default multihop=no name=\
PPTP nexthop-choice=default out-filter="" passive=no remote-address=172.20.1.1 remote-as=65530 remove-private-as=no route-reflect=no \
tcp-md5-key="" ttl=255 use-bfd=no
[admin@MikroTik] > ip route export
# jan/16/2015 18:52:08 by RouterOS 5.20
# software id = W5EY-LHT9
#
/ip route
add disabled=no distance=1 dst-address=10.254.254.4/32 gateway=10.254.35.254 scope=30 target-scope=10
add disabled=no distance=1 dst-address=10.254.254.5/32 gateway=10.254.35.254 scope=30 target-scope=10
[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADb 10.25.0.0/23 172.20.1.1 20
1 Db 10.25.0.0/23 10.254.254.4 20
2 ADC 10.25.35.0/24 10.25.35.254 ether2-lan 0
3 ADC 10.254.35.252/30 10.254.35.253 ether1-mpls 0
4 A S 10.254.254.4/32 10.254.35.254 1
5 A S 10.254.254.5/32 10.254.35.254 1
6 ADC 172.20.1.0/30 172.20.1.2 ether3-pptp 0
[admin@MikroTik] > routing bgp peer print
Flags: X - disabled, E - established
# INSTANCE REMOTE-ADDRESS REMOTE-AS
0 E default 10.254.254.5 65530
1 E default 172.20.1.1 65530
My results:
1) I get the routes learned on all routers;
2) I feel some delay on BGP to see the link down;
3) When I shut the PPTP link down and the QEMU1 needs to go through MPLS, the ISP router says me that do not know the address that I am looking for. I though that BGP would delivery the package to the remote peer(which it knows how to reach by static route) and then would go to the destination network.
4) Testing using just one router, I so have problems with metrics, because os iBGP and eBGP.