Assigning an IP address to an interface

About manual IP address assignment

An interface can have one primary address and multiple secondary addresses.

Typically, you need to configure a primary IP address for an interface. If the interface connects to multiple subnets, configure primary and secondary IP addresses on the interface so the subnets can communicate with each other through the interface.

Restrictions and guidelines

Procedure

  1. Enter system view.

    system-view

  2. Enter interface view.

    interface interface-type interface-number

  3. Assign an IP address to the interface.

    ip address ip-address { mask-length | mask } [ sub ]

    By default, no IP address is assigned to the interface.