Configuring interface in zone


 
Thread Tools Search this Thread
Operating Systems Solaris Configuring interface in zone
# 1  
Old 03-02-2010
Configuring interface in zone

Hi All,

Please help me in configuring interface in zone

I've zone with dedicated interface and I want this interface to get up with global system boot. I am struggling with IP, as always after reboot interface is not getting up automatically and I understand the reason for that. As solution I create file /etc/hostname.bge1 and entered the name of zone name and in /etc/hosts I added the ip with zonename. However when system is getting up, it assign the ip to global zone as second interface.

Where am I going wrong?

Thanks in advance for all your help / suggestions
# 2  
Old 03-02-2010
If your zone is configured with an exclusive IP, then the interface comes up with the nonglobal zone and is usable in the nonglobal zone only, which is indicated by the zone property in the output of ifconfig in the global zone:

Code:
e1000g1: flags=...
        zone myzone
        inet ...

In theory it is possible that an interface comes up in the global zone at system boot and later it is assigned to the non-global zone when it comes up. But I don't know, if the zone boot process supports this or requires the interface to be down or even unplumbed when the nonglobal zone is booted.
# 3  
Old 03-02-2010
Quote:
Originally Posted by hergp
If your zone is configured with an exclusive IP, then the interface comes up with the nonglobal zone and is usable in the nonglobal zone only, which is indicated by the zone property in the output of ifconfig in the global zone:
Actually not. The "zone myzone" flag would appear only for shared-IP interfaces. Exclusive IP interfaces are not visible from the global zone.

kumarmani: If you really use an exclusive IP interface, you need to set it in the zone itself, not on the global one, i.e. /zonepath/root/etc/hostname.<ifname> in the zone filesystem.
# 4  
Old 03-02-2010
Your are right, jlliagre. Doesn't seem to be my day today Smilie
# 5  
Old 03-03-2010
Thanks jlliagre, it does help.

However the other issue what I have right now is the interface is not getting up automatically. I mean even though in zone I check autoboot = true after rebbot zone is not booting automatically, I mean after every reboot zone goes to installed stage and I start gatting error for zone interface like below [/FONT]

Code:
zoneadmd[2422]: [zone 'testzone'] WARNING: skipping network interface 'bge1' which may not be present/plumbed in the global zone.: No such device or address[/FONT]

zone configuration information is below

root@unixtest # zonecfg -z testzone info
zonename: testzone
zonepath: /zone/testzonme
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
[FONT=Arial]scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 172.24.2.156
physical: bge1
root@unixtest #

Thanks again!
# 6  
Old 03-03-2010
Your zone wasn't configured as exclusive IP in the first place:
Quote:
ip-type: shared
# 7  
Old 03-04-2010
Hi Jlliagre,

I change the ip-type from shared to exclusive, after that I edited the <zonepath>/etc/hosts to add the ip of zone and hostname.<interface name> where I added the name of zone. Till if I go to zone and execute ifconfig –a all I can see is lo0 and not the interface I added.

root@unixtest # zonecfg -z testzone info
zonename: testzone
zonepath: /zone/testzone
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: exclusive
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
Note : I did rebooted the system after above change.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Configuring zone and LDOM boot order

Is anyone aware of a method of configuring the boot order of zones and or LDOMS? (2 Replies)
Discussion started by: os2mac
2 Replies

2. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

3. Solaris

Solaris 9 zone wont boot - interface in use

We have a Solaris 10 system with a solaris 9 branded zone. Trying to create a new lo interfaces i ended up rebooting the zone. The zone will not come up, it ran fine before i tried this. When i run the zoneadm -z zone-s9 boot command i get "zoneadm: zone 'zone-s9': lo0:2: could not bring... (4 Replies)
Discussion started by: oly_r
4 Replies

4. Solaris

Zone failes to boot due to mount issue, dir exists in zone.

I have two physical servers, with zones that mount local storage. We were using "raw device" in the zonecfg to point to a metadevice on the global zone (it was not mounted in the global zone at any point). It failed to mount on every boot because the directory existed in the zone. I... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

5. SCO

Change SCO - GUI or Desktop interface to DOS based interface

Hi all I have installed a demo version of SCO OpenServer 5.0.2, I finally found it is Desktop Interface, I would like to know how to change its interface to dos based interface? If you have any ideas, please tell me then. Thank you (2 Replies)
Discussion started by: TinhNhi
2 Replies

6. Solaris

How to assign a dedicated network interface to a non-global zone?

We got a network card(e1000g0) with 1gb of speed and working with global zone. We got a new network interface card, we have to place that in slot and we have to use that card as dedicated network interface to the non-global zone(hyd_app) in V890. As i never done this before, please explain me... (2 Replies)
Discussion started by: Sesha
2 Replies

7. Solaris

Command line Interface or GUI Interface not shown on solaris

Dear all, I am a newbie in solaris and I need your advice. I have a Solaris version 5.9 installed on Sunfire V240. I am able to ssh the machine from putty remotely. My problem is that I cannot see the display from KVM switch I have connected to it. I need also to be able to see the GUI... (2 Replies)
Discussion started by: mbouster
2 Replies

8. UNIX for Dummies Questions & Answers

Configuring networking interface on Sun Blade 1500

Hi, I am attempting to configure my ethernet interface on a Sun Blade 1500. I am testing out my network interface my connecting a crossover cable from my blade to a windows box. I would like to assign an ip address of 10.0.0.2 to "bge0" and netmask of "255.0.0.0". I have typed the following: ... (1 Reply)
Discussion started by: annointed3
1 Replies
Login or Register to Ask a Question