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
- Configure Peer IP address
interface gigabitethernet <interface-number>
ip address <ip_address> <netmask>
no shutdown
commit
exit
- 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
- Start a BGP routing Instance
router bgp <your-asn>
commit
- Activate global BGP address-family
address-family ipv4 unicast
commit
exit
- 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
- Configure BGP neighbor
nighbor <neighbor-ip>
remote-as <neighbor-asn>
commit
- Activate address family for neighbor (IPv4/IPv6)
neighbor <neighbor-ip>
address-family ipv4 | ipv6 unicast
soft-reconfiguration inbound
commit
- Attach route policy to neighbor
neighbor <neighbor-ip>
route-policy <policy-_ame> in
route-policy <policy_nam> out
- Verify BGP session
show bgp ipv4 unicast summary