Use ip to configure the IP address of the LDAP server.

Use undo ip to restore the default.


ip ip-address [ port port-number ] [ vpn-instance vpn-instance-name ]

undo ip


An LDAP server does not have an IP address.


LDAP server view

Predefined user roles




ip-address: Specifies the IP address of the LDAP server.

port port-number: Specifies the TCP port number of the LDAP server. The value range for the port-number argument is 1 to 65535, and the default value is 389.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance to which the LDAP server belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the server is on the public network, do not specify this option.

Usage guidelines

The LDAP service port configured on the device must be consistent with the service port of the LDAP server.

If you change the IP address and port number of the LDAP server, the change is effective only on the LDAP authentication that occurs after the change.


# Specify the IP address and port number as and 4300 for LDAP server ccc.

<Sysname> system-view
[Sysname] ldap server ccc
[Sysname-ldap-server-ccc] ip port 4300

Related commands

ldap server