The vnic command adds, configures, and displays vNIC connectivity.
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.
|
The fabric automatically assigns MAC addresses to vNICs from a pool of internal-sequential addresses.
|
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
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