< Home

controller ip-address

Function

The controller ip-address command configures an IP address for iMaster NCE-Campus.

The undo controller ip-address command deletes the IP address configured for iMaster NCE-Campus.

By default, no IP address is configured for iMaster NCE-Campus on a switch.

Format

controller ip-address ip-address port port-number

undo controller ip-address

Parameters

Parameter Description Value

ip-address

Specifies an IP address for iMaster NCE-Campus.

The value is in dotted decimal notation.

port port-number

Specifies a port number.

The value is an integer in the range 0 to 65535.

Views

NETCONF view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The switch needs to register with iMaster NCE-Campus for authentication in NETCONF over SSH Callhome mode. Before registration authentication, the switch needs to obtain the IP address of iMaster NCE-Campus for communication with iMaster NCE-Campus. The switch can obtain the IP address of iMaster NCE-Campus through DHCP or the registration query center, or you can configure an IP address for iMaster NCE-Campus using the controller ip-address command.

Precautions

  • If the switch obtains the IP addresses of iMaster NCE-Campus using all the three methods, the IP addresses are sorted in descending order of priority as follows: IP address obtained using DHCP, IP address configured using the command, and IP address obtained through the registration query center.

  • If you run this command multiple times, only the latest configuration takes effect.

  • When both the controller ip-address command and the controller url command are configured on the switch, only the latest command takes effect. That is, the switch registers with iMaster NCE-Campus using either the IP address of iMaster NCE-Campus or the IP address resolved from the URL of iMaster NCE-Campus.

  • If a switch that has registered with a iMaster NCE-Campus needs to register with another iMaster NCE-Campus, restart the switch before the re-registration.

Example

# Configure an IP address for iMaster NCE-Campus.

<HUAWEI> system-view
[HUAWEI] netconf
[HUAWEI-netconf] controller ip-address 10.1.1.1 port 10020
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >