< Home

ip address unnumbered

Function

The ip address unnumbered command configures IP unnumbered on an interface so that the interface can borrow the IP address from another interface.

The undo ip address unnumbered command cancels the IP unnumbered configuration on an interface.

By default, an interface does not borrow the IP address from another interface.

Only the S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.

Format

ip address unnumbered interface interface-type interface-number [ all-address ]

undo ip address unnumbered

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the numbered interface from which the IP address will be borrowed.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

all-address

Enables an interface to borrow all IP addresses of another interface. This parameter can be configured only in the VLANIF interface view.

-

Views

VLANIF interface view, Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

An IP unnumbered interface can be a VLANIF interface or Tunnel interface. A VLANIF interface can only borrow the IP address of a loopback interface. You can set all-address to configure a VLANIF interface to borrow all the IP addresses of a loopback interface. A Tunnel interface can borrow the IP address of an Ethernet interface, a loopback interface, an Eth-Trunk interface, a VLANIF interface, or a Tunnel interface.

The interface from which the IP address is borrowed must be an L3 interface.

If the interface assigned to an IP unnumbered interface has no IP address, the IP unnumbered interface obtains the IP address 0.0.0.0.

The ip address unnumbered command only configures an interface to borrow the IP address from another interface. Other attributes of the interface that borrows an IP address, such as the enablement of routing protocols, need to be configured separately.

Example

# Configure Tunnel1 to borrow the IP address from LoopBack0.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] ip address unnumbered interface loopback 0

# Configure VLANIF 10 to borrow the IP address from LoopBack1.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] ip address unnumbered interface loopback 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >