Cisco BGP Config Tips

Cisco IOS configuration guidance for connecting to MBIX.

This document provides helpful configuration hints for configuring a router connected to MBIX. It is intended for network administrators with a working knowledge of BGP.

Many of these settings are optional or should be adapted for your environment.

Overview

To connect to MBIX, you should:

  • Configure the router interface.
  • Configure BGP.

Interface configuration overview

Use a dedicated router interface or VLAN interface (SVI) for your MBIX connection.

  • Only allow IPv4, IPv6, and ARP.
  • Disable spanning tree.
    • If the MBIX switch receives a BPDU, MBIX will disable your port.
    • The method of disabling spanning tree varies by configuration.
  • Disable:
    • CDP
    • DHCP
    • Keepalive
    • IP redirects
    • MOP
    • Proxy ARP

BGP configuration overview

See the Route Servers guide for further information.

Run BGP on IPv4 and IPv6, connecting to RS1 and RS2. This results in four sessions:

  1. IPv4 to RS1
  2. IPv4 to RS2
  3. IPv6 to RS1
  4. IPv6 to RS2

Tips

  • Allow the first AS received to be that of the other member: no bgp enforce-first-as.
  • Announce only the prefixes you intend to share, using a prefix list.
  • Set LOCAL_PREF higher than for routes received from transit providers.

Cisco IOS examples

The following examples must be adapted to your specific configuration.

Do not copy them blindly.

Interface configuration

Configure your interface with the IPv4 and IPv6 addresses assigned to you. Disable features that are not desired on an IX.

Example physical interface from core1.mbix.ca:

interface GigabitEthernet0/2
 description MBIX peering
 ip address 206.72.208.1 255.255.255.0
 no cdp enable
 no ip redirects
 no ip proxy-arp
 duplex auto
 speed auto
 ipv6 address 2001:504:26::1:6395:1/64
 ipv6 nd ra suppress
 no ipv6 redirects
 no keepalive
 no mop enabled

VLAN interface example:

interface Vlan14
 description MBIX peering
 ip address 206.72.208.2 255.255.255.0
 no ip redirects
 no ip proxy-arp
 ipv6 address 2001:504:26::1:8451:1/64
 ipv6 nd ra suppress
 no ipv6 redirects

BGP configuration

Example BGP configuration:

router bgp 16395
 no bgp enforce-first-as
 bgp log-neighbor-changes
 neighbor 2001:504:26::1:6395:11 remote-as 16395
 neighbor 2001:504:26::1:6395:11 description MBIX RS1
 neighbor 2001:504:26::1:6395:12 remote-as 16395
 neighbor 2001:504:26::1:6395:12 description MBIX RS2
 neighbor 206.72.208.11 remote-as 16395
 neighbor 206.72.208.11 description MBIX RS1
 neighbor 206.72.208.12 remote-as 16395
 neighbor 206.72.208.12 description MBIX RS2
!
 address-family ipv4
  network 198.181.199.0
  no neighbor 2001:504:26::1:6395:11 activate
  no neighbor 2001:504:26::1:6395:12 activate
  neighbor 206.72.208.11 activate
  neighbor 206.72.208.11 next-hop-self
  neighbor 206.72.208.11 soft-reconfiguration inbound
  neighbor 206.72.208.11 prefix-list RS-OUT out
  neighbor 206.72.208.11 route-map LOCALPREF-ix in
  neighbor 206.72.208.12 activate
  neighbor 206.72.208.12 next-hop-self
  neighbor 206.72.208.12 soft-reconfiguration inbound
  neighbor 206.72.208.12 prefix-list RS-OUT out
  neighbor 206.72.208.12 route-map LOCALPREF-ix in
 exit-address-family
!
 address-family ipv6
  network 2620:19:4000::/48
  neighbor 2001:504:26::1:6395:11 activate
  neighbor 2001:504:26::1:6395:11 next-hop-self
  neighbor 2001:504:26::1:6395:11 soft-reconfiguration inbound
  neighbor 2001:504:26::1:6395:11 prefix-list RS6-OUT out
  neighbor 2001:504:26::1:6395:11 route-map LOCALPREF-ix in
  neighbor 2001:504:26::1:6395:12 activate
  neighbor 2001:504:26::1:6395:12 next-hop-self
  neighbor 2001:504:26::1:6395:12 soft-reconfiguration inbound
  neighbor 2001:504:26::1:6395:12 prefix-list RS6-OUT out
  neighbor 2001:504:26::1:6395:12 route-map LOCALPREF-ix in
 exit-address-family

Prefix list

Use prefix lists to limit announcements into the exchange. Explicitly list all your prefixes and deny all others.

ip prefix-list RS-OUT seq 10 permit 198.181.199.0/24
ip prefix-list RS-OUT seq 20 permit 23.78.143.0/24
ip prefix-list RS-OUT seq 100 deny 0.0.0.0/0

ipv6 prefix-list RS6-OUT seq 10 permit 2620:19:4000::/48
ipv6 prefix-list RS6-OUT seq 20 permit 2600:140A:4::/48
ipv6 prefix-list RS6-OUT seq 100 deny ::/0 le 128

Route map

Use a route map to set the LOCAL_PREF for routes received from MBIX to a value higher than the default of 100. ASN administrators should determine the appropriate value for their own routing policy.

route-map LOCALPREF-ix permit 10
 set local-preference 200

Conclusion

MBIX operates similarly to many IXes. Settings and tips applicable to other exchanges are likely applicable to MBIX.

If you need help, contact network@mbix.ca.