[one-users] 答复:  context mac address
    Sam Song 
    samsong8610 at gmail.com
       
    Fri Oct 25 19:13:43 PDT 2013
    
    
  
Hi,
Could you use ETH0_IP and ETH1_IP to set correct IP to two NICs?
In my opinion,  the NIC with ID 0 will be the NIC interface eth0 in the
guest OS, and NIC with ID 1 will be eth1. So it is no need to bother MAC.
 
Sam
 
·¢¼þÈË: users-bounces at lists.opennebula.org
[mailto:users-bounces at lists.opennebula.org] ´ú±í Michael Curran
·¢ËÍʱ¼ä: 2013Äê10ÔÂ26ÈÕ 2:41
ÊÕ¼þÈË: Michael Curran; Carlos Mart¨ªn S¨¢nchez
³ËÍ: users
Ö÷Ìâ: Re: [one-users] context mac address
 
Just to make sure I am clear on what I am looking for , this is the set of
fields in the onevm show <vmid>
 
VM NICS
ID NETWORK              VLAN BRIDGE       IP              MAC
  0 private1_10.7.0.0     yes private_1    10.7.3.248      02:00:0a:07:03:f8
                                           fe80::400:aff:fe07:3f8
  1 private1_10.7.0.0     yes private_1    10.7.3.249      02:00:0a:07:03:f9
                                           fe80::400:aff:fe07:3f9
 
 
I want to create my own context variable that references ETH0_MAC ¨C the mac
address in the last colume
 
I have tried Carlos¡¯ suggestion below and also these now
 
ETH0_MAC="$NIC[MAC,ID=\"0\"]"
ETH0_MAC="$VMNIC[MAC,ID=\"0\"]"
ETH0_MAC="$VM_NIC[MAC,ID=\"0\"]"
 
With no such luck in finding the MAC so I can do MAC matching to assign IP¡¯
s across multiple NICs based on that MAC 
 
What is the correct variable pattern to use ¨C is there a comprehensive list
of these variables listed somewhere? 
 
Michael Curran | connectsolutions | Lead Network Architect
Phone 614.568.2285 | Mobile 614.403.6320 |
<http://www.connectsolutions.com> www.connectsolutions.com
 
From: users-bounces at lists.opennebula.org
[mailto:users-bounces at lists.opennebula.org] On Behalf Of Michael Curran
Sent: Friday, October 25, 2013 1:26 PM
To: Carlos Mart¨ªn S¨¢nchez
Cc: users
Subject: Re: [one-users] context mac address
 
I tried that as you wrote it and I have tried a few of my own variables that
did not work either.
 
I would love to see a comprehensive list of variables to use, and I¡¯m just
not finding one.
 
That page is explanatory on how to put them together, but not how to obtain
what is available ¨C maybe MAC isn¡¯t available with $NIC ??
 
Michael Curran | connectsolutions | Lead Network Architect
Phone 614.568.2285 | Mobile 614.403.6320 |
<http://www.connectsolutions.com> www.connectsolutions.com
 
From: Carlos Mart¨ªn S¨¢nchez [mailto:cmartin at opennebula.org] 
Sent: Friday, October 25, 2013 12:53 PM
To: Michael Curran
Cc: users
Subject: Re: [one-users] context mac address
 
Hi,
 
Do you mean like this?
ETH0_NIC = "$NIC[MAC, NETWORK_ID=\"0\"]"
 
The contextualization variables syntax is explained here [1].
 
Regards
 
[1] http://opennebula.org/documentation:rel4.2:cong
 
--
Carlos Mart¨ªn, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula
<http://twitter.com/opennebula> 
 
On Fri, Oct 25, 2013 at 6:42 PM, Michael Curran
<michael.curran at connectsolutions.com> wrote:
I¡¯m working on contextualizing a windows VM with multiple NIC¡¯s during VM
creation
 
Does anyone know the correct Variable for the MAC by network ID number? I
just want to add it to context settings in the VM Template so it picks it up
everytime.
 
Michael Curran | connectsolutions | Lead Network Architect
Phone 614.568.2285 | Mobile 614.403.6320 |
<http://www.connectsolutions.com> www.connectsolutions.com
 
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131026/c3a5748f/attachment-0002.htm>
    
    
More information about the Users
mailing list