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

## Example: Configuration for a Database Community

A community of Juniper Networks databases lets you set up redundancy for client applications that connect to these databases.

This sample configuration describes the tasks for configuring Juniper Networks databases on C Series Controllers:

- Requirements
- Overview and Sample Topology
- Configuration

### Requirements

Software

Minimum SRC Release 1.0.0

Hardware

C2000 or C4000

### Overview and Sample Topology

You configure a number of Juniper Networks databases as members of a community to protect data by replicating data from one database to another, and by specifying relationships between databases to support failover if a database that has the primary role for a set of applications becomes inoperable. This example uses C1 and C2 as databases that have a primary role, and C3 as a database that has a secondary role.

Figure 17 shows the sample configuration.

Figure 17: Sample Community of Juniper Network Databases

The following configuration shows the configuration statements for databases shown in Figure 17.

### Configuration

- Configuring C1
- Configuring C2
- Configuring C3

#### Configuring C1

#### CLI Quick Configuration

To quickly configure a Juniper Networks database, copy the following commands into a text editor, and modify them; then load the configuration from the file.

`

[edit]
set system ldap server community role primary
set system ldap server community primary-neighbors C2
set system ldap server community secondary-neighbors C3

`

#### Step-by-Step Procedure

To configure the C1 system:

1. From configuration mode, access the configuration statement that configures the Juniper Networks database in community mode.
   `
   [edit]
   user@C1# edit system ldap server community
   `
2. Specify the database role as primary.
   `
   [edit system ldap server community]
   user@C1# set role primary
   `
3. Specify primary neighbors.
   `
   [edit system ldap server community]
   user@C1# set primary-neighbors C2
   `
4. Specify secondary neighbors.
   `
   [edit system ldap server community]
   user@C1# set secondary-neighbors C3
   `

#### Configuring C2

#### CLI Quick Configuration

To customize the configuration example for your needs, copy the following commands into a text editor, and modify them; then load the configuration from the file.

`

[edit]
set system ldap server community role primary
set system ldap server community primary-neighbors C1
set system ldap server community secondary-neighbors C3

`

#### Step-by-Step Procedure

To configure the C2 system:

1. From configuration mode, access the configuration statement that configures the Juniper Networks database in community mode.
   `
   [edit]
   user@C2# edit system ldap server community
   `
2. Specify the database role as primary.
   `
   [edit system ldap server community]
   user@C2# set role primary
   `
3. Specify primary neighbors.
   `
   [edit system ldap server community]
   user@C2# set primary-neighbors C1
   `
4. Specify secondary neighbors.
   `
   [edit system ldap server community]
   user@C2# set secondary-neighbors C3
   `

#### Configuring C3

#### CLI Quick Configuration

To customize the configuration example for your needs, copy the following commands into a text editor, and modify them; then load the configuration from the file.

`

[edit]
set system ldap server community role secondary
set system ldap server community primary-neighbors C1 C2

`

#### Step-by-Step Procedure

To configure the C3 system:

1. From configuration mode, access the configuration statement that configures the Juniper Networks database in community mode.
   `
   [edit]
   user@C3# edit system ldap server community
   `
2. Specify the database role as primary.
   `
   [edit system ldap server community]
   user@C3# set role secondary
   `
3. Specify primary neighbors.
   `
   [edit system ldap server community]
   user@C3# set primary-neighbors C1 C2
   `

#### Related Topics

- Enabling the Juniper Networks Database to Run in Community Mode (SRC CLI)
- Configuration Statements for the Juniper Networks Database (SRC CLI)
- Overview of the Juniper Networks Database

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