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.
# dladm show-eoib
# 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.
# ipadm delete-ip interface
# dladm delete-eoib link
# dladm show-eoib link
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'