29.2.3 Configuring BGP4 + Peering
Command examples
-
(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.
-
(config-router)# bgp router-id 192.168.1.100
Sets the identifier of the local router (192.168.1.100).
-
(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).
-
(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).
-
(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.
-
(config-router)# neighbor 3ffe:10:2:2::2 update-source loopback 0
Sets the device address as the peering address of the local router.
-
(config-router)# neighbor 3ffe:192:168:2::2 remote-as 65531
Configures an internal peer (remote peer address:3ffe:192.168:2::2).
-
(config-router)# neighbor 3ffe:10:1:2::2 remote-as 65531
Configures an internal peer (remote peer address:3ffe:10:1:2::2).
-
(config-router)# neighbor 3ffe:10:1:2::2 update-source loopback 0
Sets the device address as the peering address of the local router.
-
(config-router)# address-family ipv6
Places the router in config-router-af (ipv6) mode.
-
(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).
-
(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).
-
(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).
-
(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).