Enable BGP and define an EBGP group that recognizes all BGP systems in AS 56 as peers:
- [edit]
- routing-options {
- autonomous-system 23;
- }
- protocols {
-
- bgp {
-
- group 23 {
- type external;
- peer-as 56;
- 0.0.0.0/0;
- }
- }
- }
Enable BGP and define an IBGP group that recognizes only the specified addresses as BGP peers.
- [edit]
- routing-options {
- autonomous-system 23;
- router-id 10.0.0.1;
- }
- protocols {
-
- bgp {
-
- group 23 {
- type internal;
- peer-as 23;
- neighbor 10.0.0.2;
- neighbor 10.0.0.3;
- }
- }
- }
Configure a BGP confederation. Figure 9 illustrates the confederation topology used in this example. For AS 32 to be a valid confederation, all routers in the AS must be members of the confederation. For example, Router B must have a confederation member AS number as well as a confederation AS number. Within a confederation, the links between the confederation member ASs must be EBGP links, not IBGP links.
Figure 9: Example: BGP Confederation Topology

-
On Router A:[edit]
- routing-options {
- autonomous-system 5;
- }
- protocols {
-
- bgp {
-
- group AtoB {
- type external;
- peer-as 32;
- neighbor 10.0.0.2;
- }
- }
- }
-
On Router B:
- [edit]
- routing-options {
- autonomous-system 65500;
- confederation 32 members [65500 65501 65502];
- }
- protocols {
-
- bgp {
-
- group BtoA {
- type external;
- peer-as 5;
- neighbor 10.0.0.1;
- }
-
- group BtoD {
- type external;
- peer-as 65501;
- neighbor 10.0.10.2;
- }
- }
- }
-
On Router C:
- [edit]
- routing-options {
- autonomous-system 65501;
- confederation 32 members [65500 65501 65502];
- }
- protocols {
-
- bgp {
-
- group CtoD {
- type internal;
- neighbor 10.0.10.3;
- }
- }
- }
-
On Router D:
- [edit]
- routing-options {
- autonomous-system 65501;
- confederation 32 members [65500 65501 65502];
- }
- protocols {
-
- bgp {
-
- group DtoC {
- type internal;
- neighbor 10.0.10.1;
- }
-
- group DtoB {
- type external;
- peer-as 65500;
- neighbor 10.0.10.1;
- }
-
- group DtoE {
- type external;
- peer-as 65502;
- neighbor 10.0.30.1;
- }
- }
- }
-
On Router E:
- [edit]
- routing-options {
- autonomous-system 65502;
- confederation 32 members [65500 65501 65502];
- }
- protocols {
-
- bgp {
-
- group EtoD {
- type external;
- peer-as 65501;
- neighbor 10.0.10.4;
- }
-
- group EtoFandG {
- type internal;
- neighbor 10.0.30.2;
- neighbor 10.0.30.5;
- }
- }
- }
-
On Router F:
- [edit]
- routing-options {
- autonomous-system 65502;
- confederation 32 members [65500 65501 65502];
- }
- protocols {
-
- bgp {
-
- group FtoEandG {
- type internal;
- neighbor 10.0.30.3;
- neighbor 10.0.30.7;
- }
- }
- }
-
On Router G:
- [edit]
- routing-options {
- autonomous-system 65502;
- confederation 32 members [65500 65501 65502];
- }
- protocols {
-
- bgp {
-
- group GtoH {
- type external;
- peer-as 37;
- neighbor 10.0.40.1;
- }
-
- group GtoEandF {
- type internal;
- neighbor 10.0.30.4;
- neighbor 10.0.30.5;
- }
- }
- }
-
On Router H:
- [edit]
- routing-options {
- autonomous-system 37;
- }
- protocols {
-
- bgp {
-
- group HtoG {
- type external;
- peer-as 32;
- neighbor 10.0.30.8;
- }
- }
- }