Configuring TCP Ports
You can configure another TCP port for the LDAP servers if there are conflicts with another application. By
default, Cisco NX-OS devices use port 389 for all LDAP requests.
Before you begin
Enable LDAP.
SUMMARY STEPS
1.
configure terminal
2.
[
no
]
ldap-server host
{
ipv4-address
|
ipv6-address
|
hostname
}
port tcp-port
[
timeout seconds
]
3.
(Optional)
show ldap-server
4.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Specifies the TCP port to use for LDAP messages to the
server. The default TCP port is 389. The range is from 1 to
65535.
[
no
]
ldap-server host
{
ipv4-address
|
ipv6-address
|
hostname
}
port tcp-port
[
timeout seconds
]
Example:
Step 2
Optionally specifies the timeout interval for the server. The
range is from 1 to 60 seconds, and the default timeout is
switch(config)# ldap-server host 10.10.1.1 port
200 timeout 5
the global value or 5 seconds if a global value is not
configured.
The timeout interval value specified for an LDAP
server overrides the global timeout interval value
specified for all LDAP servers.
Note
Displays the LDAP server configuration.
(Optional)
show ldap-server
Example:
Step 3
switch(config)# show ldap-server
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 4
switch(config)# copy running-config startup-config
Related Topics
LDAP Server Configuration Process
, on page 109
, on page 110
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
117
Configuring LDAP
Configuring TCP Ports