Solaris 10 Container with different IP

  • Follow


To create two containers in Solaris 10, do I need to have  two  NIC
cards with two different IPs? Or I can use Virtue IPs with just  one
NIC card?

 If creating container using one NIC card with virtue ips, then if
reboot the container, will it cause the other containers's network
connection drop as well ?

What is the usual way to create containers with different IPs?

Thanks for advices

0
Reply bridge_xue (25) 3/15/2006 1:01:36 AM


bridge_xue@yahoo.com wrote:
> 
> To create two containers in Solaris 10, do I need to have  two  NIC
> cards with two different IPs? Or I can use Virtue IPs with just  one
> NIC card?
> 
>  If creating container using one NIC card with virtue ips, then if
> reboot the container, will it cause the other containers's network
> connection drop as well ?
> 
> What is the usual way to create containers with different IPs?
> 
> Thanks for advices


Hi,

If by containers you're referring to zones, then when you create the
zone and assign it an IP address, it will automatically create an IP
alias.  For example, on my SB100, after creating a couple of zones, and
I do an "ifconfig -a" in the global zone, I see xxx:1, xxx:2, etc. IP
aliases for each zone.

If you reboot a specific zone, no, it does not cause the other zones'
network connection to drop (not as far as I can tell, anyway).


Here's the 'recipe' that I followed when creating my first zones:

http://www.blastwave.org/docs/Solaris-10-b51/DMC-0002/dmc-0002.html

From that webpage, you add the virtual NIC/IP with:

zonecfg:zone1> add net
zonecfg:zone1:net> set address=192.168.35.210
zonecfg:zone1:net> set physical=hme1
zonecfg:zone1:net> end

I think that if you did as above, and went to the global zone, and did
an 'ifconfig -a', you'd see an "hme:1" added, with IP address
192.168.35.210.

Jim
0
Reply ohaya 3/15/2006 1:20:17 AM



bridge_xue@yahoo.com wrote:
> 
> Thanks for reply.
> 
> Does this mean that if I create three zones, then I need three  IPs ?


Hi,

Actually, I think that for 3 zones, you'd presumably need 4 IP
addresses, i.e., 1 for the global zone, and 1 each for the other zones.

Jim
0
Reply ohaya 3/15/2006 3:27:07 AM

Thanks for reply.

Does this mean that if I create three zones, then I need three  IPs ?

0
Reply bridge_xue 3/15/2006 3:27:51 AM

bridge_xue@yahoo.com wrote:
> Thanks for reply.

> Does this mean that if I create three zones, then I need three  IPs ?

If you want them to all use the network, yes.

You could just have a standalone zone that you access only locally, but
I'd imagine that most uses of zones create networks for them.

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
0
Reply Darren 3/15/2006 5:39:35 PM

Darren Dunham schrieb:
> bridge_xue@yahoo.com wrote:
> 
>>Thanks for reply.
> 
> 
>>Does this mean that if I create three zones, then I need three  IPs ?
> 
> 
> If you want them to all use the network, yes.
> 
> You could just have a standalone zone that you access only locally, but
> I'd imagine that most uses of zones create networks for them.
> 

as it have to be for different machines, IPs are unique identifiers and 
zones are like a dedicated machines.

Maybe you are able to build an Proxy Device, which does a sort of NAT to 
outside, but I suposse that could easily break the security shema of 
zones/containers.

Maybe you can set up a box with a HA-Daemon like vrrpd and take over a 
single IP from another host, yust over ethnernet. But also in this case 
you normaly have an admin IF or test IF, which has to be unique.

W.
0
Reply Wolfgang 3/20/2006 9:17:31 AM

5 Replies
562 Views

(page loaded in 0.575 seconds)

Similiar Articles:













7/24/2012 10:44:44 AM


Reply: