set interface-alias

In the R81.10.X releases, this command is available starting from the R81.10.00 version.

Description

Configure the settings for an alias IP.

Syntax

set interface-alias <name> [ ipv4-address <ipv4-address> ] [ { mask-length <mask-length> | subnet-mask <subnet-mask> } ] [ state <state> ]

Parameters

Parameter

Description

ipv4 address

Enter the IP address of the interface

mask-length

Represents the network's mask length

name

Network name

A string that contains these characters:

  • a-z (lower-case letters)

  • A-Z (upper-case letters)

  • 0-9 (digits)

  • '.' (period)

  • '-' (minus)

  • '_' (underscore)

  • '/' (slash)

state

The mode of the network - enabled or disabled Options: on, off

subnet-mask

The subnet mask of the specified network Type: A subnet mask, or 255.255.255.255

Example Command

set interface-alias My_Network ipv4-address 192.168.1.1 mask-length 20 state on