How to create VLANs in DOM0 on a virtualized ODA

Capture

I’ve been working with a local customer the last week or so to help them set up a pair of ODA’s in virtualized mode.  In one of the datacenters, they needed it to be on a VLAN- including DOM0.  Normally, I just configure net1 for the customer’s network and I’m off to the races.  In this case, there are a few additional steps we have to do.

First thing you’ll need to do is install the ODA software from the install media.  Once this is done, you need to log into the console since we don’t have any IP information configured yet.  Below is a high level checklist of the steps needed to complete this activity:

 

  • Determine which VLAN DOM0 needs to be on
  • Pick a name for the VLAN interface.  It doesn’t have to be eth2 or anything like that.  I usually go with “VLAN456” if my VLAN ID is 456 so it’s self descriptive.
  • Run the following command in DOM0 on node 0 (assuming your VLAN ID is 456)

# oakcli create vlan VLAN456 -vlanid 456 -if bond0

 

At this point, you’ll have the following structures in place on each compute node:

VLAN 1

 

We now have networking set up so that eth2 and eth3 are bonded together (bond0).  Then we put a VLAN bond interface (bond0.456) on top of the bond pair.  Finally we create a VLAN bridge (VLAN456) that can be used to forward that network into the VM, and also allow DOM0 to talk on that VLAN.   I’ve shown in the example above what it looks like to connect more than one VLAN to a bond pair.  If you need access to both VLAN’s from within DOM0 then each VLAN interface on each node will need an IP address assigned to it.  You’ll need to rerun configure firstnet for each interface.  Note also that if you need to access more than one VLAN from a bond pair,  you’ll need to set the switch ports that eth2 and eth3 are connected to into trunked mode so they can pass more than a single VLAN.  Your network administrator will know what this means.

 

 

After that’s in place, you can continue to deploy ODA_BASE, do a configure firstnet in ODA_BASE (remember to assign the VLAN interface to ODA_BASE), yadda yadda…

 

Then, as you configure ODA_BASE and create your VM(s), the NetBack and NetFront drivers are created that are responsible for plumbing the network into the VM.  Here’s a completed diagram with a VM that has access to both VLAN’s:

VLAN final

 

Happy Hunting!

 

 

UPDATE: The way this customer wound up configuring their switches at the end of the day was to put the ODA and ODA_BASE on the Native VLAN.  In this case, even though the switch port is trunked to have access to one or more VLAN’s at a time, the Native VLAN traffic is actually passed untagged down to the server.  This implies that you do not need a special VLAN interface on the ODA to talk on this network, just use the regular net1 or net2 interface.  Now, if you want to talk on any other VLANs through that switch port, you will need to follow the procedure above and configure a VLAN interface for that VLAN.

Advertisements

2 thoughts on “How to create VLANs in DOM0 on a virtualized ODA

  1. Hi Eric,

    I am working with a client to setup ODA x6-2 HA in virtualized mode. I am setting up ODA with the version 12.1.2.11 by following the readme file. When I issue “oakcli deploy” it is running upto 12% and getting failed. When I see the log it shows unable to ping the IP. Can you please help me out in configuring the network of ODA in virtualized mode.

    The below are the details I am using for configuring ODA.

    10.255.54.21 – EFG-ODA0
    10.255.54.22 – EFG-ODA1

    10.255.54.23 – EFG-ODA0-vip
    10.255.54.24 – EFG-ODA1-vip

    10.255.54.25 – EFG-ODA-scan
    10.255.54.26 – EFG-ODA-scan

    10.255.54.27 – EFG-ODA0-net1 I am configuring this IP in ODA_BASE
    10.255.54.28 – EFG-ODA0-net1 I am configuring this IP in ODA_BASE

    ILOM IP’s

    10.255.100.123 – EFG-ODA0-ilom
    10.255.100.124 – EFG-ODA1-ilom

    I haven’t used VLAN. Do I need to use vlan for this ODA in virtualised paltform. If so How and where I should specify this.

    Thanks in advance

    Thanks,
    Prakash

    Like

    • Prakash,

      The first thing I would do is check to make sure all IP addresses are pingable and in DNS. You don’t have to use VLANs if there are none in use currently.

      I assume you’ve installed the Virtualized ISO and are trying to deploy oda_base when you get the error? Or are you trying to deploy the configuration inside of oda_base once it’s installed?

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s