4 Replies Latest reply: May 15, 2019 3:52 AM by Sergey RSS

    BGP: % Specify remote-as or peer-group commands first


      Hi Folks,


      I'm haunted by this error again and again, but still i do not know the root cause of this error: % Specify remote-as or peer-group commands first


      I'm just taking a example here and not the whole config as i just need to know the cause of the error.


      for example lets take a simple config statement as below:


      R3(config)#route-map SECONDARY_T1_IN permit 10

      R3(config-route-map)#set local-preference 150


      R3(config-route-map)#router bgp 64512

      R3(config-router)#neighbor route-map SECONDARY_T1_IN in

      % Specify remote-as or peer-group commands first


      As per my knowledge:

      ---> this occurs when someone attempts to configure an invalid IP address as a BGP peer - after that you are unable to create any additional peers as you get the error message "*% Create the peer-group first".


      Does this error occurs if we do not config the cmd::


      R3(config-route-map)#router bgp 64512

      R3(config-router)#neighbor remote-as <>


      Please ask more questions if you've, if not understood.


      Kind regards,