Re: [OmniOS-discuss] Renaming an interface

2017-12-19 Thread Andy Fiddaman

On Tue, 19 Dec 2017, Software Information wrote:

; Hi All
; I tried to rename an interface with the command *dladm rename-link e1000g0
; net0*
; and I got the error *rename operation failed: link busy. *This happens even
; after I down or disable the interface either with* ifconfig e1000g0* down
; or *ipadm disable-addr -t e1000g0/v4*
;
; How can I work around this issue or is it something I am overlooking?

You will have to delete both the address and the interface via ipadm.

For example:

ipadm delete-addr e1000g0/v4
ipadm delete-if e1000g0
dladm rename-link e1000g0 net0
ipadm create-if net0
ipadm create-addr -T static -a local=x.x.x.x/xx net0/v4

Regards,

Andy

-- 
Citrus IT Limited | +44 (0)333 0124 007 | enquir...@citrus-it.co.uk
Rock House Farm | Green Moor | Wortley | Sheffield | S35 7DQ
Registered in England and Wales | Company number 4899123

___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss


[OmniOS-discuss] Renaming an interface

2017-12-19 Thread Software Information
Hi All
I tried to rename an interface with the command *dladm rename-link e1000g0
net0*
and I got the error *rename operation failed: link busy. *This happens even
after I down or disable the interface either with* ifconfig e1000g0* down
or *ipadm disable-addr -t e1000g0/v4*

How can I work around this issue or is it something I am overlooking?

Regards.
SI
___
OmniOS-discuss mailing list
OmniOS-discuss@lists.omniti.com
http://lists.omniti.com/mailman/listinfo/omnios-discuss