add interface-alias

Description

Associate more than one IP address to a network interface.

Syntax

add interface-alias alias-physical-port <alias-physical-port> [ ipv4-address <ipv4-address> ] [ {mask-length <mask-length> | subnet-mask <subnet-mask> } ]

Parameters

Parameter

Description

alias-physical-port

The physical port used by the alias network. Separate networks only

A string that contains these characters:

  • a-z (lower-case letters)

  • A-Z (upper-case letters)

  • 0-9 (digits)

  • '.' (period)

  • '-' (minus)

  • '_' (underscore)

  • '/' (slash)

ipv4-address

Enter the IP address of the interface

mask-length

Represents the network's mask length

subnet-mask

The subnet mask of the specified network

A subnet mask, or 255.255.255.255

Example

add interface-alias alias-physical-port My_Network ipv4-address 192.168.1.1 mask-length 20