[OpenIndiana-discuss] Change IP Address for a zone.

DormitionSkete@hotmail.com dormitionskete at hotmail.com
Fri Mar 15 06:09:23 UTC 2013


Thank you!  Unfortunately, though, all the Oracle docs are about as clear as mud.  

I want to change routert3.vnic0 from 192.168.0.41 to 192.168.0.3

I don't see a way to set that with ipadm.  Do I have to delete the entire interface and recreate it?

I'd appreciate your help!


root at routert3.ds:~# ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
routert3.vnic0/_a static   ok           192.168.0.41/24
routert3.vnic3/_a static   ok           192.168.3.41/24
lo0/v6            static   ok           ::1/128
root at routert3.ds:~# 

root at routert3.ds:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
routert3.vnic0: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 1500 index 2
        inet 192.168.0.41 netmask ffffff00 broadcast 192.168.0.255
        ether 2:8:20:44:2d:2b 
routert3.vnic3: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 9000 index 3
        inet 192.168.3.41 netmask ffffff00 broadcast 192.168.3.255
        ether 2:8:20:85:52:36 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128 
root at routert3.ds:~# 



On Mar 14, 2013, at 11:37 PM, Jussi Hamalainen wrote:

> On Thu, 14 Mar 2013, DormitionSkete at hotmail.com wrote:
> 
>> It looks like I am going to have to change the IP Address for one of my zones.
>> 
>> I'm using "ip-type=exclusive", so I can't just change it with zonecfg, like I would if it was "shared".
> 
> A zone with ip-type=exclusive acts just like the global zone as far as networking goes. You should use the ipadm command to change your zone's IP address and the route command to set a new default gateway if required.
> 
> There is absolutely no need to unconfigure the zone due to a simple IP address change.
> 
> --
> Jussi
> 
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 




More information about the OpenIndiana-discuss mailing list