Configuration Guide Vol. 3


29.2.3 Configuring BGP4 + Peering

Command examples

  1. (config)# router bgp 65531

    Sets BGP/BGP4+ as the routing protocol. Specify the AS number (65531) of the autonomous system to which the local router belongs for the parameter.

  2. (config-router)# bgp router-id 192.168.1.100

    Sets the identifier of the local router (192.168.1.100).

  3. (config-router)# neighbor 3ffe:172:16:2::2 remote-as 65532

    Sets the external peer (remote peer address:3ffe:172:16:2::2,AS number:65532).

  4. (config-router)# neighbor 3ffe:10:2:2::2 remote-as 65533

    Configures an external peer (remote peer address:3ffe:10:2:2::2; AS number: 65533).

  5. (config-router)# neighbor 3ffe:10:2:2::2 ebgp-multihop

    Disallows use of the interface address of the interface directly connected to the peer as the peering address.

  6. (config-router)# neighbor 3ffe:10:2:2::2 update-source loopback 0

    Sets the device address as the peering address of the local router.

  7. (config-router)# neighbor 3ffe:192:168:2::2 remote-as 65531

    Configures an internal peer (remote peer address:3ffe:192.168:2::2).

  8. (config-router)# neighbor 3ffe:10:1:2::2 remote-as 65531

    Configures an internal peer (remote peer address:3ffe:10:1:2::2).

  9. (config-router)# neighbor 3ffe:10:1:2::2 update-source loopback 0

    Sets the device address as the peering address of the local router.

  10. (config-router)# address-family ipv6

    Places the router in config-router-af (ipv6) mode.

  11. (config-router-af)# neighbor 3ffe:172:16:2::2 activate

    Enables IPv6 address family for the external peer (remote peer address:3ffe:172:16:2::2).

  12. (config-router-af)# neighbor 3ffe:10:2:2::2 activate

    Enables the IPv6 address family for the external peer (remote peer address: 3ffe:10:2:2::2).

  13. (config-router-af)# neighbor 3ffe:192:168:2::2 activate

    Enables the IPv6 address family for the internal peer (remote peer address:3ffe:192.168:2::2).

  14. (config-router-af)# neighbor 3ffe:10:1:2::2 activate

    Enables the IPv6 address family for the internal peer (remote peer address:3ffe:10:1:2::2).