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.
source ip { ip-address [ vpn-instance vpn-instance-name ] | interface interface-type interface-number } [ port port-number ]
undo source ip
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.
|
port port-number |
|
The value is 830 or an integer in the range 55552 to 55807. The default value is 830. |
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.