• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Network Automation Engineer: Roger Perkin CCIE 50038

CCIE, Wireless, F5, Ansible, AWS, Cloud and data centre to Network Automation - my journey as a network engineer

  • Courses
  • Consulting
  • Contact
  • NETWORK AUTOMATION >Ansible, Python, DevOps etc
    • Ansible for Network Automation
    • Python for Network Automation
  • My CCIE Journey >How I passed the Lab
    • CCIE Blog
    • CCIE Study Plan
  • F5 CertificationF5 Cerfification Cost and Tutorials
    • Cloud
    • VMWare
    • GNS3
    • JUNIPER
  • CiscoPassword Recovery, Software Upgrades
    • Software-Upgrade-Guides
    • Password Recovery
    • WIRELESS
    • Security
      • ISE
    • Cisco Commerce
    • BGP
    • OSPF
    • 4500x
    • NEXUS
    • Windows 10
    • Wireless Console Cable
  • Devnet CertificaitonsDevnet Associate, Specialist & Professional
  • BLOG
    • Contact
    • About Roger
Home >> BGP >> BGP Peer in wrong AS

BGP Peer in wrong AS

When configuring BGP with a remote peer you might get the error message
BGP peer in wrong AS

*Apr 18 08:39:15.455: %BGP-3-NOTIFICATION: received from neighbor 10.0.12.2
passive 2/2 (peer in wrong AS) 2 bytes 0002

This means that you have mis-matched AS numbers in your BGP configuration.

You can phone up the remote end and ask them what their AS number is. But if you cannot do that there is one way.

The answer to this problem is given to you in the log message.

The HEX number at the end of the log message 0002 is telling you that the remote AS is 2

If you change your neighbor statement to be 2 the peering should come up.

R1#sh run | sec router bgp
router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 10.0.12.2 remote-as 5  (Neighbor set to 5 - wrong)

Just change your neighbor statement to point to AS 2 and the peering shoudl come up.

R1(config)#router bgp 1
R1(config-router)#no neighbor 10.0.12.2 remote-as 5
R1(config-router)#neighbor 10.0.12.2 remote-as 2
R1#
*Mar  1 00:13:59.539: %BGP-5-ADJCHANGE: neighbor 10.0.12.2 Up
R1#

This will not help you if the neighbor statement on the remote end is incorrect.

If the Hex number is larger you can use the windows calculater in programmer mode to convert betwen hex and decimal

Further Reading on BGP

BGP Confederation vs Route Reflector

Want to learn more about Network Automation?

Network Automation skills are becoming a must for network engineers of the future. Get started and learn the skills you need for the future with my course on Ansible for Network Engineers Today!

Show me more about the network automation course
hp instant ink

Roger Perkin - CCIE #50038 is a Network Automation Engineer & CCIE Consultant based in the UK, currently working for Softcat Plc as a Senior Network & Security Consultant.
Rogers' CCIE Journey | About Roger | Contact | Twitter | Linkedin

Previous Post: « How to become a network engineer with no experience
Next Post: Awesome Putty tips and tricks for work and the CCIE Lab! »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

About Roger

roger perkin

Roger Perkin, CCIE #50038 is a Senior Network & Security Consultant working for a Cisco Gold Partner in the UK.
He is also an evangelist for Network Automation.

Let’s connect

  • GitHub
  • LinkedIn
  • Twitter
  • YouTube
ccie blueprint popup
Ansible Tutorials for Network Engineers
 

Most Popular Pages

  • Ansible for Network Automation
  • MPLS Configuration Tutorial
  • Cisco 3850 IOS Upgrade
  • Build CCIE Lab with CSR1000V
  • What is Cisco ISE?
  • Route Distinguisher vs Route-Target
  • Folding Laptop Stand Review
  • 19 Best Study Tips
  • Best Vertical Mouse
  • Is CCIE still worth it in 2019?
  • OSPF LSA Types
  • How to clean your computer screen and keyboard
network eyes banner
the ccie blueprint network automation course

Looking for Ansible Network Automation Training?


Learn how to install Ansible, write your first playbook and start automating your network today.


Check out my Ansible Network Automation Training
  • How to Become a Network Engineer
  • Ansible for Network Engineers
  • Check CCIE Status
  • MPLS Configuration Step by Step

The Author

roger perkin ccie network automation engineer
Roger Perkin, (CCIE #50038) is a Senior Network & Security Consultant.
Currently working for Softcat plc.
Roger is an evangelist for Network Automation
and is continuing to develop skills in Ansible and the Devops culture.
Contact

Most Visited Pages

Software Upgrade Guides
Wireless Console Cable
Network Automation Tools 
Bose Connect Windows 10
Private VLANs explained
Cisco ISE Overview

Ansible

Where are Ansible Modules stored
Ansible IOS Command Example
Ansile Backup Cisco Config
How to Install Ansible Tower
Ansible Network Automation Training
Resources

Python

Best way to learn Python

Home Office

Best Vertical Mouse
My Standing Desk
Folding Laptop Stand - Roost
How to clean computer screen and keyboard

Personal Development

How to Focus
Disclaimer | Privacy Policy | Copyright rogerperkin.co.uk 2018 | Sitemap