Table of Contents

NAME

vif - create and destroy virtual interfaces

SYNOPSIS

vif create [ vif_name ] interface_name ...

vif destroy vif_name

vif stat vif_name [ interval ]

DESCRIPTION

The vif command creates and eliminates virtual interfaces. It also displays statistics for a specified virtual interface.

The vif create command creates a virtual interface. The name of the virtual interface to be created is specified as vifn, where n is a number. Make sure that the specified virtual interface name is not already in use. Use the ifconfig command to check and see what virtual interface names are being used.

You can specify up to four Ethernet interfaces in the command. The interfaces do not have to be on the same network card. However, some Ethernet switches or routers require that all Ethernet interfaces forming a virtual interface be either half-duplex or full-duplex. Check the documentation that comes with your Ethernet switch or router to see whether you need to configure the filer Ethernet interfaces to be half-duplex or full-duplex.

The vif destroy command eliminates an existing virtual interface. You must configure the virtual interface down using the ifconfig command before entering the vif destroy command.

The vif stat command displays the number of packets received and transmitted on each Ethernet interface that makes up the virtual interface. You can specify the time interval, in seconds, at which the statistics are displayed. By default, the statistics are displayed at one-second intervals.

EXAMPLES

The following example creates a virtual interface:

toaster> vif vif1 create e0 e7a e6b e8

The following example eliminates virtual interface 1:

toaster> vif destroy vif1

The following example displays statistics about virtual interface 1:

toaster> vif stat vif1

  Virtual interface (trunk) vif1
      e5d                     e5c             e5b             e5a
  In      Out             In      Out     In      Out     In      Out
  8637076 47801540        158     159     7023083 38300325 8477195 47223431
  1617    9588            0       0       634     3708    919     5400
  1009    5928            0       0       925     5407    1246    7380
  1269    7506            0       0       862     5040    1302    7710
  1293    7632            0       0       761     4416    964     5676
  920     5388            0       0       721     4188    981     5784
  1098    6462            0       0       988     5772    1003    5898
  2212    13176           0       0       769     4500    1216    7185
  1315    7776            0       0       743     4320    530     3108

SEE ALSO

na_ifconfig(1)


Table of Contents