13-Network Management and Monitoring Command Reference

HomeSupportNFVH3C VSRReference GuidesCommand ReferencesH3C VSR Series Virtual Services Routers Command References(V7)-R0618-5W20013-Network Management and Monitoring Command Reference
21-VNF connection commands
Title Size Download
21-VNF connection commands 51.99 KB

VNF connection commands

display vnfm information

Use display vnfm information to display VNF connection information.

Syntax

In standalone mode:

display vnfm information

In IRF mode:

display vnfm information [ slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify an IRF member device, the command displays connection information about the master VNF.

Examples

# Display VNF connection information. In this example, the application scenario is VSG and a Layer 3 connection is already established between a VNF and the VNFM.

<Sysname> display vnfm information

Slot 0:Current connect status: ONLINE

  Connect mode: L3

  VNFM IP: 192.168.120.44

  UDP port: 2093

  Cluster mode: VSG

  Cluster IP: 10.2.3.1

  Borrowed interface: LoopBack1

# Display VNF connection information. In this example, the application scenario is VSG-vPCpeer and a Layer 3 connection is configured between a VNF and the VNFM.

<Sysname> display vnfm information

Slot 0: Current connection status: OFFLINE

  Connection mode: L3

  VNFM IP: 192.168.100.1

  UDP port: 2093

  Cluster mode: VSG-VPCPEER

  Cluster ID: 1

  VSG IP: 192.168.120.2

  Backup device

  Borrowed interface: LoopBack1

Table 1 Command output

Field

Description

Current connection status

Status of the connection:

·     ONLINE—The connection is already established.

·     OFFLINE—The connection is not established yet.

Connection mode

Connection mode:

·     Alone—No VNF connection is configured for the VNF.

·     L2—Layer 2 connection.

·     L3—Layer 3 connection.

 

vnfm interface

Use vnfm interface to configure a Layer 2 VNF connection.

Use undo vnfm to delete a VNF connection.

Syntax

vnfm interface interface-type interface-number

undo vnfm

Default

No Layer 2 VNF connection exists.

Views

System view

Predefined user roles

network-admin

Parameters

interface-type interface-number: Specifies the interface to be used as the source interface of the connection.

Usage guidelines

(In standalone mode.) If you execute this command multiple times, the most recent configuration takes effect.

(In IRF mode.) To configure a connection for a member VNF, specify an interface on the member VNF as the source interface. If you execute this command multiple times and specify interfaces on the same member VNF, the most recent configuration takes effect.

A VNF can connect to a VNFM in only one mode at the same time. The available connection modes depend on the VNFM. VNFM2.0 supports only Layer 2 mode. Tencent VNFM supports only Layer 3 mode.

Examples

# Configure the VNF to use GigabitEthernet 1/0/1 to establish a Layer 2 connection to the VNFM.

<Sysname> system-view

[Sysname] vnfm interface GigabitEthernet 1/0/1

Related commands

display vnfm information

vnfm

Use vnfm to configure a Layer 3 VNF connection.

Use undo vnfm to delete a VNF connection.

Syntax

In standalone mode:

vnfm ip-address [ udp-port udp-number ] [ source-ip ip-address ] [ vpn-instance vpn-instance-name ]

undo vnfm

In IRF mode:

vnfm ip-address [ udp-port udp-number ] [ source-ip ip-address ] [ vpn-instance vpn-instance-name ] [ slot slot-number ]

undo vnfm

Default

No Layer 3 VNF connection exists.

Views

System view

Predefined user roles

network-admin

Parameters

ip-address: Specifies the IPv4 address of the VNFM.

udp-port udp-number: Specifies the UDP port number of the VNFM, in the range of 1 to 65535 The default UDP port number is 2093.

source-ip ip-address: Specifies the IP address to be used as the source IP address of the connection. If you do not specify the source IP address, the system randomly selects the IP address of an interface that can communicate with the VNFM as the source IP address.

vpn-instance vpn-instance-name: Specifies the VPN instance to which the interface that owns the source IP address belongs. The vpn-instance-name argument is a case-sensitive string to 1 to 31 characters. If the interface belongs to the public network, do not specify this option.

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify an IRF member device, you configure a connection for the master VNF. (In IRF mode.)

Usage guidelines

(In standalone mode.) If you execute this command multiple times, the most recent configuration takes effect.

(In IRF mode.) If you specify the slot slot-number option, you must configure a Layer 3 VNF connection for each IRF member device.

A VNF can connect to a VNFM in only one mode at the same time. The available connection modes depend on the VNFM. VNFM2.0 supports only Layer 2 mode. Tencent VNFM supports only Layer 3 mode.

Examples

# Configure the VNF to establish a Layer 3 connection to VNFM 192.168.100.1. The VNFM is using the default UDP port (2093).

<Sysname> system-view

[Sysname] vnfm 192.168.100.1

Related commands

display vnfm information

vnf cluster-mode

Use vnf cluster-mode to set the application scenario to VSG or VSG-NAT and set the relevant parameters.

Use undo vnf cluster-mode to restore the default.

Syntax

vnf cluster-mode [ vsg | vsg-nat ] cluster-ip ip-address tunnel unnumbered interface interface-type interface-number

undo vnf cluster-mode

Default

No IRF fabric operating parameters are set.

Views

System view

Predefined user roles

network-admin

Parameters

vsg: Sets the application scenario to VSG.

vsg-nat: Sets the application scenario to NAT-capable VSG.

cluster-ip ip-address: Specifies the IP address of the IRF fabric to which the VNF belongs.

tunnel unnumbered interface interface-type interface-number: Specifies the interface whose IP address is to be used to establish a tunnel.

Usage guidelines

Before executing this command, you must use the vnfm command to configure a Layer 3 VNF connection.

The following command overwrites each other:

·     vnf cluster-mode vsg.

·     vnf cluster-mode vsg-nat.

·     vnf cluster-mode vsg-vpcpeer.

·     vnf cluster-mode string parameter string.

To change the settings for the parameters in VSG or VSG-NAT scenario, you must perform the following tasks:

1.     Log in to the VNFM configuration management platform.

2.     Remove information about the VNF.

3.     Execute this command again, specifying the new settings for the command.

Examples

# Set the application scenario to VSG and set the relevant parameters.

<Sysname> system-view

[Sysname] vnfm 192.168.100.1

[Sysname] vnf cluster-mode vsg cluster-ip 10.2.0.1 tunnel unnumbered interface LoopBack 1

Related commands

vnfm

display vnfm information

vnf cluster-mode vsg-vpcpeer

Use vnf cluster-mode vsg-vpcpeer to set the application scenario to VSG-vPCpeer and set the relevant parameters.

Use undo vnf cluster-mode to restore the default.

Syntax

vnf cluster-mode vsg-vpcpeer cluster-id string tunnel unnumbered interface interface-type interface-number vsg-ip ip-address [ backup ]

undo vnf cluster-mode

Default

No IRF fabric operating parameters are set.

Views

System view

Predefined user roles

network-admin

Parameters

cluster-id string: Specifies the IP address of the IRF fabric to which the VNF belongs, in the range of 1 to 64.

tunnel unnumbered interface interface-type interface-number: Specifies the interface whose IP address is to be used to establish a tunnel.

vsg-ip ip-address: Specifies the IP address for the VNF to use when the VNF acts as a VSG.

backup: Specifies the VNF as a backup device in the IRF fabric.

Usage guidelines

Before executing this command, you must use the vnfm command to configure a Layer 3 VNF connection.

The following command overwrites each other:

·     vnf cluster-mode vsg.

·     vnf cluster-mode vsg-nat.

·     vnf cluster-mode vsg-vpcpeer.

·     vnf cluster-mode string parameter string.

To change the settings for the parameters in VSG-vPCpeer scenario, you must perform the following tasks:

1.     Log in to the VNFM configuration management platform.

2.     Remove information about the VNF.

3.     Execute this command again, specifying the new settings for the command.

Examples

# Set the application scenario to VSG-vPCpeer and set the relevant parameters.

<Sysname> system-view

[Sysname] vnfm 192.168.100.1

[Sysname] vnf cluster-mode vsg-vpcpeer cluster-id 1 tunnel unnumbered interface Loopback 1 vsg-ip 192.168.120.2

Related commands

vnfm

display vnfm information

vnf cluster-mode parameter

Use vnf cluster-mode string parameter string to set the application scenario to a customized scenario and set the relevant parameters.

to set IRF fabric operating parameters in a customized application scenario.

Use undo vnf cluster-mode to restore the default.

Syntax

vnf cluster-mode string parameter string

undo vnf cluster-mode

Default

No IRF fabric operating parameters are set.

Views

System view

Predefined user roles

network-admin

Parameters

string: Specifies the name of the customized application scenario.

parameter string: Sets the parameter for the customized application scenario.

Usage guidelines

Before executing this command, you must use the vnfm command to configure a Layer 3 VNF connection.

To use a VNF in a customized application scenario, use this command to specify the application scenario and set the relevant parameters. Make sure the configuration commands required for the scenario have been configured on the VNFM.

The following command overwrites each other:

·     vnf cluster-mode vsg.

·     vnf cluster-mode vsg-nat.

·     vnf cluster-mode vsg-vpcpeer.

·     vnf cluster-mode string parameter string.

To change the settings for the parameters in a customized scenario, you must perform the following tasks:

1.     Log in to the VNFM configuration management platform.

2.     Remove information about the VNF.

3.     Execute this command again, specifying the new settings for the command.

Examples

# Set the application scenario to a customized scenario and set the relevant parameters.

<Sysname> system-view

[Sysname] vnf cluster-mode vsg-vpcpeer parameter cluster-id 1 tunnel unnumbered interface Loopback 1 vsg-ip 192.168.120.2

Related commands

vnfm

display vnfm information

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网