Cisco Router Configuration

This guide provides a standard BGP configuration template for connecting Cisco IOS/IOS-XE devices to IXPN.

Prerequisites

  • Assigned ASN from AFRINIC or your RIR
  • IXPN IP allocation (IPv4/IPv6)
  • Physical or logical link to IXPN

Configuration Template

  1. Configure Peer IP address
    interface gigabitethernet <interface-number>
    ip address <ip_address> <netmask>
    no shutdown
    commit
    exit
  1. Provision a route policy to be attatched to BGP neighbor. At minimum this policy should have this pass-all action.
    route-policy <policy-name>
        pass
    end-policy
    commit
  1. Start a BGP routing Instance
    router bgp <your-asn>
    commit
  1. Activate global BGP address-family
    address-family ipv4 unicast
    commit
    exit
  1. Disble BGP first-as enforcement to receive updates from route server. This is necessary because the route servers do not include its ASN in the AS-PATH sequence of updates.
    bgp enforce-first-as disable
    commit
  1. Configure BGP neighbor
    nighbor <neighbor-ip>
    remote-as <neighbor-asn>
    commit
  1. Activate address family for neighbor (IPv4/IPv6)
    neighbor <neighbor-ip>
    address-family ipv4 | ipv6 unicast
    soft-reconfiguration inbound
    commit
  1. Attach route policy to neighbor
    neighbor <neighbor-ip>
    route-policy <policy-_ame> in
    route-policy <policy_nam> out
  1. Verify BGP session
    show bgp ipv4 unicast summary