Solaris zone with full working NIC


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris zone with full working NIC
# 1  
Old 10-29-2013
Solaris zone with full working NIC

I want a solaris zone,wich can get ip from dhcp external server
i configure my zone

Code:
net:
    address not specified
    allowed-address not specified
    configure-allowed-address: true
    physical: vnic1
    defrouter not specified

vnic is linked to net0

Code:
dladm
net0                phys      1500   up       --
vnic1               vnic      1500   up       net0
prova2/vnic1        vnic      1500   up       net0

on zone i create vnic1

Code:
ipadm create-ip vnic1
ipadm create-addr -T dhcp  vnic1/v4

et voilą...nothing happen Smilie

Can someone help me please?
Thanks

---------- Post updated at 12:25 PM ---------- Previous update was at 12:13 PM ----------

Work with static address..but i can ping only global
zone and no external net
Of course i added route.
# 2  
Old 10-30-2013
Impossible, to my knowledge, in Solaris 10 without an exclusive aka dedicated interface from the Global zone.

Please see:
https://www.unix.com/solaris/130824-how-make-zone-get-ip-external-dhcp-server.html

It shows how to dedicate a physical interface.

We tried to do the same thing you are trying to do and we're not able to accomplish it.
# 3  
Old 10-31-2013
Thanks,tomorrow i will try.

---------- Post updated 31-10-13 at 10:56 AM ---------- Previous update was 30-10-13 at 07:41 PM ----------

I follow this howto

http://www.alekz.net/archives/449

and make
on global zone
# dladm create-vnic -l net0 vnic1

zone is configured
Code:
ip-type: exclusive

net:
    address not specified
    allowed-address not specified
    configure-allowed-address: true
    physical: vnic1
    defrouter not specified

booting zone and configure as usual the ip
Code:
ipadm create-ip vnic1
ipadm create-addr -T static -a 192.168.0.222/24 vnic1/v4
route add default 192.168.0.1

and...
ping only the global zone Smilie
# 4  
Old 10-31-2013
Can you paste a copy of the zone's xml? (/etc/zones) or
Code:
zonecfg -z ZONENAME export

both would do it.

Code:
ifconfig -a

and
Code:
netstat -rn

from the global and local would also possibly help.

Last edited by plmachiavel; 10-31-2013 at 01:06 PM..
# 5  
Old 10-31-2013
I agree with plmachiavel. unless you set the zone as IP-exclusive and dedicate a physical nic to it you can't use DHCP.
# 6  
Old 11-04-2013
Quote:
Originally Posted by plmachiavel
Can you paste a copy of the zone's xml? (/etc/zones) or
Code:
zonecfg -z ZONENAME export

both would do it.

Code:
ifconfig -a

and
Code:
netstat -rn

from the global and local would also possibly help.
Sure.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<!--
    DO NOT EDIT THIS FILE.  Use zonecfg(1M) instead.
-->
<zone name="prova2" zonepath="/raid1/zones/prova2" autoboot="false" brand="solaris" ip-type="exclusive">
  <network physical="vnic1" configure-allowed-address="true"/>
</zone>

globalzoneifconfig -a

Code:
 ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
net0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 192.168.0.241 netmask ffffff00 broadcast 192.168.0.255
        ether 8:0:27:a5:af:7f 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128 
net0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
        inet6 fe80::a00:27ff:fea5:af7f/10 
        ether 8:0:27:a5:af:7f

route global zone

Code:
 netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface 
-------------------- -------------------- ----- ----- ---------- --------- 
default              192.168.0.1          UG        2         14 net0      
127.0.0.1            127.0.0.1            UH        2        536 lo0       
192.168.0.0          192.168.0.241        U         7        798 net0            

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If   
--------------------------- --------------------------- ----- --- ------- ----- 
localhost                   localhost                   UH      2      20 lo0   
fe80::/10                   fe80::a00:27ff:fea5:af7f    U       2       0 net0

zoneifconfig -a

ifconfig -a
Code:
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
vnic1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.0.222 netmask ffffff00 broadcast 192.168.0.255
        ether 2:8:20:17:15:b5 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128 
vnic1: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 2
        inet6 ::/0 
        ether 2:8:20:17:15:b5


zoneroute

Code:
netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface 
-------------------- -------------------- ----- ----- ---------- --------- 
default              192.168.0.1          UG        1          0           
solaris              solaris              UH        4        292 lo0       
192.168.0.0          192.168.0.222        U         3          3 vnic1     

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If   
--------------------------- --------------------------- ----- --- ------- ----- 
solaris                     solaris                     UH      2       0 lo0

---------- Post updated 04-11-13 at 04:38 AM ---------- Previous update was 03-11-13 at 09:50 AM ----------

I forgot one important thing...global zone is a virtualbox
guest,probably is this the problem.
# 7  
Old 11-05-2013
You could create a new NIC for the Global and then assign it to the local.

I can't help with virtualbox, I've never used it before. But again, to my opinion, you need a device dedicated to your local to accomplish what you're describing.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to create a Solaris local zone with an exclusive NIC?

I'm trying to migrate a Solaris 10 flar archive from a Sun M3000 to a T4-1. When I first created the zone I followed the Oracle instructions here: Transitioning an Oracle Solaris 10 Instance to an Oracle Solaris 11 System - Transitioning From Oracle Solaris 10 to Oracle Solaris 11 That worked... (6 Replies)
Discussion started by: Michele31416
6 Replies

2. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

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

4. Solaris

x86 Solaris 10 nic driver added but not attached. NIC is not detected.

I couldn't install my nic in solaris 10. I compiled and added the driver but failed to attach the driver and ifconfig output shows only loopback dev. Please see the following output and tell me whether my nic has been detected and why the driver failed to attach? My nic is detected in linux... (0 Replies)
Discussion started by: vectrum
0 Replies

5. Solaris

Solaris 10, start inetd in a zone not working

Hello all, I`ve the following problem - I cannot start inetd in any way possible: bash-3.00# svcs inetd STATE STIME FMRI offline Jul_30 svc:/network/inetd:default bash-3.00# bash-3.00# svcadm enable -r inetd bash-3.00# svcs inetd STATE STIME FMRI... (6 Replies)
Discussion started by: click
6 Replies

6. IP Networking

NIC speed 100M/full duplex problem

I have a TOSHIBA AS7000 B150 Sun Box I wanted to run it with 100M/full duplex I had added this to the /etc/system file to make to setting permenant So it would be set correctly on reboot. set eri:eri_adv_100fdx_cap=1 set eri:eri_adv_100hdx_cap=0 set eri:eri_adv_autoneg_cap=0 But when I... (4 Replies)
Discussion started by: AirWalker83
4 Replies

7. Solaris

change NIC to 1000 Mbps full duplex

Hi all, I tried to use this command ndd -set /dev/eri adv_1000fdx_cap 1 but i get a "operation failed, Invalid argument" anyone can help ? Thanks (5 Replies)
Discussion started by: DarReNz
5 Replies

8. Cybersecurity

How to force NIC full 100 dpx in Solaris 8

Does any body knows how to force NIC to 100 Full Duplex in Solaris 8, should survive after reboot or shutdown. (2 Replies)
Discussion started by: s_aamir
2 Replies

9. UNIX for Advanced & Expert Users

How to force NIC full 100 dpx in Solaris 8

Does any body knows how to force NIC to 100 Full Duplex in Solaris 8, should survive after reboot or shutdown. (1 Reply)
Discussion started by: s_aamir
1 Replies
Login or Register to Ask a Question