0

When I in my Router2 add a neighbor, the bellow is my command:

Router2(config-router)#neighbor 12.0.0.1 remote-as 100

you see, I need write two params, one is neighbor address, and the other is its AS number(one IP only can belong to one AS).

but I want to ask a question, because a router only can belong to one AS, it can only have one AS number, why there still need the remote-as number?

2
  • Note that some BGP implementations don't require you to configure the remote-as number. Instead you can just configure whether the neighbor is internal or external. See "getting rid of AS numbers" in blog.ipspace.net/2015/02/… May 16, 2019 at 14:01
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide and accept your own answer.
    – Ron Maupin
    Dec 15, 2019 at 1:10

1 Answer 1

7

cisco documentation says that: "the configuration does not overtly define peers as iBGP or eBGP. Instead, each router examines its own ASN as defined in the router bgp command, and compares that value to the neighbor’s ASN listed in the neighbor remote-as command. If they match, the peer is iBGP; if not,the peer is eBGP."

so you should look at differences between iBGP and eBGP.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.