ip address unnumbered

Use ip address unnumbered to configure the current interface as IP unnumbered to borrow an IP address from the specified interface.

Use undo ip address unnumbered to disable IP unnumbered on the interface.

Syntax

ip address unnumbered interface interface-type interface-number

undo ip address unnumbered

Default

The interface does not borrow IP addresses from other interfaces.

Views

Tunnel interface view

Predefined user roles

network-admin

Parameters

interface interface-type interface-number: Specifies an interface from which the current interface can borrow an IP address.

Usage guidelines

Typically, you assign an IP address to an interface either manually or through DHCP. If the IP addresses are not enough, or the interface is used only occasionally, you can configure an interface to borrow an IP address from other interfaces. This is called IP unnumbered, and the interface borrowing the IP address is called IP unnumbered interface.

Multiple interfaces can use the same unnumbered IP address. If an interface has multiple manually configured IP addresses, only the primary IP address manually configured can be borrowed.

You cannot enable a dynamic routing protocol on the interface that has no IP address configured. To enable the interface to communicate with other devices, you must configure a static route to the peer device on the interface.

Before entering tunnel interface view, make sure the tunnel interface has been created. For information about tunnel interface, see Layer 3—IP Services Configuration Guide.

Examples

# Configure the interface Tunnel 1 to borrow the IP address of VLAN-interface 100.

<Sysname> system-view
[Sysname] interface tunnel 1
[Sysname-Tunnel1] ip address unnumbered interface vlan-interface 100