[indiana-discuss] How do I free an nic from the global zone

Josh joshchang at stat.ucla.edu
Thu Apr 10 22:39:46 PDT 2008


I am running Indiana preview 2 and I would like to create a non-global ip-exclusive zone to use interface iprb0.

I used the following commands to install the zone:

josh at hrtpstore:/# zonecfg -z webserver
webserver: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:webserver> create -t SUNWipkg
zonecfg:webserver> set zonepath=/zones/webserver
zonecfg:webserver> verify
zonecfg:webserver> set autoboot=true
zonecfg:webserver> set ip-type=exclusive
zonecfg:webserver> add net
zonecfg:webserver:net> set physical=iprb0
zonecfg:webserver:net> end
zonecfg:webserver> add device
zonecfg:webserver:device> set match=/dev/iprb0
zonecfg:webserver:device> end
zonecfg:webserver> commit
zonecfg:webserver> exit

When I try to install the zone I get the following message:

josh at hrtpstore:/zones# zoneadm -z webserver install
WARNING: skipping network interface 'iprb0' which is used in the global zone.

josh at hrtpstore:/zones# zoneadm -z webserver boot
WARNING: skipping network interface 'iprb0' which is used in the global zone.
zoneadm: zone 'webserver': WARNING: skipping network interface 'iprb0' which is used in the global zone.: Not owner

josh at hrtpstore:/zones# dladm set-linkprop -t -p zone=webserver iprb0
dladm: warning: cannot set link property 'zone' on 'iprb0': device busy

josh at hrtpstore:/zones# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
	inet 127.0.0.1 netmask ff000000 
bnx0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 7
	inet 10.44.119.177 netmask ffffff00 broadcast 10.44.119.255
	ether 0:1e:4f:23:eb:df 
bnx1: flags=201000802<BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 5
	inet 0.0.0.0 netmask 0 
	ether 0:1e:4f:23:eb:e1 
iprb0: flags=201000842<BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 6
	inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
	ether 0:90:27:8e:95:5b 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
	inet6 ::1/128 


I don't have an entry for iprb0 in my /etc/nwam/llp

Here is output of dladm-showlink:

bnx1     	type: non-vlan	mtu: 1500	device: bnx1
iprb0    	type: non-vlan	mtu: 1500	device: iprb0
bnx0     	type: non-vlan	mtu: 1500	device: bnx0

Thanks in advance.
--

This message posted from opensolaris.org



More information about the indiana-discuss mailing list