Menu

BGP between Cisco routers on different subnets.

To illustrate this I will use GNS3, i used two Cisco Routers directly different subnets between them.
The topology is very simple:


Starting with the basic configuration, on R1:

NetworkLabs-1(config)#interface FastEthernet0/0
NetworkLabs-1(config-if)# ip address 10.0.1.1 255.255.255.0
NetworkLabs-1(config)# ip route 10.0.2.0 255.255.255.0 FastEthernet0/0

Same thing on R2
 NetworkLabs-2(config)#interface FastEthernet0/0
NetworkLabs-2(config-if)# (config-if)#ip address 10.0.2.1 255.255.255.0
NetworkLabs-2(config-)#ip route 10.0.1.0 255.255.255.0 FastEthernet0/0
 
At this stage we have ping back and forth between both Routers, now to the BGP
 NetworkLabs-1(config)#router bgp 1
NetworkLabs-1(config-router)# neighbor 10.0.2.1 remote-as 2
 NetworkLabs-2(config)#router bgp 2
NetworkLabs-2(config-router)#neighbor 10.0.1.1 remote-as 1
 
At this stage BGP will not come up, it will be stuck on idle state, to make it work all we need is to add " disable-connected-check" on both of the routers
 NetworkLabs-1(config-router)#neighbor 10.0.2.1 disable-connected-check
NetworkLabs-2(config-router)#neighbor 10.0.1.1 disable-connected-check

That's it.


Hope this post was helpful, If it was please consider a donation:
BTC Address: 1CnyMpjd1RntRDxSus2hu2aDMyzL4Kj29N

LTC Address: LUqrKbzGihTU2GEnL3EwsuuLHCsxCJMdtR

7 comments:

  1. The data you have posted is extremely valuable. The locales you have alluded was great. A debt of gratitude is in order for sharing... portable wifi router

    ReplyDelete
  2. Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. wireless router

    ReplyDelete
  3. Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home. best product review sites

    ReplyDelete
  4. I really like your take on the issue. I now have a clear idea on what this matter is all about.. chicago med season 5

    ReplyDelete
  5. This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck. best router for multiple devices

    ReplyDelete
  6. If you don"t mind proceed with this extraordinary work and I anticipate a greater amount of your magnificent blog entries.  Aegean College

    ReplyDelete