[OpenIndiana-discuss] Change IP Address for a zone.
DormitionSkete@hotmail.com
dormitionskete at hotmail.com
Fri Mar 15 07:51:33 UTC 2013
All it says is "routert3.ds".
I've searched, not only the zone, but the entire server, for files containing the IP Address. If I remember right (it's 2:00 AM here), the only file that has it is the /etc/hosts files. Certainly nothing helpful. It really makes me wonder where all the dladm info is stored.
Thanks anyway. I appreciate it.
I should probably try to get some sleep, and if nobody knows how to do it, I'll just rebuild the zone. No point in making it harder than it has to be... even if it would be nice to know.
Fun!!!
[]:-)
On Mar 15, 2013, at 1:38 AM, ironsides.medvet at gmail.com wrote:
> You wouldn't happen to have a hostname.routert3.vnic0 file in /etc, by any chance?
>
> If I'm not wrong, that should contain an IP address if that were the case, reverting you to the original IP when you boot the zone.
>
> Just a thought.
>
> Bryan
> Sent from my BlackBerry® wireless device from WIND
>
> -----Original Message-----
> From: "DormitionSkete at hotmail.com" <dormitionskete at hotmail.com>
> Date: Fri, 15 Mar 2013 01:33:36
> To: Discussion list for OpenIndiana<openindiana-discuss at openindiana.org>
> Reply-To: Discussion list for OpenIndiana <openindiana-discuss at openindiana.org>
> Subject: Re: [OpenIndiana-discuss] Change IP Address for a zone.
>
> Maybe I'm doing something wrong, but when I try this in the routert3 zone:
>
> ipadm delete-if routert3.vnic0
> ipadm create-addr -T static -a 192.168.0.42/24 routert3.vnic0/v4static
>
> (Changing it to 42 instead of 3, for now.)
>
> And I reboot the zone, I get:
>
> 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
> routert3.vnic0/v4static static disabled 192.168.0.42/24
> root at routert3.ds:~#
>
> Then if I delete it:
>
> root at routert3.ds:~# ipadm delete-if routert3.vnic0
>
> And reboot the zone, I end up right where I started:
>
> 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:~#
>
>
>
> On Mar 15, 2013, at 12:09 AM, DormitionSkete at hotmail.com wrote:
>
>> 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
>>>
>>
>>
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
More information about the OpenIndiana-discuss
mailing list