ipadm: cannot create interface net1: Operation failed
-
Full Error:
ipadm: cannot create interface net1: Operation failedAction:
# ipadm create-ip net1 ipadm: cannot create interface net1: Operation failed
Fix/Solution/Reason:
Display the data links.# dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up 1000 full e1000g0
There is no net1 physical interface (data link).
If you add another network adapter to the server, then display the data links again:
$ dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up 1000 full e1000g0 net1 Ethernet unknown 0 unknown e1000g1
Display the interfaces again.
$ ipadm show-if IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes -- net0 ip ok yes --
Try creating the interface again, after adding another network adapter.
$ sudo ipadm create-ip net1 $ sudo ipadm show-if IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes -- net0 ip ok yes -- net1 ip down no --
You can go onto configure your interface.
© Lightnetics 2024