< Home

service-ip-port

Function

The service-ip-port command configures the IP address and port number of an HSB channel.

The undo service-ip-port command deletes the IP address and port number of an HSB channel.

By default, the IP address and port number of an HSB channel are not configured.

Format

service-ip-port local-ip { local-ipv4-address | local-ipv6-address } peer-ip { peer-ipv4-address | peer-ipv6-address } local-data-port local-port peer-data-port peer-port

undo service-ip-port local-ip { local-ipv4-address | local-ipv6-address } peer-ip { peer-ipv4-address | peer-ipv6-address } local-data-port local-port peer-data-port peer-port

Parameters

Parameter

Description

Value

local-ip { local-ipv4-address | local-ipv6-address }

Specifies the local IPv4 or IPv6 address of the HSB service.

  • local-ipv4-address: The value is in dotted decimal notation.
  • local-ipv6-address: The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X.

peer-ip { peer-ipv4-address | peer-ipv6-address }

Specifies the peer IPv4 or IPv6 address of the HSB service.

  • peer-ipv4-address: The value is in dotted decimal notation.
  • peer-ipv6-address: The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X.

local-data-port local-port

Specifies the local port number of the HSB service.

The value is an integer that ranges from 10240 to 49152.

peer-data-port peer-port

Specifies the peer port number of the HSB service.

The value is an integer that ranges from 10240 to 49152.

Views

HSB service view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After you create an HSB service using the hsb-service command, run the service-ip-port command to configure IP addresses and port numbers for the local and peer devices. When the configuration is complete, the HSB service establishes a Transmission Control Protocol (TCP) channel to transmit packets of other services and notifies service modules of link status changes.

Prerequisites

An HSB service has been created.

Precautions

It is recommended that the HSB channel be configured on an independent and highly reliable physical link.

Example

# Configure IP addresses and port numbers for the local and peer devices for the HSB service 0.

<HUAWEI> system-view
[HUAWEI] hsb-service 0
[HUAWEI-hsb-service-0] service-ip-port local-ip 192.168.1.1 peer-ip 192.168.1.2 local-data-port 10240 peer-data-port 10240
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >