X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsystemd.net-naming-scheme.xml;h=324c94dbd9fe3a95380916f4bdbc2d72dfb6694c;hb=c53da7ed02a5d732c9449f79c19675b90a6032e3;hp=91ad57df03fbd76a360f72defd51e25bdc873c53;hpb=6c75f78e94c919d76e4f6e3d65abedba0e13e43f;p=thirdparty%2Fsystemd.git diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml index 91ad57df03f..324c94dbd9f 100644 --- a/man/systemd.net-naming-scheme.xml +++ b/man/systemd.net-naming-scheme.xml @@ -42,10 +42,15 @@ systemd-udevd.service8. Available naming schemes are described below. - After the udev proprties have been generated, appropriate udev rules may be used to actually rename + After the udev properties have been generated, appropriate udev rules may be used to actually rename devices based on those properties. See the description of NamePolicy= and MACAddressPolicy= in systemd.link5. + + Note that while the concept of network interface naming schemes is primarily relevant in the + context of systemd-udevd.service, the + systemd-nspawn1 + container manager also takes it into account when naming network interfaces, see below. @@ -74,7 +79,7 @@ sl - serial line IP (slip) + Serial line IP (slip) wl @@ -94,8 +99,8 @@ ID_NET_NAME_ONBOARD=prefixonumber - This name is set based on the ordering information given by the firmware for - on-board devices. The name consists of the prefix, letter o, and a number + This name is set based on the numeric ordering information given by the firmware + for on-board devices. The name consists of the prefix, letter o, and a number specified by the firmware. This is only available for PCI devices. @@ -103,8 +108,9 @@ ID_NET_LABEL_ONBOARD=prefix label - This property is set based on label given by the firmware for on-board devices. The - name consists of the prefix concatenated with the label. This is only available for PCI devices. + This property is set based on textual label given by the firmware for on-board + devices. The name consists of the prefix concatenated with the label. This is only available for + PCI devices. @@ -121,15 +127,15 @@ ID_NET_NAME_SLOT=prefix[Pdomain]sslot[ffunction][nport_name|ddev_port] + ID_NET_NAME_SLOT=prefixvslot ID_NET_NAME_SLOT=prefix[Pdomain]sslot[ffunction][nport_name|ddev_port]bnumber ID_NET_NAME_SLOT=prefix[Pdomain]sslot[ffunction][nport_name|ddev_port]uport…[cconfig][iinterface] ID_NET_NAME_SLOT=prefix[Pdomain]sslot[ffunction][nport_name|ddev_port]vslot This property describes the slot position. Different schemes are used depending on - the bus type, as described in the table below. In all cases, PCI slot information must be known. In - case of USB, BCMA, and SR-VIO devices, the full name consists of the prefix, PCI slot identifier, - and USB or BCMA or SR-VIO slot identifier. The first two parts are denoted as "…" in the table - below. + the bus type, as described in the table below. In case of USB, BCMA, and SR-VIO devices, the full + name consists of the prefix, PCI slot identifier, and USB or BCMA or SR-VIO slot identifier. The + first two parts are denoted as "…" in the table below. Slot naming schemes @@ -148,6 +154,11 @@ PCI slot number + + prefix vslot + VIO slot number (IBM PowerVM) + + … bnumber Broadcom bus (BCMA) core number @@ -177,11 +188,11 @@ For USB devices the full chain of port numbers of hubs is composed. If the name gets longer than the maximum number of 15 characters, the name is not exported. The usual USB configuration number 1 and interface number 0 values are suppressed. - SR-IOV virtual devices are named based on the name of the parent interface, with a suffix of v and the virtual device number, with any leading zeros removed. The bus - number is ignored. This device type is found in IBM PowerVMs. + number is ignored. + @@ -262,7 +273,7 @@ v238 - This is the naming naming that was implemented in systemd 238. + This is the naming scheme that was implemented in systemd 238. @@ -300,7 +311,7 @@ again. Previously, this naming policy applied implicitly, and now it must be explicitly requested. Effectively, this means that network devices will be renamed according to the configuration, even if they have been renamed already, if keep is not - specified as the naming policy in the .link file. See + specified as the naming policy in the .link file. See systemd.link5 for a description of NamePolicy=. @@ -310,7 +321,7 @@ was extended to set MAC addresses based on the device name. Previously addresses were only based on the - ID_NET_NAME_* attributes, which meant that interface names would + ID_NET_NAME_* attributes, which meant that interface names would never be generated for virtual devices. Now a persistent address will be generated for most devices, including in particular bridges. @@ -329,10 +340,24 @@ Previously two-letter interface type prefix was prepended to ID_NET_LABEL_ONBOARD=. This is not done anymore. - + + + v245 + + When + systemd-nspawn1 + derives the name for the host side of the network interface created with + from the container name it previously simply truncated the result + at 15 characters if longer (since that's the maximum length for network interface names). From now + on, for any interface name that would be longer than 15 characters the last 4 characters are set to + a 24bit hash value of the full interface name. This way network interface name collisions between + multiple similarly named containers (who only differ in container name suffix) should be less + likely (but still possible, since the 24bit hash value is very small). + + Note that latest may be used to denote the latest scheme known (to this - particular version of systemd. + particular version of systemd). @@ -428,8 +453,8 @@ ID_NET_NAME_PATH=encf5f0 udev7, udevadm8, - the - original page describing stable interface names + Predictable Network Interface Names, + systemd-nspawn1