dladm

Description

La commande dladm est utilisé pour gérer les cartes réseaux en parallèle avec ifconfig. Son nom vient de Data Link Administration.

dladm permet de voir plus profondément les paramètres des liens de données (« Data Link ») que ifconfig. On peut utiliser dladm pour faire des aggrégation de lien, configurer des ponts et afficher des statistiques sur les interfaces.

Très utilisé par les administrateurs systèmes Solaris vous retrouverez dans la partie « Exemple » la liste des options les plus utilisées avec cette commande.

La commande a quelques peu évoluée sur la version 11 de Solaris. En effet, par exemple show-dev n’existe plus vous devez utiliser à la place show-phys. Tous mes exemples sont tirés d’ailleurs de Solaris 11.

Exemple

Afficher les états des interfaces réseaux :

root@solaris:~# dladm show-phys
LINK         MEDIA                STATE      SPEED  DUPLEX    DEVICE
e1000g0      Ethernet             up         1000   full      e1000g0

Afficher les états des liens :

root@solaris:~#
dladm show-link LINK        CLASS     MTU    STATE    BRIDGE     OVER
e1000g0     phys      1500   up       --         --

Afficher quelques statistiques réseaux des liens :

root@solaris:~#
dladm show-link -s LINK           IPACKETS  RBYTES  IERRORS   OPACKETS    OBYTES      OERRORS
e1000g0        6707      904846  0         1087        171490      0

Afficher des statistiques en temps réel sur un lien, -i pour le nombre de seconde :

root@solaris:~#
dladm show-link -s -i 5 e1000g0
LINK           IPACKETS  RBYTES  IERRORS   OPACKETS    OBYTES      OERRORS
e1000g0        6779      911065  0         1101        173192      0
e1000g0        4         328     0         1           258         0
e1000g0        8         682     0         2           304         0
e1000g0        12        1773    0         1           178         0
e1000g0        10        1620    0         1           178         0
e1000g0        3         674     0         1           178         0
e1000g0        10        1290    0         1           178         0
e1000g0        5         375     0         1           178         0

Man Solaris de la commande svcadm

System Administration Commands                          dladm(1M)

NAME
     dladm - administer data links

SYNOPSIS
     dladm show-link [-P] [-s [-i interval]] [[-p] -o field[,...]] [link]
     dladm rename-link [-R root-dir] link new-link

     dladm delete-phys phys-link
     dladm show-phys [-P] [-m] [[-p] -o field[,...]] [-H] [phys-link]

     dladm create-aggr [-t] [-R root-dir] [-P policy] [-L mode]
          [-T time] [-u address] -l ether-link1 [-l ether-link2...] aggr-link
     dladm modify-aggr [-t] [-R root-dir] [-P policy] [-L mode]
          [-T time] [-u address] aggr-link
     dladm delete-aggr [-t] [-R root-dir] aggr-link
     dladm add-aggr [-t] [-R root-dir] -l ether-link1 [-l ether-link2...]
          aggr-link
     dladm remove-aggr [-t] [-R root-dir] -l ether-link1 [-l ether-link2...]
          aggr-link
     dladm show-aggr [-PLx] [-s [-i interval]] [[-p] -o field[,...]]
          [aggr-link]

     dladm create-bridge [-P protect] [-R root-dir] [-p priority]
          [-m max-age] [-h hello-time] [-d forward-delay] [-f force-protocol]
          [-l link...] bridge-name
     dladm modify-bridge [-P protect] [-R root-dir] [-p priority]
          [-m max-age] [-h hello-time] [-d forward-delay] [-f force-protocol]
          bridge-name
     dladm delete-bridge [-R root-dir] bridge-name
     dladm add-bridge [-R root-dir] -l link [-l link...]bridge-name
     dladm remove-bridge [-R root-dir] -l link [-l link...] bridge-name
     dladm show-bridge [-flt] [-s [-i interval]] [[-p] -o field,...]
          [bridge-name]
     dladm create-vlan [-ft] [-R root-dir] -l ether-link -v vid [vlan-link]
     dladm delete-vlan [-t] [-R root-dir] vlan-link
     dladm show-vlan [-P] [[-p] -o field[,...]] [vlan-link]

     dladm scan-wifi [[-p] -o field[,...]] [wifi-link]
     dladm connect-wifi [-e essid] [-i bssid] [-k key,...]
          [-s none | wep | wpa ] [-a open | shared] [-b bss | ibss] [-c]
          [-m a | b | g | n ] [-T time] [wifi-link]
     dladm disconnect-wifi [-a] [wifi-link]
     dladm show-wifi [[-p] -o field[,...]] [wifi-link]
     dladm show-ether [-x] [[-p] -o field[,...]] [ether-link]

     dladm set-linkprop [-t] [-R root-dir] -p prop=value[,...] link
     dladm reset-linkprop [-t] [-R root-dir] [-p prop[,...]] link
     dladm show-linkprop [-P] [[-c] -o field[,...]] [-p prop[,...]] [link]

     dladm create-secobj [-t] [-R root-dir] [-f file] -c class secobj
     dladm delete-secobj [-t] [-R root-dir] secobj[,...]
     dladm show-secobj [-P] [[-p] -o field[,...]] [secobj,...]

     dladm create-vnic [-t] -l link [-R root-dir] [-m value | auto |
          {factory [-n slot-identifier]} | {vrrp -A {inet | inet6} -V vrid}
          | {random [-r prefix]}] [-v vlan-id] [-p prop=value[,...]] vnic-link
     dladm delete-vnic [-t] [-R root-dir] vnic-link
     dladm show-vnic [-pP] [-s [-i interval]] [-o field[,...]]
          [-l link] [vnic-link]

     dladm create-etherstub [-t] [-R root-dir] etherstub
     dladm delete-etherstub [-t] [-R root-dir] etherstub
     dladm show-etherstub [etherstub]

     dladm create-iptun [-t] [-R root-dir] -T type [-a {local|remote}=addr,...]
          iptun-link
     dladm modify-iptun [-t] [-R root-dir] -a {local|remote}=addr,...
          iptun-link
     dladm delete-iptun [-t] [-R root-dir] iptun-link
     dladm show-iptun [-P] [[-p] -o field[,...]] [iptun-link]

     dladm create-part [-t] [-f] -l ib-link [-R root-dir] -P pkey
          [-p prop=value[,...]] part-link
     dladm delete-part [-t] [-R root-dir] part-link
     dladm show-part [-pP] [-o field[,...]] [-l ib-link]  [part-link]

     dladm show-ib [-pP] [-o field[,...]] [ib-link]

     dladm show-usage [-a] -f filename [-p plotfile -F format] [-s time]
          [-e time] [link]

DESCRIPTION
     The dladm command is used to administer data-links. A  data-
     link  is  represented  in  the system as a STREAMS DLPI (v2)
     interface which can be plumbed under protocol stacks such as
     TCP/IP.  Each  data-link  relies  on either a single network
     device or an aggregation of devices to send  packets  to  or
     receive packets from a network.

     Each dladm subcommand  operates  on  one  of  the  following
     objects:

     link

         A datalink, identified by a name. In general,  the  name
         can  use any alphanumeric characters (or the underscore,
         _), but must start with an alphabetic character and  end
         with a number. A datalink name can be at most 31 charac-
         ters, and the  ending  number  must  be  between  0  and
         4294967294 (inclusive). The ending number must not begin
         with a zero. Datalink names between 3 and  8  characters
         are recommended.

         Some  subcommands  operate  only  on  certain  types  or
         classes  of  datalinks.  For  those cases, the following
         object names are used:

         aggr-link

             An aggregation datalink (or a key; see NOTES).

         ether-link

             A physical Ethernet datalink.

         iptun-link

             An IP tunnel link.

         part-link

             An InfiniBand (IB) partition data link.

         phys-link

             A physical datalink.

         vlan-link

             A VLAN datalink.
         vnic-link

             A virtual network interface created on a link or  an
             etherstub. It is a pseudo device that can be treated
             as if  it  were  an  network  interface  card  on  a
             machine.

         wifi-link

             A WiFi datalink.

     bridge

         A bridge instance, identified  by  an  administratively-
         chosen  name.  The name may use any alphanumeric charac-
         ters or the underscore, _, but must start and  end  with
         an alphabetic character. A bridge name can be at most 31
         characters. The name default is  reserved,  as  are  all
         names starting with SUNW.

         Note that appending a zero (0) to a bridge name produces
         a valid link name, used for observability.

     dev

         A network  device,  identified  by  concatenation  of  a
         driver name and an instance number.

     etherstub

         An Ethernet stub can be used instead of a  physical  NIC
         to  create  VNICs.  VNICs  created  on an etherstub will
         appear to be connected through a virtual switch,  allow-
         ing complete virtual networks to be built without physi-
         cal hardware.
     part

         An IB partition link created on a IB physical link.

     secobj

         A secure  object,  identified  by  an  administratively-
         chosen  name.  The name can use any alphanumeric charac-
         ters, as well as underscore (_), period (.), and  hyphen
         (-). A secure object name can be at most 32 characters.

Articles en relation:

  • Pas d'articles en relations
laissez un commentaire !

*