25.3.3. Asignar subcanales y nombres de dispositivos de red
La opción
DEVICE=
en el archivo ifcfg
no determina la asignación de subcanales a nombres de dispositivo de red. En su lugar, el archivo de reglas udev /etc/udev/rules.d/70-persistent-net.rules
determina qué canal de dispositivo de red obtiene el nombre de dispositivo de red determinado.
Al configurar un nuevo dispositivo de red en System z, el sistema automáticamente añade una nueva regla a ese archivo y asigna el siguiente nombre de dispositivo no utilizado. Puede editar luego los valores asignados a la variable
NAME=
para cada dispositivo.
Contenido de ejemplo de
/etc/udev/rules.d/70-persistent-net.rules
:
This file was automatically generated by the /lib/udev/write_net_rules program run by the persistent-net-generator.rules rules file. You can modify it,as long as you keep each rule on a single line. S/390 qeth device at 0.0.f5f0 S/390 ctcm device at 0.0.1000 S/390 qeth device at 0.0.8024 S/390 qeth device at 0.0.8124 S/390 qeth device at 0.0.1017 S/390 qeth device at 0.0.8324 S/390 qeth device at 0.0.8224 S/390 qeth device at 0.0.1010 S/390 lcs device at 0.0.1240 S/390 qeth device at 0.0.1013
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it,as long as you keep each rule on a single line.
# S/390 qeth device at 0.0.f5f0
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.f5f0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# S/390 ctcm device at 0.0.1000
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="ctcm", KERNELS=="0.0.1000", ATTR{type}=="256", KERNEL=="ctc*", NAME="ctc0"
# S/390 qeth device at 0.0.8024
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.8024", ATTR{type}=="1", KERNEL=="hsi*", NAME="hsi0"
# S/390 qeth device at 0.0.8124
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.8124", ATTR{type}=="1", KERNEL=="hsi*", NAME="hsi1"
# S/390 qeth device at 0.0.1017
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.1017", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
# S/390 qeth device at 0.0.8324
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.8324", ATTR{type}=="1", KERNEL=="hsi*", NAME="hsi3"
# S/390 qeth device at 0.0.8224
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.8224", ATTR{type}=="1", KERNEL=="hsi*", NAME="hsi2"
# S/390 qeth device at 0.0.1010
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.1010", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# S/390 lcs device at 0.0.1240
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="lcs", KERNELS=="0.0.1240", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# S/390 qeth device at 0.0.1013
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="qeth", KERNELS=="0.0.1013", ATTR{type}=="1", KERNEL=="hsi*", NAME="hsi4"