Cannot read MAC in a Zone Container


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot read MAC in a Zone Container
# 1  
Old 02-25-2009
Cannot read MAC in a Zone Container

Hi,

I have an app which reads MAC address. I read that Solaris 10 8/07 offers the solution to set MAC address for each container but I cannot find how to do that in any docs I found on Sun Smilie do you know how ?

True that installed I only have Solaris 10 5/08. In a container zone it generates errors:

bash-3.00# ifconfig -a
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 172.16.151.101 netmask ffffff00 broadcast 172.16.151.255

bash-3.00# ./myapp
open device fail = /dev/e1000g
Error:[Error] Can't get any mac address infomation. check your network card.

bash-3.00# ls -al /dev/e1000g*
crw-rw-rw- 1 root root 87, 1 Feb 24 18:21 /dev/e1000g0
bash-3.00#

The network card is e1000g0 not e1000g

Logged in as global:
[X4200-Sol10(root):/dev] ls -al e1000g*
lrwxrwxrwx 1 root root 32 Aug 21 2008 e1000g -> ../devices/pseudo/clone@0:e1000g
lrwxrwxrwx 1 root root 56 Aug 21 2008 e1000g0 -> ../devices/pci@0,0/pci1022,7450@1/pci8086,1011@1:e1000g0
lrwxrwxrwx 1 root root 58 Aug 21 2008 e1000g1 -> ../devices/pci@0,0/pci1022,7450@1/pci8086,1011@1,1:e1000g1
lrwxrwxrwx 1 root root 56 Aug 21 2008 e1000g2 -> ../devices/pci@0,0/pci1022,7450@1/pci8086,1011@2:e1000g2
lrwxrwxrwx 1 root root 58 Aug 21 2008 e1000g3 -> ../devices/pci@0,0/pci1022,7450@1/pci8086,1011@2,1:e1000g3

When I created the zone:
zonecfg:xenon-zone> add net
zonecfg:xenon-zone:net> set address=172.16.151.101
zonecfg:xenon-zone:net> set physical=e1000g0
zonecfg:xenon-zone:net> end
zonecfg:xenon-zone> add device
zonecfg:xenon-zone:device> set match=/dev/e1000g0
zonecfg:xenon-zone:device> end


Thanks,
Bianca

Last edited by potro; 02-25-2009 at 05:15 AM..
# 2  
Old 02-25-2009
go for the latest solaris 10 (11/08 aka update 6) release and use the "ip-instance=exclusiv" in your zone configuration.

Solaris 10 8/07: Exclusive-IP Non-Global Zones (System Administration Guide: Solaris Containers-Resource Management and Solaris Zones) - Sun Microsystems

don't know if this solves your problem, but you can give it a try...

btw. your solaris release is newer then 8/07 Smilie.
# 3  
Old 02-26-2009
Thanks. I really thought that I had an older version ... as I didn;t know how Solaris updates are named.

Bianca
# 4  
Old 02-26-2009
have a look at:

Code:
# cat /etc/release
                       Solaris 10 10/08 s10x_u6wos_07b X86
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 27 October 2008

Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

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

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

Can you set the MAC address in a zone

Hello, On our Solaris 10 servers we have shared NIC interfaces. We have a program that is having issues talking to the all zones because they have the same MAC address. Is there a way with zonecfg or ifconfig to change the MAC on the zones? Other wise we need to rewire the servers and I don't... (4 Replies)
Discussion started by: bitlord
4 Replies

4. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

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

6. Solaris

Differences of Solaris zone and Solaris Container

Hi everyone! I am in dire need to know what are the differences between a solaris zone and a solaris container.. Explanations over the net are very confusing. Please help. Thanks! (8 Replies)
Discussion started by: arah
8 Replies

7. Solaris

Memory usage, free and used, using sar, top and vmstat in Solaris zone/container

Hi all, I have a server running an Oracle database that is part of a Solaris M5000 container. Presumably this is referred to as a zone within a cluster, not sure if I get the terminology right. Anyway, a third-party manages the zone and unfortunately is not "helpful/friendly" to assist me on... (1 Reply)
Discussion started by: newbie_01
1 Replies
Login or Register to Ask a Question