25.3.3. Mappatura dei nomi dei dispositivi di rete e dei canali secondari

L'opzione DEVICE= nel file ifcfg non determina la mappatura dei canali secondari nei confronti dei nomi dei dispositivi di rete. Al contrario il file delle regole udev /etc/udev/rules.d/70-persistent-net.rules determina il canale nei confronti del quale verrà conferito il nome.
Durante la configurazione di un dispositivo di rete su System z, il sistema aggiunge automaticamente una nuova regola al file in questione ed assegna il nome del dispositivo successivo non usato. Successivamente sarà possibile modificare i valori assegnati alla variabile NAME= per ogni dispositivo.
Esempio di contenuto di /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 
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"