Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enable & Disable Network Interface

2,775 views
Skip to first unread message

Ian

unread,
Oct 25, 2016, 8:17:27 AM10/25/16
to
Hi All,

I've got a couple of machines, one solaris10, one solaris11.
Each has two network interfaces.
One interface is used for management, and has a unique ipv4 address.
The second interface is used for production data. Only one of the
machines will be passing production traffic at a time, and the
production interfaces of the two machines will have the same ip address.

Obviously I can't have two machines with the same ip address live at the
same time. I need a way of downing & upping the interfaces as required,
and I need the state to be maintained across reboots.

I've tried "ipadm disable-if net1", but that fails, saying
"ipadm: persistent operation not supported for disable-if"

"ipadm disable-if -t net1" works, but as expected, a reboot enables the
interface.

In addition "ipadm enable-if -t net1" does not bring the interface back
up, I need to use "ifconfig net1 up" as well.

How do I do this?

Thanks.

Casper H.S. Dik

unread,
Oct 25, 2016, 8:50:14 AM10/25/16
to
>I've tried "ipadm disable-if net1", but that fails, saying
>"ipadm: persistent operation not supported for disable-if"

Use ipadm delete-ip

>"ipadm disable-if -t net1" works, but as expected, a reboot enables the
>interface.

>In addition "ipadm enable-if -t net1" does not bring the interface back
>up, I need to use "ifconfig net1 up" as well.

>How do I do this?

ipadm create-ip -t net0
ipadm create-addr -t -T static -a local=192.168.111.111/24 net1


u can also create it permanently and then down it:


ipadm down-addr net1/v4 (whatever the address obnject is)

which you can enable ipadm up-addr

Casper

Ian

unread,
Oct 25, 2016, 9:31:29 AM10/25/16
to
ipadm down-addr net1/v4
ipadm up-addr net1/v4

Exactly this, thank you.



0 new messages