Managing Devices in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Remove an EoIB Datalink

You can remove an existing EoIB datalink that has no IP interfaces, VLANs, or VNICs currently built over it. The following procedure removes the EoIB datalink eib1 created in the previous procedure.

  1. Become an administrator.
  2. Identify the EoIB datalink to remove.
    # dladm show-eoib
  3. Verify that no VNICs, VLANs, and IP interfaces are built over the EoIB datalink.
    # dladm show-vlan link
    # dladm show-vnic -l link
    # dladm show-if interface

    where link is the EoIB datalink you want to remove and interface is the IP interface that might be configured over the EoIB datalink. Typically, the interface name is identical with the datalink name over which the interface is created.

  4. Remove any interfaces built over the EoIB datalink.
    # ipadm delete-ip interface
  5. Remove the EoIB datalink.
    # dladm delete-eoib link
  6. Verify that the EoIB datalink is removed.
    # dladm show-eoib link
Example 3-15  Removing an EoIB Datalink

In this example, the IP interface is first removed from the datalink eib1 before the datalink itself is removed. No VLANs nor VNICs are configured over the link.

# dladm show-eoib eib1
LINK    GWNAME  GWPORT   GWID FLAGS  SPEED MACADDRESS     OVER
eib1    nm2gw-1 0a-eth-2 1A8  aHnU-- 10000 0:25:8b:60:2:3 ibp1

# dladm show-vlan eib1
dladm: failed to show vlan eib1: object not found
# dladm show-vnic -l eib1
no output generated
# ipadm show-if eib1
IFNAME  CLASS  STATE  ACTIVE  OVER 
eib1    ip     ok     yes     --

# ipadm delete-ip eib1
# dladm delete-eoib eib1
# dladm show-eoib eib1
dladm: non-existent datalink 'eib1'