User`s guide

126 XgOS User’s Guide September 2014
Before adding a VLAN, you will find it helpful to:
1. Determine if vNIC tags must be preserved between the Oracle Fabric Interconnect
and a peer Ethernet device. If tags must be preserved, the port mode must be set
to trunk mode. If not, the port mode must be set to access mode. It is mandatory
for the Oracle Fabric Interconnect’s port mode and the Ethernet switch’s port
mode to be set to the same operational mode (either trunk or access) to transmit
or receive tagged or untagged packets between hosts.
2. Determine if the host will be VLAN aware. If so, the vNIC must be set to trunk
mode. If not, then the vNIC will be set to access mode.
3. Create the vNIC(s) that will be members of the VLAN(s).
The following sections document syntax for commands related to configuring
VLANs and provide some examples of common configurations as guidelines for
your network.
Syntax
10GE and 10-Port GE VLAN Examples
The following sections show VLAN configuration examples for the 10GE and 10-
Port GE module.
All of the following examples assume that a server profile has already been created.
“Example 1: Port Access Mode, VLAN-Unaware Host” on page 127
“Example 2: Port Trunk Mode, VLAN-Aware Host” on page 128
add server-profile <profile-name> <server>@<f1-15>:<ib-port>
add vnic <vnic-name>.<server-profile-name> <slot>/<port> -mode={access|trunk}
-access-vlan={<number>|default |none}
add vlan <vlan-id>.<vnic>.<profile-name> [-noconfirm]
set ethernet-port <slot>/<port> -access-vlan={<number>|default}
-mode{access|trunk} -tag-native={default|false|true}
set vlan <vlan-id>.<vnic>.<profile-name> -ip-addr=<addr/mask>] [-descr=”<text>]
[-addr-type=[default|hostManaged|static|dhcp] [-netmask=<n.n.n.n>]
set vnic <vnic-name>.<server-profile-name> -addr-type=<type> -ip-addr=<addr>
-netmask=<n.n.n.n>
show vlans [{*|<name>}]
show vnic <vnic-name>.<server-profile-name> vlans [-
detail]