Listen to this Post
Just wrapped up a lab where I configured BGP (Border Gateway Protocol) between multiple Autonomous Systems.
🔍 Key Concepts Demonstrated:
- Inter-AS routing using BGP
- Loopback interfaces used for iBGP neighbor relationships
- Use of AS_PATH Prepending to influence routing decisions
- Proper use of FastEthernet and Serial interfaces for WAN simulation
💡 AS Numbers:
- R1 & R4: AS 650014
- R2: AS 650002
- R3: AS 650003
📡 Each router was configured to advertise its loopback IP, simulating real-world ISP peering scenarios. Understanding BGP path selection and manipulation is crucial for any network engineer aiming for real-world deployment or certifications like CCNA, CCNP, or even CCIE.
You Should Know:
BGP Configuration Commands (Cisco IOS)
1. Enable BGP on a router:
router bgp <AS_NUMBER>
2. Define BGP neighbors (eBGP/iBGP):
neighbor <IP_ADDRESS> remote-as <REMOTE_AS_NUMBER>
3. Advertise networks in BGP:
network <NETWORK_IP> mask <SUBNET_MASK>
4. AS_PATH Prepending (for path manipulation):
route-map PREPEND permit 10 set as-path prepend <AS_NUMBER> <AS_NUMBER>
Then apply to neighbor:
neighbor <IP_ADDRESS> route-map PREPEND out
5. Verify BGP neighbors:
show ip bgp summary
6. Check BGP routing table:
show ip bgp
Linux BGP Tools (for analysis)
– `bird` – BGP routing daemon for Linux:
sudo apt install bird
– `bgpq3` – Generate prefix lists for BGP:
bgpq3 -h <RWHOIS_SERVER> -l <LIST_NAME> <AS_NUMBER>
– `exabgp` – BGP automation tool:
exabgp --debug /etc/exabgp.conf
Windows BGP Tools
- PowerShell BGP module (for Windows Server):
Install-WindowsFeature -Name Routing -IncludeManagementTools Add-BgpRouter -BgpIdentifier <ROUTER_IP> -LocalASN <AS_NUMBER>
What Undercode Say:
BGP is the backbone of the internet, and mastering it requires hands-on practice. Whether you’re using Cisco IOS, Linux (bird/exabgp), or Windows Server, understanding BGP path attributes like AS_PATH, LOCAL_PREF, and `MED` is essential. Automation with tools like Ansible (ios_bgp module) can streamline large-scale deployments.
For deeper learning, check:
Expected Output:
A functional BGP lab with verified path manipulation and neighbor adjacencies.
References:
Reported By: Fiza Ahmed – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅



