1

我已经更改了全局区域的 IP。现在我想更改非全局区域。

我使用 zlogin 登录并使用 ipadm delete-addr net0/?

有一个?在 net0/ 后面所以我不能删除和设置新的。

是否有其他方法可以更改此区域的 IP?

4

1 回答 1

1

From the global zone, you might check the output of:

$ dladm | grep <zone-name>
$ dladm show-linkprop <zone-name>/<iface>
zonename/aggr0 allowed-ips rw 10.2.42.142 10.2.42.142 --  -- 

Then, you should be able to change it using:

$ dladm set-linkprop -p allowed-ips=10.x.y.z zonename/aggr0

This might do the trick, I know if you have the link-protection to allow only listed IP address, this will update the list without the need for a reboot.

NOTE: I don't have a test zone available to actually verify this, but I know I already did this once in the past and it actually worked...

于 2015-08-21T07:55:50.747 回答