BGP: Local Autonomous System

    BGP: Local Autonomous System
    Technology: Routing
    Area: IGP
    Vendor: Cisco
    Software: 12.X , 15.X, IP Base, IP Services
    Platform: Catalyst 3560, 3750, 3850, 4500, 6500, ISR Routers

     

    Functionality of Local Autonomous System allows to hide currently used AS number. Command instructs router to include local AS number in BGP OPEN message instead of AS number specified at routing process. This could be really helpful especially during the AS migration.

     To configure example BGP process that use 200 AS number instead of AS 100 to connect with “Office B” neighbor, use the following command:

    Office A#configure terminal
    Office A(config)#router bgp 100
    Office A(config-router)# neighbor 80.50.0.1 remote-as 101
    Office A(config-router)# neighbor 80.50.0.1 local-as 200 [no-prepend replace-as dual-as]
    Office A(config-router)# neighbor 80.50.0.1 description OfficeB
    Office A(config-router)#exit

    Verification commands:

    Office A#show bgp ipv4 unicast summary
    Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
    80.50.0.1 4 101 5 5 3 0 0 00:01:39 1

    Office A# show bgp ipv4 unicast neighbors 80.50.0.1
    BGP neighbor is 80.50.0.1, remote AS 101, local AS 200, external link
    Description: OfficeB
    Office A# show bgp ipv4 unicast
    Network Next Hop Metric LocPrf Weight Path
    *> 80.80.1.0/24 80.50.0.1 0 0 200 101 i
    *> 80.80.2.0/24 0.0.0.0 0 32768 i

    Extensions:

    Command offers a couple of keyword extensions to influence a final result:

    1. no-prepend – prefixes received from eBGP peer will not have a Local Autonomous System number prepended in our example AS 200.

    Verification commands:

    Office A#show bgp ipv4 unicast
    Network Next Hop Metric LocPrf Weight Path
    *> 80.80.1.0/24 80.50.0.1 0 0 101 i
    *> 80.80.2.0/24 0.0.0.0 0 32768 i

    2. replace-as – prefixes advertised to eBGP peer will not have real process AS number prepended in our example AS 100.

    Verification commands:

    Office B# show bgp ipv4 unicast
    Network Next Hop Metric LocPrf Weight Path
    *> 80.80.1.0/24 0.0.0.0 0 32768 i
    *> 80.80.2.0/24 80.50.0.2 0 0 200 i

    C. dual-as – used to establish BGP peering using local or real AS numbers.

    We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.