You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Enable a replication agreement.
$ dsconf -h host -p port enable-repl-agmt suffix-DN consumer-host:consumer-port |
For example:
$ dsconf -h host2 -p 1389 enable-repl-agmt dc=example,dc=com host1:1389 |