Adding multiple virtual interfaces on a non global zone.

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
# 1  
Adding multiple virtual interfaces on a non global zone.

Hello All,
I have a requirement to add multiple virtual interfaces on a non-global zone (Solaris 10). The global zone is a 2 node Veritas Cluster Server. So, my question is do we have to make any modifications to the cluster config (which I think should not be the case)? Can anyone help with me the steps for adding the interfaces?

# zoneadm list -iv
0 global running / native shared
2 mach41 running /zones/mach41 solaris9 shared
- mach35 installed /zones/mach35 solaris9 shared

# hastatus -sum
-- System State Frozen
A mach72 RUNNING 0
A mach73 RUNNING 0
-- Group System Probed AutoDisabled State
B ClusterService mach72 Y N OFFLINE
B ClusterService mach73 Y N OFFLINE
B NetworkSG mach72 Y N ONLINE
B NetworkSG mach73 Y N ONLINE
B mach35 mach72 Y N OFFLINE
B mach35 mach73 Y N ONLINE
B mach41 mach72 Y N ONLINE
B mach41 mach73 Y N OFFLINE

As can be seen from the above command output, I need to add virtual interfaces to the systems mach35 and mach41.

Thanks in advance.

# 2  
Do you use VCS for controlling the zone? Unless VCS has to control/monitr the interface I see no reason why you have to add configuration on VCS. Treat your virtual machine as a physical machine and configure virtual interface. When you boot a zone, interfaces will be started.
Create hosyname.{interface}:1 file with IP address required and restart zone.
to setup virtual IP on runnign zone
ifconfig {interface}:1 plumb
ifconfig {interface:1  {IP} netmask {mask} up

# 3  
If you want to add a virtual interface to a zone, you do it with the zonecfg command. If you also want the interface to be set without waiting for a zone reboot, use the ifconfig command that way:

ifconfig ce0 addif zone zonename netmask up

# 4  
Thanks a lot to all of you for helping me with this.

The reason for having VCS is that the local zones host internet sites. Hence having VCS would have high availability.

My concern is when I add the virtual interfaces as suggested by Jlliagre, will the zones file be updated?

"ifconfig ce0 addif zone zonename netmask up"

# 5  
As I wrote but perhaps it wasn't clear enough, they aren't updated. You need to use the zonecfg command to have the zone files updated (or directly edit them).
# 6  
Ok, so I intend to do the following:

# zonecfg -z <zonenname>
then add net; insert the ip addresses;verify and commit.

I would then manuall copy the /etc/zones/zones.xml file to the other node to have the same copy of the zone.

Now my question is, once I make these changes, will the newly added ip addresses be plumbed on my local zones? Does giving an "ifconfig -a" on the global zone will show the newly added ip addresses as wel? Also in an event, that the cluster failovers (global zone), will the newly added ip addresses be shown as up in the other node?

Thanks for showing patience with me Smilie

# 7  
I was answering about how to add multiple interfaces on a non global zone.
I have no idea about if it is supported or not with any clustering software. You might better ask to your software vendor about it to make sure it doesn't have side effects.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #715
Difficulty: Easy
A stored-program computer is a computer that stores program instructions on external hard drives..
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

Virtual Terminal (Console) showing non-global zone?

Hope that everyone is doing well today. Happy Friday. I am running an illumos (opensolaris) based system which is like SmartOS, OmniOS, and OpenIndiana I have been searching all over the Internet into various documents and forms that have to do with Solaris, Opensolaris, Illumos, and SmartOS... (3 Replies)
Discussion started by: LonnieTC
3 Replies

2. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

3. Solaris

Date and time change in global and non global zone

Hi, If I change date and time in global zone, then it will affect in non global zones. During this process what files will get affect in non global zones and which mechanism it's using to change. gloabl zone:Solaris 11.3 X86 TIA (1 Reply)
Discussion started by: Sumanthsv
1 Replies

4. Solaris

Global and non-global zone resource sharing - tricky

hi all, Just a simple question but i cant get the answers in the book - In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Discussion started by: javanoob
6 Replies

5. Solaris

Scripting changes to multiple zone configurations in the same Global Zone

So this is Solaris 11.1. I have a Global zone that has several non-global zones running in it. I want to change the capped-memory.physical resources setting in ALL the zone configs of the running zones. if I were to do this manually here's what I would do: zonecfg -z zone1 select... (2 Replies)
Discussion started by: os2mac
2 Replies

6. Solaris

Interfaces and Virtual-interfaces queries

Hi Al, In course of understanding networking in Solaris, I have these doubts on Interfaces. Please clarify me. I have done fair research in this site and others but could not be clarified. 1. In the "ifconfig -a" command, I see many interfaces and their configurations. But I see many... (1 Reply)
Discussion started by: satish51392111
1 Replies

7. Solaris

ZFS adding new filesystems to a non-global zone

Hi Guys I have one Global Zone and 2 non-global zones. root@solar109 # zoneadm list -icv ID NAME STATUS PATH BRAND IP 0 global running / native shared 20 solar109b running ... (1 Reply)
Discussion started by: fryzh
1 Replies

8. Solaris

How to access ENV variables of non global zones in global zone???

Hi Guys, My requirement is I have file called /opt/orahome/.profile in non global zone. PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:. export PATH PS1="\${ORACLE_SID}:`hostname`:\$PWD$ " export PS1 EDITOR=vi export EDITOR ENV=/opt/orahome/.kshrc export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies

9. Solaris

[b]How to mount a folder from global zone to non global zone??

Hi All There is one folder in global zone I just want to share the same folder innon global zone. How can i do it? pls send me script for this. (2 Replies)
Discussion started by: vijaysachin
2 Replies

Featured Tech Videos