Sponsored Content
Operating Systems Solaris Cannot read MAC in a Zone Container Post 302291205 by potro on Wednesday 25th of February 2009 02:39:54 AM
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..
 

7 More Discussions You Might Find Interesting

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

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

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

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

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

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

7. 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
MAC-VENDOR(5)							File Formats Manual						     MAC-VENDOR(5)

NAME
mac-vendor - Ethernet vendor file for arp-scan SYNOPSIS
mac-vendor.txt DESCRIPTION
The mac-vendor.txt contains Ethernet MAC to vendor string mappings for arp-scan. It is used in addition to the IEEE OUI and IAB listings in ieee-oui.txt and ieee-iab.txt. It is for MAC-vendor mappings that are not covered by the IEEE manufacturer listings. Each line in the mac-vendor.txt file contains a MAC-vendor mapping in the form: <MAC-Prefix><TAB><Vendor> Where <MAC-Prefix> is the prefix of the MAC address in hex, and <Vendor> is the name of the vendor. The prefix can be of any length from two hex digits (one octet) to twelve hex digits (six octets, the entire Ethernet hardware address). The alphabetic hex characters [A-F] must be entered in upper case. For example: 012345 would match 01:23:45:xx:xx:xx, where xx represents any value; 0123456 would match 01:23:45:6x:xx:xx; and 01234567 would match 01:23:45:67:xx:xx. Blank lines and lines beginning with "#" are ignored. The order of entries in the file is not important. arp-scan will attempt to match larger prefixes before trying to match smaller ones, and will stop at the first match. FILES
/usr/local/share/arp-scan/mac-vendor.txt EXAMPLE
# From nmap Debian bug report #369681 dated 31 May 2006 525400 QEMU B0C420 Bochs # From RFC 2338: 00-00-5E-00-01-{VRID} 00005E0001 VRRP (last octet is VRID) # Microsoft WLBS (Windows NT Load Balancing Service) # http://www.microsoft.com/technet/prodtechnol/acs/reskit/acrkappb.mspx 02BF Microsoft WLBS (last four octets are IP address) AUTHOR
Roy Hills <Roy.Hills@nta-monitor.com> SEE ALSO
arp-scan(1) get-oui(1) get-iab(1) arp-fingerprint(1) http://www.nta-monitor.com/wiki/ The arp-scan wiki page. March 30, 2007 MAC-VENDOR(5)
All times are GMT -4. The time now is 06:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy