Zones and interfaces

Thread Tools Search this Thread
Operating Systems Solaris Zones and interfaces
# 1  
Old 06-08-2011
Zones and interfaces

can someone please suggest if is possible to use different net interfaces
for non global zones ?

for example ,
bash-3.00# uname -srv
SunOS 5.10 Generic_137137-09

bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet netmask ffffff00 broadcast
        ether 0:21:28:27:e1:d2

but ,
i have three other unused interfaces

bash-3.00# dladm show-link
e1000g0         type: non-vlan  mtu: 1500       device: e1000g0
e1000g1         type: non-vlan  mtu: 1500       device: e1000g1
e1000g2         type: non-vlan  mtu: 1500       device: e1000g2
e1000g3         type: non-vlan  mtu: 1500       device: e1000g3

Is it possible to configure 2 non global zones on this system and
assign them for example for zone1 -> e1000g1 and for zone2-> e1000g2 ?
# 2  
Old 06-08-2011
If you are using Solaris 10 8/07 or newer (cat /etc/release), the simplest way is to set-up exclusive IP non global zones.
This User Gave Thanks to jlliagre For This Post:
# 3  
Old 06-08-2011
with shared ip type:

zonecfg -z yourzonename
> create -b
> set zonepath=/zones/yourzonename
> set autoboot=true
> set ip-type=shared
> add net
> set address=
> set defrouter=
> set physical=e1000g1
> end
> verify
> commit
> exit

This User Gave Thanks to styno For This Post:
# 4  
Old 06-08-2011
it seems i will need to use already configured interface, e1000g0,
for the new two zones.
I have the IP adresses i should use for the zones,
but i am in doubt how to assing those adresses to the zones and to the e1000g0 interface..
Can someone give me a hint ?
# 5  
Old 06-08-2011
Then you have no choice but using shared IP interfaces. Just do like styno suggested but specify
set physical=e1000g0

This User Gave Thanks to jlliagre For This Post:
# 6  
Old 06-10-2011
ok thanks
Can you please tell me procedure how to create whole root zone with shared IP interfaces,
note that i am on zfs...
Also is there some requrenments to edit /etc/vfstab after of before creating the zones ?
# 7  
Old 06-10-2011
First link from Google looks good: Create Full Root Solaris Zone
This User Gave Thanks to bartus11 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Virtual etc interfaces??

So after getting a Nagios plugin up and running that checks certain things including network interfaces, I get an error off the one box I built (as opposed to all of the others that were built by a former employee). The error complains of the "NIC logical group" failing. All the boxes are HP... (7 Replies)
Discussion started by: xdawg
7 Replies

2. Solaris

can't see other interfaces

Hi Guys, I have a Netra240 server with four interfaces. However, when I ran this command dladm show-dev it showed only one interface bge0. Can someone please explain to me how to fix this problem? Thanks guys. (1 Reply)
Discussion started by: cjashu
1 Replies

3. 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

4. UNIX Desktop Questions & Answers

Could you explain these Interfaces????

Hi friends, I am abit confused regarding these interfaces, hope you could clearify everything, and differentiate between them, with examples? 1. Graphical User Interface(GUI) 2. Text User Interface(TUI) 3. Character User Interface(CUI) 4. Commandline Interface(CLI) 5. Text-based User... (1 Reply)
Discussion started by: gabam
1 Replies

5. UNIX for Dummies Questions & Answers


i need a one liner command that writes in /var/log/net.log the date when i connect to the network and when i disconect ..i know that i need to write somethin in /etc/network/interfaces but idk what ! please help (1 Reply)
Discussion started by: g0dlik3
1 Replies

6. UNIX for Dummies Questions & Answers

Unix Interfaces

What is Programmer Interface in UNIX. I do have this question in my Syllabus. Can Anyone Please help. Thanks in Advance... (1 Reply)
Discussion started by: m.vinay
1 Replies

7. Solaris

Network Interfaces

I got second IOU in my M5000 but not able bring internal network interfcae .. ike i don't get link on those 2 interfaces .. and the same network cable plugged in PCI network card it works like a charm Is there any special way to enable the internal IOU interfaces or i have bad nics ? (8 Replies)
Discussion started by: fugitive
8 Replies

8. Solaris

Interfaces do not failover

Would anyone know why a V440 Solaris 9 machine's interfaces (ce0 and ce1) will not failover? Both interfaces are on the same subnet, but different IPs. I can pull the plug on once interface (ce0) and ce1 will be accessible. I can reverse it and pull ce1, and ce0 will NOT be accessible. ... (5 Replies)
Discussion started by: StorageGuy
5 Replies

9. UNIX for Dummies Questions & Answers


Hello, which network interface i must sellect during the solaris9 installation le0 or hme0 ? this system is part of the network, it is a standalone system and is not on any domain. thanks for your help, em (1 Reply)
Discussion started by: emsakopa
1 Replies

10. UNIX for Advanced & Expert Users

Hme0 interfaces...

How do you configure more than one network on a single hme0 interface under SunOS? And why would you want to do this? Thanx :) -Michelle (1 Reply)
Discussion started by: Michelle1977
1 Replies
Login or Register to Ask a Question