System Administration Guide: Network Interfaces and Network Virtualization

ProcedureHow to Delete a Data Link

This procedure deletes link configurations that are associated with NICs. If you detach a NIC without intending to replace it, then you can delete the link configuration that is associated with that NIC. After you complete this procedure, the link name can be reused.

  1. On the system with the interfaces to be configured, assume the System Administrator role.

    The System Administrator role includes the Network Management profile. To create the role and assign the role to a user, see Chapter 9, Using Role-Based Access Control (Tasks), in System Administration Guide: Security Services.

  2. Display the data links on the system including those links whose hardware have been removed.

    To include information about removed hardware, use the -P option.

    # dladm show-phys -P
  3. Remove the link configuration of the removed hardware that you do not intend to replace.

    # dladm delete-phys link

Example 2–7 Deleting a Data Link

In the following example, the r flag for net0 indicates that the link's associated hardware (ce) has been removed. Therefore, you can also remove the link net0 and then reassign the name to a new data link.

# dladm show-phys -P
LINK        DEVUCE     MEDIA        FLAGS
mylink0     qfe0       Ethernet     -----
eri0        eri0       Ethernet     -----
net0        ce0        Ethernet     r----

# dladm delete-phys net0