Oracle® Fabric OS 1.0.2 Command Reference

Exit Print View

Updated: November 2016
 
 

vnic

The vnic command adds, configures, and displays vNIC connectivity.

Syntax

add vnic vnic-name.server-profile {slot/port|none} [–noconfirm]
add vnic vnic-name.server-profile if-name [–boot-capable={true|false}]
add vnic vnic-name.server-profile [–addr-type={default|static|dhcp}] [–ip-addr=addr/mask] [–ipaddr-host-managed=n.n.n.n]
set vnic vnic-name.server-profile [–addr-type={default|static|dhcp}] [–ip-addr=addr/mask] [–ipaddr-host-managed=n.n.n.n]
set vnic vnic-name.server-profile clear
set vnic vnic-name.server-profile down
set vnic vnic-name.server-profile clear vnic-stats
set vnic vnic-name.server-profile up
set vnic vnic-name.server-profile down
set vnic vnic-name.server-profile [–boot-capable={true|false}]
set vnic vnic-name.server-profile if-name
remove vnic {*|vnic-name} [–noconfirm]
remove vnics [–noconfirm]
show vnic [*] vnic-name [–detail]
show vnic [*] vnic-name alarms
show vnic [*] vnic-name errors
show vnic [*] vnic-name l2entries
show vnic vnic-name.server-name vnic-stats
show vnic vnic-name vnic-stats
show vnic [*] vnic-name vlans
show vnic [*] vnic-name warnings
show vnic [*] vnic-name where
show vnic vnic-name|* [–detail]
show vnic vnic-name wildcard throughput

where:

  • if-name is the interface name (public network or PVI).

  • port is the port termination for a vNIC.

  • public-network-name|* specifies the name of the public network you are creating.

  • vnic-name|* specifies the name of a vNIC or all vNICs if you are using the wildcard.

  • server-profile is the name of the server profile.

This hardware command has subcommands. This table describes the subcommands and provides their syntax.

Subcommand
Description
alarms
Displays alarms
clear
Removes items, such as vnic-stats.
down
Deactivates a vNIC, or deactivates specific settings (such as –boot-capable or –netmask.)
errors
Displays error alarms.
l2entries
Displays the L2 table entries.
throughput
Displays throughput statistics.
up
Activates a vNIC.
vlans
Displays a list of VLANs.
vnic-stats
Displays statistics for a vNIC.
warnings
Displays warnings.
where
Filters information.

Description

The fabric automatically assigns MAC addresses to vNICs from a pool of internal-sequential addresses.

Options

Option
Description
–addr-type
Specifies the type of address:
  • default – The default is DHCP.

  • static – A static address that is assigned by the director.

  • dhcp – A DHCP-assigned address.

–boot-capable
Determines if the vNIC is capable of booting.
–descr
Provides a text description of the vNIC. Use quotes if there are spaces in the description.
–detail
Displays detailed information. Optional.
–ip-addr
Configures the IP address (address/mask) for the vNIC. This address is propagated to the physical server and appears as the address of an interface.
–ipaddr-host-managed
Configures an IP address (address/mask) that is managed by the host.
–netmask
Configures a netmask for the vNIC.
–noconfirm
The process completes without prompting you for confirmation. The argument automatically answers yes to any prompts.

Example: Create a vNIC and Assign it to a Server Profile

This example shows how to create a vNIC called VNIC1, and assign it to server profile vserver1, and assign it to a public network named AAA.

[OFOS] add vnic VNIC1.vserver1 ?
Possible completions:
    AAA   Public Network (ID: 777)
    none  No interface
[OFOS] add vnic VNIC1.vserver1 AAA

Example: Configure a Server Profile With a vNIC

This example shows how to create a server profile called myserver, and then configure a vNIC for it called myvnic.myserver that is connected to a public network named AAA.

[OFOS] add server-profile myserver alexander@iowa:ServerPort8
[OFOS] add vnic myvnic.myserver AAA
[OFOS] set vnic myvnic.myserver -addr-type=static -ip-addr=10.1.1.1/32 -boot-capable=true
[OFOS] show vnic myvnic.myserver
-------------------------------- 
name           myvnic.myserver
state          up/up
mac-addr       00:13:97:01:80:08
ipaddr         10.1.1.1/32
if             2/2
if-state       up
type           static
vlans          none
boot-capable   true

[OFOS] show ioport 2/2 -detail 
--------------------------------- 
name           2/2
type           gwEthernet10GbPort
state          up/up
descr          
mode           access
lag
access-vlan    1
---------------------------------
1 record displayed

[OFOS] show vnic myvnic.myserver vnic-stats
------------------------------------
name                 myvnic.myserver
vlan-id-or-none      0
rcv-pkt              43544
rcv-bytes            4267274
trans-pkt            43507
trans-bytes          4265073
invalid-ip-checksum  0
invalid-l4-checksum  0
mtu-err              0
ipchecksum-pkt       0
tcp-checksum-pkt     0
udp-checksum-pkt     0
green-pkt            43519
yellow-pkt           0
red-pkt              0
-------------------------------------
1 record displayed