[Contents] [Prev] [Next] [Index] [Report an Error]


Minimum BGP Configuration

For BGP to run on the router, you must define the local autonomous system (AS) number, configure at least one group, and include information about at least one peer in the group (the peer's IP address and autonomous system [AS] number). There are several possible ways you can configure this information; a few are shown in this section. For routing instances, include the statement at the [edit routing-instances routing-instance-name routing-options] hierarchy level.

Configure a BGP group, specify the group type, and configure an explicit peer:

[edit]
routing-options {
    autonomous-system autonomous-system;
}
protocols {
    bgp { 
        group group-name { 
            peer-as autonomous-system;
            type type;
            neighbor address;
        }
    }
}

Configure a BGP group and type and allow all BGP systems to be peers:

[edit]
routing-options {
    autonomous-system autonomous-system; 
}
protocols {
    bgp { 
        group group-name { 
            type type;
            peer-as autonomous-system; 
            allow all; 
        }
    }
}


When you configure BGP on an interface, you must also include the family inet statement at the [edit interfaces interface-name unit logical-unit-number] hierarchy level. For more information about the family inet statement, see the JUNOS Internet Software Configuration Guide: Network Interfaces and Class of Service.


[Contents] [Prev] [Next] [Index] [Report an Error]