< Home

source ip

Function

The source ip command configures the IPv4 address and port number used by a switch to communicate with the NMS through NETCONF.

The undo source ip command deletes the IPv4 address and port number used by a switch to communicate with the NMS through NETCONF.

By default, no IPv4 address and port number are configured for a switch to communicate with the NMS through NETCONF.

Format

source ip { ip-address [ vpn-instance vpn-instance-name ] | interface interface-type interface-number } [ port port-number ]

undo source ip

Parameters

Parameter Description Value

ip-address

Specifies the IPv4 address of a switch.

The value is in dotted decimal notation.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance to which the IPv4 address of the switch belongs.

The value must be an existing VPN instance name.

interface interface-type interface-number

Specifies the interface to which the IPv4 address used by the switch belongs.

The interface must be an existing Layer 3 interface on the switch.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

port port-number

  • This parameter is the port number used by the switch in NETCONF over SSH Callhome mode.
  • This parameter is the port number used by both the switch and NMS in NETCONF over SSH mode.

The value is 830 or an integer in the range 55552 to 55807. The default value is 830.

Views

NETCONF view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If the NMS needs to configure and manage a switch using NETCONF, run the source ip command to configure the IPv4 address and port number used by the switch to communicate with the NMS, regardless of whether the NETCONF over SSH or NETCONF over SSH Callhome mode is used.

Precautions

When you run the source ip command to configure or change the port number for IPv4 communication between the switch and NMS, the port number for IPv6 communication between the two systems configured using the source ipv6-address command will be changed accordingly.

Changing the IPv4 address or port number will cause communication interruption between the switch and NMS.

Example

# Set the IPv4 address and port number used by the switch to communicate with the NMS through NETCONF to 10.1.1.1 and 55555, respectively.

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