Man page - networkd.conf.d(5)
Packages contains this manual
- systemd-initctl.service(8)
- systemd-networkd.service(8)
- org.freedesktop.locale1(5)
- timedatectl(1)
- systemd.resource-control(5)
- systemd.journal-fields(7)
- systemd-logind.service(8)
- busctl(1)
- systemd-pstore(8)
- systemd.generator(7)
- hostname(5)
- systemd-path(1)
- systemd-random-seed.service(8)
- locale.conf(5)
- systemd-firstboot(1)
- systemd-sysv-generator(8)
- systemd.syntax(7)
- loginctl(1)
- tmpfiles.d(5)
- org.freedesktop.portable1(5)
- systemd-timedated(8)
- systemd-pstore.service(8)
- systemd-escape(1)
- systemd-system-update-generator(8)
- systemd-backlight@.service(8)
- systemd-udev-settle.service(8)
- systemd.directives(7)
- systemd.index(7)
- systemd.environment-generator(7)
- systemd-network-generator.service(8)
- org.freedesktop.systemd1(5)
- systemd-user-sessions.service(8)
- systemd-pcrlock(8)
- systemd-journald.socket(8)
- systemd-user-runtime-dir(5)
- systemd-logind(8)
- systemd-initctl.socket(8)
- systemd-pcrlock-make-policy.service(8)
- systemd(1)
- systemd-inhibit(1)
- networkctl(1)
- systemd-random-seed(8)
- sysusers.d(5)
- systemd-boot-check-no-failures(8)
- systemd.v(7)
- systemd-creds(1)
- systemd-networkd(8)
- systemd-makefs(8)
- systemd-fsck(8)
- systemd-localed.service(8)
- journald.conf.d(5)
- systemd-pcrfs@.service(8)
- systemd-cat(1)
- systemd-id128(1)
- user@.service(5)
- systemd.unit(5)
- systemd.net-naming-scheme(7)
- systemd-volatile-root(8)
- org.freedesktop.machine1(5)
- systemd-firstboot.service(1)
- localtime(5)
- systemd-timedated.service(8)
- systemd-ask-password-console.path(8)
- varlinkctl(1)
- org.freedesktop.timedate1(5)
- systemd-run-generator(8)
- systemd-system.conf(5)
- systemd-journald-varlink@.socket(8)
- systemd-rfkill.socket(8)
- systemd.exec(5)
- systemd-journald@.socket(8)
- systemd-shutdown(8)
- systemd-fsck-usr.service(8)
- systemd-sysctl.service(8)
- systemd-pcrphase.service(8)
- systemd-localed(8)
- systemd-journald(8)
- systemd-ssh-proxy(1)
- systemd.offline-updates(7)
- systemd-pcrlock-secureboot-authority.service(8)
- systemd-ac-power(1)
- pam_systemd_loadkey(8)
- systemd.device(5)
- systemd-quotacheck.service(8)
- systemd-machine-id-commit.service(8)
- systemd-backlight(8)
- binfmt.d(5)
- systemd-getty-generator(8)
- networkd.conf.d(5)
- systemd.path(5)
- systemd-networkd-wait-online.service(8)
- system.conf.d(5)
- systemd-detect-virt(1)
- systemd-sleep.conf(5)
- sysctl.d(5)
- systemd-vpick(1)
- systemd-pcrlock-secureboot-policy.service(8)
- systemd-update-done(8)
- systemd-sysctl(8)
- pstore.conf.d(5)
- hostnamectl(1)
- systemd-confext(8)
- logind.conf.d(5)
- capsule@.service(5)
- systemd-poweroff.service(8)
- systemd-modules-load(8)
- systemd.special(7)
- org.freedesktop.network1(5)
- systemd.pcrlock.d(5)
- systemd-kexec.service(8)
- systemd-stdio-bridge(1)
- systemd-umount(1)
- systemd-quotacheck(8)
- systemd-sysext.service(8)
- systemd-notify(1)
- systemd-suspend-then-hibernate.service(8)
- systemd-growfs(8)
- systemctl(1)
- systemd-hibernate-clear.service(8)
- systemd-run(1)
- systemd-pcrlock-firmware-code.service(8)
- systemd-sysusers.service(8)
- environment.d(5)
- systemd-networkd-wait-online(8)
- systemd-initctl(8)
- systemd-remount-fs.service(8)
- systemd.network(5)
- systemd-journald@.service(8)
- systemd-pcrlock-file-system.service(8)
- systemd-hibernate-resume.service(8)
- systemd-tty-ask-password-agent(1)
- systemd-growfs@.service(8)
- systemd-ask-password(1)
- systemd-hibernate-resume-generator(8)
- systemd-sleep(8)
- systemd.image-policy(7)
- systemd-hibernate.service(8)
- systemd.timer(5)
- systemd-boot-check-no-failures.service(8)
- networkd.conf(5)
- systemd-tpm2-setup(8)
- systemd-pcrphase-initrd.service(8)
- systemd-xdg-autostart-generator(8)
- systemd-tmpfiles-setup-dev-early.service(8)
- systemd-binfmt(8)
- systemd-user-sessions(8)
- file-hierarchy(7)
- systemd-socket-proxyd(8)
- localectl(1)
- modules-load.d(5)
- machine-id(5)
- systemd-battery-check.service(8)
- systemd-update-done.service(8)
- systemd.mount(5)
- systemd-machine-id-setup(1)
- systemd-storagetm.service(8)
- systemd-growfs-root.service(8)
- systemd.swap(5)
- systemd-hibernate-resume(8)
- initrd-release(5)
- systemd.target(5)
- sleep.conf.d(5)
- systemd-mkswap@.service(8)
- journald@.conf(5)
- systemd-reboot.service(8)
- systemd-journald.service(8)
- systemd-socket-activate(1)
- systemd-tmpfiles-clean.timer(8)
- systemd-debug-generator(8)
- systemd-cgtop(1)
- systemd-measure(1)
- systemd.service(5)
- systemd.slice(5)
- systemd-remount-fs(8)
- systemd-ssh-generator(8)
- systemd-bsod(8)
- systemd-pcrlock-firmware-config.service(8)
- systemd-bsod.service(8)
- systemd-pcrmachine.service(8)
- logind.conf(5)
- bootup(7)
- kernel-install(8)
- systemd-networkd-wait-online@.service(8)
- systemd-network-generator(8)
- kernel-command-line(7)
- pstore.conf(5)
- rc-local.service(8)
- systemd-confext.service(8)
- systemd-soft-reboot.service(8)
- systemd.system-credentials(7)
- systemd-fstab-generator(8)
- systemd-tpm2-setup-early.service(8)
- systemd-tmpfiles(8)
- systemd.preset(5)
- run0(1)
- user.conf.d(5)
- systemd-pcrlock-machine-id.service(8)
- os-release(5)
- systemd-fsck-root.service(8)
- systemd-battery-check(8)
- systemd.automount(5)
- systemd-pcrfs-root.service(8)
- systemd.kill(5)
- systemd-pcrphase-sysinit.service(8)
- journalctl(1)
- 30-systemd-environment-d-generator(8)
- systemd.socket(5)
- systemd-rc-local-generator(8)
- systemd-sysext(8)
- systemd-fsck@.service(8)
- systemd.time(7)
- systemd-rfkill(8)
- systemd-ask-password-wall.path(8)
- machine-info(5)
- systemd-tpm2-generator(8)
- systemd-binfmt.service(8)
- org.freedesktop.login1(5)
- systemd-delta(1)
- systemd-tmpfiles-clean.service(8)
- systemd-ask-password-wall.service(8)
- user-runtime-dir@.service(5)
- systemd-cgls(1)
- smbios-type-11(7)
- systemd-ask-password-console.service(8)
- systemd.netdev(5)
- systemd-journald-dev-log.socket(8)
- systemd-storagetm(8)
- systemd-journald-audit.socket(8)
- systemd-tmpfiles-setup-dev.service(8)
- systemd-hybrid-sleep.service(8)
- systemd-analyze(1)
- systemd-environment-d-generator(8)
- systemd-hostnamed(8)
- systemd-hostnamed.service(8)
- systemd-pcrextend(8)
- systemd-tmpfiles-setup.service(8)
- systemd.pcrlock(5)
- systemd-tpm2-setup.service(8)
- systemd-suspend.service(8)
- systemd-mount(1)
- org.freedesktop.hostname1(5)
- extension-release(5)
- systemd-makefs@.service(8)
- iocost.conf(5)
- systemd-gpt-auto-generator(8)
- systemd-halt.service(8)
- systemd-modules-load.service(8)
- systemd-sysusers(8)
- systemd-user.conf(5)
- systemd-rfkill.service(8)
- systemd-volatile-root.service(8)
- systemd.scope(5)
- daemon(7)
- journald.conf(5)
apt-get install systemd
Available languages:
en zh_TW zh_CN deManual
NETWORKD.CONF
NAMESYNOPSIS
描 述
配 置 目 錄 及 其 優 先 順 序
[DHCP] 小 節 選 項
參 見
NOTES
跋
NAME
networkd.conf, networkd.conf.d - 全 域 性 網 路 配 置 檔 案
SYNOPSIS
/etc/systemd/networkd.conf
/etc/systemd/networkd.conf.d/*.conf
/usr/lib/systemd/networkd.conf.d/*.conf
描 述
這 些 配 置 檔 案 控 制 著 全 域 性 網 路 引 數 。 當 前 僅 用 於 設 定 DUID(DHCP Unique Identifier)
配 置 目 錄 及 其 優 先 順 序
預 設 設 定 是 在 編 譯 期 間 確 定 的 , 所 以 僅 在 確 實 需 要 修 改 預 設 設 定 的 情 況 下 , 才 需 要 使 用 配 置 檔 案 。 位 於 /etc/systemd/ 目 錄 中 的 初 始 配 置 檔 案 , 僅 包 含 了 展 示 選 項 預 設 值 的 註 釋 , 目 的 在 於 方 便 系 統 管 理 員 檢 視 和 直 接 修 改 。
如 果 軟 體 包 想 要 自 定 義 某 些 預 設 設 定 , 那 麼 必 須 將 自 定 義 的 配 置 檔 案 安 裝 到 /usr/lib/systemd/*.conf.d/ 目 錄 中 。 /etc/ 目 錄 僅 供 系 統 管 理 員 使 用 。 系 統 管 理 員 可 以 利 用 下 面 的 邏 輯 來 覆 蓋 預 設 設 定 : 主 配 置 檔 案 最 先 被 讀 取 , 優 先 順 序 也 最 低 。 所 有 *.conf.d/ 中 的 配 置 檔 案 都 會 覆 蓋 主 配 置 檔 案 中 的 設 定 。 所 有 *.conf.d/ 中 的 配 置 檔 案 (無 論 位 於 哪 個 目 錄 中 ), 統 一 按 照 檔 名 的 字 典 順 序 處 理 。 如 果 在 多 個 配 置 檔 案 中 設 定 了 同 一 個 選 項 , 那 麼 僅 以 檔 名 最 靠 後 (字 典 順 序 )的 那 一 個 為 準 。 為 了 便 於 排 序 , 建 議 給 所 有 *.conf.d/ 中 的 配 置 檔 案 都 加 上 兩 位 十 進 位 制 數 字 的 檔 名 字 首 。
如 果 系 統 管 理 員 想 要 遮 蔽 /usr/lib/ 目 錄 中 的 某 個 配 置 檔 案 , 那 麼 最 佳 做 法 是 在 /etc/ 目 錄 中 建 立 一 個 指 向 /dev/null 的 同 名 符 號 連 結 , 即 可 徹 底 遮 蔽 /usr/lib/ 目 錄 中 的 同 名 檔 案 。
[DHCP] 小 節 選 項
此 小 節 用 於 配 置 DUID(DHCP Unique Identifier) 的 值 。 DHCPv6 客 戶 端 在 獲 取 動 態 IPv6 地 址 時 , 會 向 DHCPv6 伺 服 器 傳 送 DUID(DHCP Unique Identifier) 以 及 網 路 介 面 的 IAID(Identity Association Identifier)。 如 果 設 定 了 ClientIdentifier=duid , 那 麼 當 DHCPv4 客 戶 端 在 獲 取 動 態 IPv4 地 址 時 , 會 向 DHCPv4 伺 服 器 傳 送 DUID(DHCP Unique Identifier) 以 及 網 路 介 面 的 IAID(Identity Association Identifier)。 DHCP 伺 服 器 可 根 據 DUID 與 IAID 來 唯 一 定 位 主 機 及 其 網 路 介 面 。 參 見 systemd.network (5) 以 瞭 解 詳 情 。
能 夠 識 別 的 選 項 如 下 :
DUIDType=
指 定 DUID 的 生 成 方 法 。 參 見 RFC 3315 [1] 以 瞭 解 所 有 選 項 。
可 以 使 用 的 方 法 如 下 :
vendor
如 果 "DUIDType=vendor" , 那 麼 將 會 把 "43793"(systemd)用 作 "vendor identifier", 並 將 其 與 經 過 雜 湊 的 machine-id (5) 值 混 合 , 以 生 成 DUID 值 。 這 是 預 設 值 。
link-layer-time , link-layer , uuid
將 這 些 值 用 作 DUID 的 type 欄 位 的 值 , 但 是 DUID 的 內 容 必 須 由 DUIDRawData= 提 供 。
無 論 使 用 上 述 哪 種 方 法 , DUIDRawData= 都 可 用 於 覆 蓋 實 際 的 DUID 值 。
DUIDRawData=
Specifies the DHCP DUID value as a single newline-terminated, hexadecimal string, with each byte separated by ":". The DUID that is sent is composed of the DUID type specified by DUIDType= and the value configured here.
The DUID value specified here overrides the DUID that systemd-networkd generates using the machine-id from the /etc/machine-id file. To configure DUID per-network, see systemd.network (5). The configured DHCP DUID should conform to the specification in RFC 3315 [2] , RFC 6355 [3] . To configure IAID, see systemd.network (5).
Example 1. A DUIDType=vendor with a custom value
DUIDType=vendor
DUIDRawData=00:00:ab:11:f9:2a:c2:77:29:f9:5c:00
This specifies a 14 byte DUID, with the type DUID-EN ("00:02"), enterprise number 43793 ("00:00:ab:11"), and identifier value "f9:2a:c2:77:29:f9:5c:00".
參 見
systemd (1), systemd.network (5), machine-id (1)
NOTES
|
1. |
RFC 3315 |
https://tools.ietf.org/html/rfc3315#section-9
|
2. |
RFC 3315 |
http://tools.ietf.org/html/rfc3315#section-9
|
3. |
RFC 6355 |
http://tools.ietf.org/html/rfc6355
跋
本 頁 面 中 文 版 由 中 文 man 手 冊 頁 計 劃 提 供 。
翻
譯 人 員 : 金 步
國
金 步 國 作 品 集
: http://www.jinbuguo.com
中 文 man 手 冊 頁 計
劃 :
https://github.com/man-pages-zh/manpages-zh